mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-07 16:57:30 +00:00
27 lines
383 B
JavaScript
27 lines
383 B
JavaScript
![]() |
import { Node } from 'three/nodes';
|
||
|
|
||
|
class SlotNode extends Node {
|
||
|
|
||
|
constructor( params ) {
|
||
|
|
||
|
super( params.nodeType );
|
||
|
|
||
|
this.node = null;
|
||
|
this.source = null;
|
||
|
this.target = null;
|
||
|
this.inclusionType = 'replace';
|
||
|
|
||
|
Object.assign( this, params );
|
||
|
|
||
|
}
|
||
|
|
||
|
generate( builder ) {
|
||
|
|
||
|
return this.node.build( builder, this.getNodeType( builder ) );
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default SlotNode;
|