Winter Cardinal UI - v0.442.0 / EShapeAcceptorImpl

Class: EShapeAcceptorImpl

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EShapeAcceptorImpl(): EShapeAcceptorImpl

Returns

EShapeAcceptorImpl

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:19

Properties

_edges

Protected _edges: Map<string, EShapeAcceptorEdge>

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:17

Methods

add

add(id, type, x, y): boolean

Parameters

Name Type
id string
type "ALL" | "TAIL" | "HEAD" | EShapeAcceptorEdgeType
x number
y number

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:23

add(id, type, x, y, nx, ny): boolean

Parameters

Name Type
id string
type "ALL" | "TAIL" | "HEAD" | EShapeAcceptorEdgeType
x number
y number
nx number
ny number

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:29

add(id, type, x, y, nx, ny, sx, sy): boolean

Parameters

Name Type
id string
type "ALL" | "TAIL" | "HEAD" | EShapeAcceptorEdgeType
x number
y number
nx number
ny number
sx number
sy number

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:37

add(id, type, x, y, nx, ny, sx, sy, side): boolean

Parameters

Name Type
id string
type "ALL" | "TAIL" | "HEAD" | EShapeAcceptorEdgeType
x number
y number
nx number
ny number
sx number
sy number
side number | "NONE" | "TOP" | "RIGHT" | "BOTTOM" | "LEFT" | "ALL" | ("NONE" | "TOP" | "RIGHT" | "BOTTOM" | "LEFT" | "ALL")[]

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:47


clear

clear(): boolean

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:160


contains

contains(id): boolean

Parameters

Name Type
id string

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:156


each

each(shape, iteratee): this

Parameters

Name Type
shape EShape
iteratee (edge: EShapeAcceptorEdge, id: string) => void

Returns

this

Implementation of

EShapeAcceptor.each

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:151


get

get(shape, id): null | EShapeAcceptorEdge

Parameters

Name Type
shape EShape
id string

Returns

null | EShapeAcceptorEdge

Implementation of

EShapeAcceptor.get

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:147


remove

remove(id): null | EShapeAcceptorEdge

Parameters

Name Type
id string

Returns

null | EShapeAcceptorEdge

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:133


size

size(): number

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:143


toNormal

toNormal(x, y, nx?, ny?): EShapeAcceptorEdgeNormal

Parameters

Name Type
x number
y number
nx? number
ny? number

Returns

EShapeAcceptorEdgeNormal

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:89


toSide

toSide(side?): number

Parameters

Name Type
side? number | "NONE" | "TOP" | "RIGHT" | "BOTTOM" | "LEFT" | "ALL" | ("NONE" | "TOP" | "RIGHT" | "BOTTOM" | "LEFT" | "ALL")[]

Returns

number

Defined in

src/main/typescript/wcardinal/ui/shape/e-shape-acceptor-impl.ts:112