Class: EndpointFunction
端点:函数
Deprecated
已过时,未来将移除
Hierarchy
↳
EndpointFunction
Table of contents
Constructors
Properties
Methods
Constructors
constructor
new EndpointFunction(fn
)
Parameters
Name | Type |
---|---|
fn | Function |
Overrides
Properties
className
className: string
Overrides
fn
fn: Function
target
Optional
target: DisplayObject
被连接的对象, 可能为空
Inherited from
Methods
hasTarget
hasTarget(): boolean
Returns
boolean
Inherited from
isDisplayObjectTarget
isDisplayObjectTarget(): boolean
Returns
boolean
Inherited from
Endpoint.isDisplayObjectTarget
isNodeTarget
isNodeTarget(): any
Returns
any
Inherited from
toJSON
toJSON(): { className
: string
= className; x
: any
= p.x; y
: any
= p.y } & EndpointFunction
Returns
{ className
: string
= className; x
: any
= p.x; y
: any
= p.y } & EndpointFunction
Overrides
fromJSON
Static
fromJSON(json
, objIndexMap?
): any
Parameters
Name | Type |
---|---|
json | any |
objIndexMap? | Object |
Returns
any