Class: Designer
Defined in: packages/designer/types/framework/designer.d.ts:18
Constructors
new Designer()
new Designer(
engine
,contentWindow
,dependencies
,devtools
):Designer
Defined in: packages/designer/types/framework/designer.d.ts:32
Parameters
engine
contentWindow
Window
dependencies
Ref
<Dependencie
[], Dependencie
[]>
devtools
Returns
Properties
contentWindow
contentWindow:
Window
Defined in: packages/designer/types/framework/designer.d.ts:20
dependencies
dependencies:
Ref
<Dependencie
[],Dependencie
[]>
Defined in: packages/designer/types/framework/designer.d.ts:21
devtools
devtools:
DevTools
Defined in: packages/designer/types/framework/designer.d.ts:22
document
document:
null
|Document
Defined in: packages/designer/types/framework/designer.d.ts:24
dragging
dragging:
null
|MaterialDescription
Defined in: packages/designer/types/framework/designer.d.ts:28
draggingNode
draggingNode:
null
|NodeModel
Defined in: packages/designer/types/framework/designer.d.ts:29
dropping
dropping:
ShallowRef
<null
|DesignHelper
>
Defined in: packages/designer/types/framework/designer.d.ts:26
engine
engine:
Engine
Defined in: packages/designer/types/framework/designer.d.ts:19
hover
hover:
ShallowRef
<null
|DesignHelper
>
Defined in: packages/designer/types/framework/designer.d.ts:25
lines
lines:
ShallowRef
<DOMRect
[]>
Defined in: packages/designer/types/framework/designer.d.ts:30
outlineEnabled
outlineEnabled:
Ref
<boolean
,boolean
>
Defined in: packages/designer/types/framework/designer.d.ts:31
selected
selected:
Ref
<null
|DesignHelper
,null
|DesignHelper
>
Defined in: packages/designer/types/framework/designer.d.ts:27
Methods
allowDrop()
allowDrop(
target
,type
?):Promise
<boolean
>
Defined in: packages/designer/types/framework/designer.d.ts:65
Parameters
target
BlockModel
| NodeModel
type?
DropPosition
Returns
Promise
<boolean
>
cleanHelper()
cleanHelper():
void
Defined in: packages/designer/types/framework/designer.d.ts:57
Returns
void
dispose()
dispose():
void
Defined in: packages/designer/types/framework/designer.d.ts:66
Returns
void
getDropSlot()
getDropSlot(
to
):Promise
<undefined
|null
|MaterialSlot
>
Defined in: packages/designer/types/framework/designer.d.ts:40
Parameters
to
null
| NodeModel
Returns
Promise
<undefined
| null
| MaterialSlot
>
getHelper()
getHelper(
e
):null
|DesignHelper
Defined in: packages/designer/types/framework/designer.d.ts:56
Parameters
e
DragEvent
| MouseEvent
Returns
null
| DesignHelper
getVueInstance()
getVueInstance(
helper
,id
?):any
Defined in: packages/designer/types/framework/designer.d.ts:41
Parameters
helper
id?
string
Returns
any
setDragging()
setDragging(
desc
):void
Defined in: packages/designer/types/framework/designer.d.ts:60
Parameters
desc
null
| MaterialDescription
Returns
void
setDraggingNode()
setDraggingNode(
node
):void
Defined in: packages/designer/types/framework/designer.d.ts:61
Parameters
node
null
| NodeModel
Returns
void
setDropping()
setDropping(
model
,type
?):Promise
<void
>
Defined in: packages/designer/types/framework/designer.d.ts:64
Parameters
model
null
| BlockModel
| NodeModel
type?
DropPosition
Returns
Promise
<void
>
setHover()
setHover(
model
):Promise
<void
>
Defined in: packages/designer/types/framework/designer.d.ts:62
Parameters
model
null
| BlockModel
| NodeModel
Returns
Promise
<void
>
setSelected()
setSelected(
model
):Promise
<void
>
Defined in: packages/designer/types/framework/designer.d.ts:63
Parameters
model
null
| BlockModel
| NodeModel
Returns
Promise
<void
>
updateLines()
updateLines():
Promise
<void
>
Defined in: packages/designer/types/framework/designer.d.ts:59
Returns
Promise
<void
>
updateRect()
updateRect():
Promise
<void
>
Defined in: packages/designer/types/framework/designer.d.ts:58
Returns
Promise
<void
>