Constructor
new BarEffect(_object, _option)
Bar차트 이펙트에서 필요한 값들을 설정
Parameters:
Name | Type | Description |
---|---|---|
_object |
object | 이펙트 생성에 필요한 각종 오브젝트들 |
_option |
object | 이펙트 생성에 필요한 옵션 |
- Source:
Members
alpha :boolean
alpha값
- Source:
chart :ChartJS
ChartJS 오브젝트
- Source:
chartAnimation :boolean
chartJS의 애니메이션이 진행중인지 여부
- Source:
flag :boolean
alpha값 flag
- Source:
graphics :Graphics
이펙트를 표현할 Graphics
- Source:
isSoundReady :boolean
등록한 사운드가 로드되었는지 여부
- Source:
labelText :Array
label 텍스트를 표현할 Text 클래스의 배열
- Source:
lowerLimitCompleteOneTime :boolean
lowerLimit 효과일 때 최초적용 옵션을 위한 변수
- Source:
lowerLimitOneTime :boolean
이벤트 등록을 위한 제어 변수
- Source:
option :object
생성할 이펙트 옵션
- Source:
parent :Effect
Effect 클래스
- Source:
pixi :PIXI
이펙트를 생성할 PIXI 오브젝트
- Source:
sound :Howler
사운드 제어 변수
- Source:
textMargin :number
텍스트 여백
- Source:
upperLimitCompleteOneTime :boolean
upperLimit 효과일 때 최초적용 옵션을 위한 변수
- Source:
upperLimitOneTime :boolean
이벤트 등록을 위한 제어 변수
- Source:
valueText :Array
value 텍스트를 표현할 Text 클래스의 배열
- Source:
Methods
_drawWarning(_x, _y, size, special)
warning 을 그려줌
Parameters:
Name | Type | Description |
---|---|---|
_x |
number | x 좌표 |
_y |
number | y 좌표 |
size |
number | warning 사이즈 |
special |
number | 값이 0 일때 true |
- Source:
_limitUpdate()
정해 놓은 상한값과 하한값에 의해 초과나 미만이 되면 생기는 경고를 관리 및 표현해줌
- Source:
destroy()
현재 생성되어 있는 Bar Effect 제거
Effect 클래스에 의해 호출된다.
- Source:
lowerLimit()
정해진 하한값보다 미만이 되면 경고를 해줌
- Source:
makeTriangleHypotenuse(triangleLength) → {array}
Warning의 삼각형을 그리기 위한 함수
삼각형 빗변들의 시작과 끝 좌표를 반환해줌
Parameters:
Name | Type | Description |
---|---|---|
triangleLength |
number | 삼각형 한 변의 길이 |
- Source:
makeTriangleVertex(triangleLength) → {array}
Warning의 삼각형을 그리기 위한 함수
삼각형의 각 꼭지점의 좌표를 찾아서 반환
Parameters:
Name | Type | Description |
---|---|---|
triangleLength |
number | 삼각형 한 변의 길이 |
- Source:
upperLimit()
정해진 상한값보다 초과가 되면 경고를 해줌
- Source: