Class: LineEditTool
Hierarchy
↳
LineEditTool
Table of contents
Constructors
Properties
Accessors
Methods
- registerEditTool
- onMove
- onScale
- onRotate
- load
- update
- unload
- registerInnerEditor
- onCreate
- create
- onLoad
- onUnload
- onDestroy
- destroy
- onScaleWithDrag
- getInnerMove
- getFromToByPath
- getFromToByPoints
- dragPoint
- onSkew
- onUpdate
Constructors
constructor
• new LineEditTool(editor
): LineEditTool
Parameters
Name | Type |
---|---|
editor | IEditor |
Returns
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:28
Properties
editTarget
• editTarget: IUI
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:16
config
• config: IObject
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:18
editor
• editor: IEditor
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:20
view
• view: IGroup
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:23
eventIds
• eventIds: IEventListenerId
[]
Inherited from
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
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
Defined in
in/packages/editor/src/tool/EditTool.ts:10
onMove
▸ onMove(e
): void
Parameters
Name | Type |
---|---|
e | IEditorMoveEvent |
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/EditTool.ts:20
onScale
▸ onScale(e
): void
Parameters
Name | Type |
---|---|
e | IEditorScaleEvent |
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/EditTool.ts:30
onRotate
▸ onRotate(e
): void
Parameters
Name | Type |
---|---|
e | IEditorRotateEvent |
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/EditTool.ts:45
load
▸ load(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/EditTool.ts:77
update
▸ update(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/EditTool.ts:82
unload
▸ unload(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/EditTool.ts:90
registerInnerEditor
▸ registerInnerEditor(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:9
onCreate
▸ onCreate(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:34
create
▸ create(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:35
onLoad
▸ onLoad(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:43
onUnload
▸ onUnload(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:55
onDestroy
▸ onDestroy(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:64
destroy
▸ destroy(): void
Returns
void
Inherited from
Defined in
in/packages/editor/src/tool/InnerEditor.ts:65
onScaleWithDrag
▸ onScaleWithDrag(e
): void
Parameters
Name | Type |
---|---|
e | IEditorScaleEvent |
Returns
void
Defined in
in/packages/editor/src/tool/LineEditTool.ts:19
getInnerMove
▸ getInnerMove(ui
, event
, lockRatio
): IPointData
Parameters
Name | Type |
---|---|
ui | IUI |
event | IDragEvent |
lockRatio | boolean | "corner" |
Returns
Defined in
in/packages/editor/src/tool/LineEditTool.ts:66
getFromToByPath
▸ getFromToByPath(path
): IFromToData
Parameters
Name | Type |
---|---|
path | IPathCommandData |
Returns
Defined in
in/packages/editor/src/tool/LineEditTool.ts:72
getFromToByPoints
▸ getFromToByPoints(originPoints
): IFromToData
Parameters
Name | Type |
---|---|
originPoints | number [] | IPointData [] |
Returns
Defined in
in/packages/editor/src/tool/LineEditTool.ts:79
dragPoint
▸ dragPoint(fromPoint
, toPoint
, isDragFrom
, around
, movePoint
): void
Parameters
Name | Type |
---|---|
fromPoint | IPointData |
toPoint | IPointData |
isDragFrom | boolean |
around | IAround |
movePoint | IPointData |
Returns
void
Defined in
in/packages/editor/src/tool/LineEditTool.ts:88
onSkew
▸ onSkew(_e
): void
Parameters
Name | Type |
---|---|
_e | IEditorSkewEvent |
Returns
void
Overrides
Defined in
in/packages/editor/src/tool/LineEditTool.ts:99
onUpdate
▸ onUpdate(): void
Returns
void