SlotNode.js 383 B

1234567891011121314151617181920212223242526
  1. import { Node } from 'three/nodes';
  2. class SlotNode extends Node {
  3. constructor( params ) {
  4. super( params.nodeType );
  5. this.node = null;
  6. this.source = null;
  7. this.target = null;
  8. this.inclusionType = 'replace';
  9. Object.assign( this, params );
  10. }
  11. generate( builder ) {
  12. return this.node.build( builder, this.getNodeType( builder ) );
  13. }
  14. }
  15. export default SlotNode;