@adatechnology/game-shapes-three 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +3 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -1582,7 +1582,9 @@ var GameShapesThree = (() => {
|
|
|
1582
1582
|
return extrude(outline, options.depth, options.steps, bevel);
|
|
1583
1583
|
}
|
|
1584
1584
|
var namespaces = /* @__PURE__ */ new WeakMap();
|
|
1585
|
+
var shims = /* @__PURE__ */ new WeakSet();
|
|
1585
1586
|
function shapeGeometries(THREE, options = {}) {
|
|
1587
|
+
if (shims.has(THREE)) return THREE;
|
|
1586
1588
|
const cache = options.cache !== false;
|
|
1587
1589
|
const key = cache ? "cache" : "nocache";
|
|
1588
1590
|
let byKey = namespaces.get(THREE);
|
|
@@ -1629,6 +1631,7 @@ var GameShapesThree = (() => {
|
|
|
1629
1631
|
}
|
|
1630
1632
|
const result = namespace;
|
|
1631
1633
|
byKey.set(key, result);
|
|
1634
|
+
shims.add(result);
|
|
1632
1635
|
return result;
|
|
1633
1636
|
}
|
|
1634
1637
|
|