PieEffect

PieEffect

Effect 에서 생성, 관리하는 Pie 차트의 이펙트 클래스

Constructor

new PieEffect(_object, _option)

Pie차트 이펙트에서 필요한 값들을 설정
Parameters:
Name Type Description
_object object 이펙트 생성에 필요한 각종 오브젝트들
_option object 이펙트 생성에 필요한 옵션
Source:

Members

chart :ChartJS

ChartJS 오브젝트
Source:

extrudeDistance :number

extrude 효과 길이
Source:

extrudeDuration :number

extrude 효과 시간
Source:

graphics :Graphics

이펙트를 표현할 Graphics
Source:

labelText :Text

label을 표현할 Text
Source:

option :object

생성할 이펙트 옵션
Source:

parent :Effect

Effect 클래스
Source:

percentText :Text

percent를 표현할 Text
Source:

pixi :PIXI

이펙트를 생성할 PIXI 오브젝트
Source:

text :Array

label, value, percent를 가지고 있는 배열
Source:

topGraphics :Graphics

이펙트를 표현할 Graphics (2개의 Graphics가 필요함)
Source:

valueText :Text

value를 표현할 Text
Source:

Methods

destroy()

현재 생성되어 있는 Pie Effect 제거

Effect 클래스에 의해 호출된다.

Source:

extrude()

마우스를 Pie 차트에 올리면 돌출되는 효과와 함께 텍스트를 보여줌
Source:

extrudeUpdate()

Extrude 효과의 상태 업데이트
Source: