GeOnDT GeOnDT for JS

Class: UCssBilboard

UCssBilboard

~extends CSS2DRenderer~CSS2DObject
U3dPOI / U3dBilBoard 생성시 라벨 및 point에 해당하는 객체

new UCssBilboard()

Methods

dispose()

css 객체 제거 및 비가시화

getElement()HTMLDivElement

해당 객체의 dom element를 반환

Returns:
Type Description
HTMLDivElement

getImageElement()HTMLImageElement

image dom element를 반환

Returns:
Type Description
HTMLImageElement

getImageStyle()object

image dom 객체의 style 반환

Returns:
Type Description
object image dom style 객체

getLabel()string

text의 내용을 반환

Returns:
Type Description
string text 내용

getLabelElement()HTMLDivElement|*

text dom element를 반환

Returns:
Type Description
HTMLDivElement | *

getLabelStyle()object

text dom 객체의 style 반환

Returns:
Type Description
object text dom style 객체

getLineElement()HTMLDivElement|*

point와 text 사이의 수직선에 해당하는 dom element를 반환

Returns:
Type Description
HTMLDivElement | *

getLineStyle()object

line dom 객체의 style 반환

Returns:
Type Description
object line dom style 객체

getPointDefaultSize()number|string

point 초기 크기 반환

Returns:
Type Description
number | string 초기 크기 반환

getPointElement()HTMLDivElement|*

point에 해당하는 dom element를 반환

Returns:
Type Description
HTMLDivElement | *

getPointSize()number|string

point 크기 반환

Returns:
Type Description
number | string size point 반환

getPointStyle()object

point dom 객체의 style 반환

Returns:
Type Description
object point dom style 객체

getPosition()WorldPosition

현재 위치 반환

Returns:
Type Description
WorldPosition 현재 위치 반환

getStyle()object

현재 dom 객체의 style 반환

Returns:
Type Description
object style 객체

setBackGround(color)

dom 객체 background 색상 설정

Name Type Description
color ColorRepresentation

background 색상

setColor(color)

text 라벨 색상 설정

Name Type Description
color ColorRepresentation

라벨 색상

setFont(font)

text font 설정

Name Type Description
font string

font style 설정

setFontFamily(fontFamily)

text fontFamily 설정

Name Type Description
fontFamily string

fontFamily style 설정

setFontSize(size)

text 폰트 크기 설정

Name Type Description
size number | string optional

폰트 크기

setImage(image)

image src를 설정

Name Type Description
image string

image src 경로

setImageSize(imageSize)

image dom 객체 크기 설정

Name Type Description
imageSize number

setLabel(text)

text의 내용을 설정

Name Type Description
text string

수정할 내용

setLineColor(color)

line 색상 설정

Name Type Description
color ColorRepresentation

line 색상

setLineHeight(height)

line 높이 설정

Name Type Description
height number | string

line 높이

setLineWidth(width)

line 너비 설정

Name Type Description
width number | string

line 너비

setPointColor(color)

point 색상 설정

Name Type Description
color ColorRepresentation

point 색상

setPointSize(size)

point 크기 설정

Name Type Description
size number | string

point 크기

setPosition(position)

위치 설정

Name Type Description
position WorldPosition

설정할 위치의 world 좌표

setSize(size)

dom 객체 크기 설정

Name Type Description
size number

폰트 크기