ImageEntry¶
要素
Animation Binding¶
| Name | Type |
|---|---|
| image_src | string |
| position | vector3 |
| size | vector2, number |
Extends¶
Constructors¶
new ImageEntry()¶
new ImageEntry(
owner,image_src,position,props):ImageEntry
Parameters¶
| Parameter | Type | Description |
|---|---|---|
owner |
ImageIconEntity |
所有者 |
image_src |
string | HTMLCanvasElement | HTMLImageElement |
アイコン画像 |
position |
GeoPoint |
位置 |
props |
ImageEntryOption |
プロパティ |
Returns¶
Overrides¶
Accessors¶
animation¶
getanimation():BindingBlock
アニメーションパラメータ設定
Returns¶
icon¶
geticon():IconLoaderItem
Returns¶
IconLoaderItem
id¶
getid():string
ID
Returns¶
string
Methods¶
draw()¶
draw(
context,x,y,width,height):void
Parameters¶
| Parameter | Type |
|---|---|
context |
CanvasRenderingContext2D |
x |
number |
y |
number |
width |
number |
height |
number |
Returns¶
void
isLoaded()¶
isLoaded():
boolean
Returns¶
boolean
setImage()¶
setImage(
image_src):void
画像のパスを設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
image_src |
string | HTMLCanvasElement | HTMLImageElement |
画像のパス |
Returns¶
void
setPosition()¶
setPosition(
position):void
テキスト原点位置を設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
position |
GeoPoint |
テキスト原点の位置 |
Returns¶
void
setSize()¶
setSize(
size):void
アイコンのサイズを指定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
size |
Vector2 |
アイコンのピクセルサイズ |
Returns¶
void