How to use the troika-3d.Group3DFacade function in troika-3d

To help you get started, we’ve selected a few troika-3d examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github protectwise / troika / packages / troika-3d-ui / src / facade / UIBlock3DFacade.js View on Github external
constructor(parent) {
    super(parent)

    // If fully hidden by parent clipping rect, cull the whole Group out of the scene
    Object.defineProperty(this.threeObject, 'visible', groupVisiblePropDef)

    // Anonymous container for bg/border/scrollbar child objects; these live separate
    // from the main `children` tree
    this.layers = new Group3DFacade(this)
    this.layers.children = [null, null, null]

    this._sizeVec2 = new Vector2()
    this._clipRectVec4 = new Vector4()
    this._borderWidthVec4 = new Vector4()
    this._borderRadiiVec4 = new Vector4()
    ;(this._geomBoundingSphere = new Sphere()).version = 0
  }

troika-3d

Troika 3D

MIT
Latest version published 4 days ago

Package Health Score

73 / 100
Full package analysis

Similar packages