You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, I just want to tell Isotope to make a layout, then apply the numbers to custom objects (f.e. Three.js, canvas 2D, pixi.js, etc).
How do we use isotope layout without it automatically applying to DOM? Example:
constmeshes=[/* An array of Three.js meshes. */]constiso=newIsotope()// ...iso.layout();for(constmeshofmeshes){mesh.position.x=/*apply value from iso*/mesh.position.y=/*apply value from iso*/}renderer.render(scene,camera);
I do also have custom elements (LUME) that render using WebGL. Is there a way to tell isotope how to map values to attributes of DOM elements it controls? Example:
<lume-scenewebglid="scene"><lume-meshhas="box-geometry physical-material" class=".card"></lume-mesh>
...
</lume-scene><script>variso=newIsotope(document.querySelector('#scene'),{itemSelector: '.card',// ...applyValue(el,{x, y, width, height}){// hypothetical// ... apply value to `el` (<lume-mesh>) ...}});iso.layout();// or similar to three.js examplefor(constelofdocument.querySelector('lume-mesh')){el.position.x=/*apply value from iso*/el.position.y=/*apply value from iso*/}</script>
The text was updated successfully, but these errors were encountered:
For example, I just want to tell Isotope to make a layout, then apply the numbers to custom objects (f.e. Three.js, canvas 2D, pixi.js, etc).
How do we use isotope layout without it automatically applying to DOM? Example:
I do also have custom elements (LUME) that render using WebGL. Is there a way to tell isotope how to map values to attributes of DOM elements it controls? Example:
The text was updated successfully, but these errors were encountered: