Skip to content

Class: LineEditTool

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new LineEditTool(editor): LineEditTool

Parameters

NameType
editorIEditor

Returns

LineEditTool

Inherited from

EditTool.constructor

Defined in

in/packages/editor/src/tool/InnerEditor.ts:28

Properties

editTarget

editTarget: IUI

Inherited from

EditTool.editTarget

Defined in

in/packages/editor/src/tool/InnerEditor.ts:16


config

config: IObject

Inherited from

EditTool.config

Defined in

in/packages/editor/src/tool/InnerEditor.ts:18


editor

editor: IEditor

Inherited from

EditTool.editor

Defined in

in/packages/editor/src/tool/InnerEditor.ts:20


view

view: IGroup

Inherited from

EditTool.view

Defined in

in/packages/editor/src/tool/InnerEditor.ts:23


eventIds

eventIds: IEventListenerId[]

Inherited from

EditTool.eventIds

Defined in

in/packages/editor/src/tool/InnerEditor.ts:25


scaleOfEvent

scaleOfEvent: boolean = true

Defined in

in/packages/editor/src/tool/LineEditTool.ts:17

Accessors

editBox

get editBox(): IEditBox

Returns

IEditBox

Inherited from

EditTool.editBox

Defined in

in/packages/editor/src/tool/InnerEditor.ts:21


tag

get tag(): string

Returns

string

Overrides

EditTool.tag

Defined in

in/packages/editor/src/tool/LineEditTool.ts:15

Methods

registerEditTool

registerEditTool(): void

Returns

void

Inherited from

EditTool.registerEditTool

Defined in

in/packages/editor/src/tool/EditTool.ts:10


onMove

onMove(e): void

Parameters

NameType
eIEditorMoveEvent

Returns

void

Inherited from

EditTool.onMove

Defined in

in/packages/editor/src/tool/EditTool.ts:20


onScale

onScale(e): void

Parameters

NameType
eIEditorScaleEvent

Returns

void

Inherited from

EditTool.onScale

Defined in

in/packages/editor/src/tool/EditTool.ts:30


onRotate

onRotate(e): void

Parameters

NameType
eIEditorRotateEvent

Returns

void

Inherited from

EditTool.onRotate

Defined in

in/packages/editor/src/tool/EditTool.ts:45


load

load(): void

Returns

void

Inherited from

EditTool.load

Defined in

in/packages/editor/src/tool/EditTool.ts:77


update

update(): void

Returns

void

Inherited from

EditTool.update

Defined in

in/packages/editor/src/tool/EditTool.ts:82


unload

unload(): void

Returns

void

Inherited from

EditTool.unload

Defined in

in/packages/editor/src/tool/EditTool.ts:90


registerInnerEditor

registerInnerEditor(): void

Returns

void

Inherited from

EditTool.registerInnerEditor

Defined in

in/packages/editor/src/tool/InnerEditor.ts:9


onCreate

onCreate(): void

Returns

void

Inherited from

EditTool.onCreate

Defined in

in/packages/editor/src/tool/InnerEditor.ts:34


create

create(): void

Returns

void

Inherited from

EditTool.create

Defined in

in/packages/editor/src/tool/InnerEditor.ts:35


onLoad

onLoad(): void

Returns

void

Inherited from

EditTool.onLoad

Defined in

in/packages/editor/src/tool/InnerEditor.ts:43


onUnload

onUnload(): void

Returns

void

Inherited from

EditTool.onUnload

Defined in

in/packages/editor/src/tool/InnerEditor.ts:55


onDestroy

onDestroy(): void

Returns

void

Inherited from

EditTool.onDestroy

Defined in

in/packages/editor/src/tool/InnerEditor.ts:64


destroy

destroy(): void

Returns

void

Inherited from

EditTool.destroy

Defined in

in/packages/editor/src/tool/InnerEditor.ts:65


onScaleWithDrag

onScaleWithDrag(e): void

Parameters

NameType
eIEditorScaleEvent

Returns

void

Defined in

in/packages/editor/src/tool/LineEditTool.ts:19


getInnerMove

getInnerMove(ui, event, lockRatio): IPointData

Parameters

NameType
uiIUI
eventIDragEvent
lockRatioboolean | "corner"

Returns

IPointData

Defined in

in/packages/editor/src/tool/LineEditTool.ts:66


getFromToByPath

getFromToByPath(path): IFromToData

Parameters

NameType
pathIPathCommandData

Returns

IFromToData

Defined in

in/packages/editor/src/tool/LineEditTool.ts:72


getFromToByPoints

getFromToByPoints(originPoints): IFromToData

Parameters

NameType
originPointsnumber[] | IPointData[]

Returns

IFromToData

Defined in

in/packages/editor/src/tool/LineEditTool.ts:79


dragPoint

dragPoint(fromPoint, toPoint, isDragFrom, around, movePoint): void

Parameters

NameType
fromPointIPointData
toPointIPointData
isDragFromboolean
aroundIAround
movePointIPointData

Returns

void

Defined in

in/packages/editor/src/tool/LineEditTool.ts:88


onSkew

onSkew(_e): void

Parameters

NameType
_eIEditorSkewEvent

Returns

void

Overrides

EditTool.onSkew

Defined in

in/packages/editor/src/tool/LineEditTool.ts:99


onUpdate

onUpdate(): void

Returns

void

Overrides

EditTool.onUpdate

Defined in

in/packages/editor/src/tool/LineEditTool.ts:103

Released under the MIT License.