nx.graphic.Stage Class
SVG root component
Item Index
Methods
Methods
addDef
(
-
el
Add svg def element into the stage
Parameters:
-
el
SVGDOM
destroy
()
Destroy the component.
detach
()
Detach the component from parent.
dispose
()
Dispose the component.
getBinding
(
-
prop
Get existing binding object for specified property.
Parameters:
-
prop
Object
Returns:
:
getContainer
(
nx.dom.Element
-
comp
Get the container for component.
Parameters:
-
comp
Object
Returns:
nx.dom.Element:
getContentBound
()
Left: number, top: number, width: Number, height: Number
Get content's relative bound
Returns:
Left: number, top: number, width: Number, height: Number:
}
onAttach
()
Template method for component attach.
onChildAttach
()
Template method for child component attach.
onChildDetach
()
Template method for child component detach.
onDetach
()
Template method for component detach.
register
(
-
name
-
value
-
force
Register a resource.
setBinding
(
-
prop
-
expr
-
source
Set binding for specified property.
Properties
height
Unknown
set/get stage's height
matrixObject
Unknown
Matrix Object
model
Any
stage
Unknown
get content group element
width
Unknown
set/get stage's width