Inheritance⤴
- NodeNameSpace
Constructor⤴
-
NodeNameSpace(name, document)⤴
-
NodeNameSpace constructor
Parameters:
Name Type Description name
document
Methods⤴
-
addNode(node, name)⤴
-
NodeNameSpace Add Node
Parameters:
Name Type Description node
name
-
addSpace(space)⤴
-
NodeNameSpace Add Space
Parameters:
Name Type Description space
-
externProtoDeclare(domNode)⤴
-
NodeNameSpace externProtoDeclare adds initial proto declaration to available prototype array
Parameters:
Name Type Description domNode
the regular syntax ProtoInstance dom node
-
getNamedElement(name) → {null}⤴
-
NodeNameSpace Get Named Element
Parameters:
Name Type Description name
Returns:
-
getNamedNode(name) → {*}⤴
-
NodeNameSpace Get Named Node
Parameters:
Name Type Description name
Returns:
-
getURL(url) → {*}⤴
-
NodeNameSpace Get URL
Parameters:
Name Type Description url
Returns:
-
importNodes(subNameSpace)⤴
-
NodeNameSpace importNodes
Parameters:
Name Type Description subNameSpace
Added by microaaron for IMPORT/EXPORT supported, 2021.11
-
loadExternProtoAsync(protoDeclaration, protoInstanceDom, domNode, parentDom)⤴
-
NodeNameSpace loadExternProtoAsync called from protoInstance to load an extern protoDeclaration, and then instance the node. ExternProto declaration if required.
Parameters:
Name Type Description protoDeclaration
the initial protoDeclaration stub, is replaced after loading protoInstanceDom
the short syntax proto instance dom node domNode
the regular syntax ProtoInstance dom node parentDom
the parent dom node
Returns:
null - if downloading fails
-
protoDeclare(domNode)⤴
-
NodeNameSpace protoDeclare processes ProtoDeclare node, called from setupTree. generates a new protoDeclaration, and then uses it to register the new node to x3dom
Parameters:
Name Type Description domNode
the ProtoDeclaration dom node
-
protoInstance(domNode, domParent)⤴
-
NodeNameSpace protoInstance called from setupTree to process a ProtoInstance node. creates another dom node in short syntax. This short dom node is then processed back in setupTree. Additionally, it triggers loading an ExternProto declaration if required.
Parameters:
Name Type Description domNode
the ProtoInstance dom node domParent
the parent dom node
-
removeNode(name)⤴
-
NodeNameSpace Remove Node
Parameters:
Name Type Description name
-
removeSpace(space)⤴
-
NodeNameSpace Remove Space
Parameters:
Name Type Description space
-
routeLateRoutes()⤴
-
NodeNameSpace routeLateRoutes
-
setBaseURL(url)⤴
-
NodeNameSpace Set Base URL
Parameters:
Name Type Description url
-
setupTree(domNode, parent) → {*}⤴
-
NodeNameSpace Setup Tree
Parameters:
Name Type Description domNode
parent
Returns: