Skip to content

Class: EndpointFunction

端点:函数

Deprecated

已过时,未来将移除

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EndpointFunction(fn)

Parameters

NameType
fnFunction

Overrides

Endpoint.constructor

Properties

className

className: string

Overrides

Endpoint.className


fn

fn: Function


target

Optional target: DisplayObject

被连接的对象, 可能为空

Inherited from

Endpoint.target

Methods

hasTarget

hasTarget(): boolean

Returns

boolean

Inherited from

Endpoint.hasTarget


isDisplayObjectTarget

isDisplayObjectTarget(): boolean

Returns

boolean

Inherited from

Endpoint.isDisplayObjectTarget


isNodeTarget

isNodeTarget(): any

Returns

any

Inherited from

Endpoint.isNodeTarget


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

Endpoint.toJSON


fromJSON

Static fromJSON(json, objIndexMap?): any

Parameters

NameType
jsonany
objIndexMap?Object

Returns

any

Inherited from

Endpoint.fromJSON