Skip to content
本页目录

Class: EndpointFunction

端点:函数

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

isDisplayObjectTarget

isDisplayObjectTarget(): boolean

Returns

boolean

Inherited from

Endpoint.isDisplayObjectTarget


isNodeTarget

isNodeTarget(): any

Returns

any

Inherited from

Endpoint.isNodeTarget


toJSON

toJSON(): { className: string ; x: any ; y: any } & EndpointFunction

Returns

{ className: string ; x: any ; y: any } & EndpointFunction

Overrides

Endpoint.toJSON