@tscircuit/3d-viewer 0.0.122 → 0.0.124
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.js +4 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14221,6 +14221,7 @@ function createSilkscreenTextGeoms(silkscreenText) {
|
|
|
14221
14221
|
|
|
14222
14222
|
// src/soup-to-3d/index.ts
|
|
14223
14223
|
var createBoardGeomFromSoup = (soup, circuitJson) => {
|
|
14224
|
+
circuitJson ??= soup;
|
|
14224
14225
|
if (!circuitJson) {
|
|
14225
14226
|
throw new Error("circuitJson is required but was not provided");
|
|
14226
14227
|
}
|
|
@@ -14382,7 +14383,7 @@ var createBoardGeomFromSoup = (soup, circuitJson) => {
|
|
|
14382
14383
|
const { textOutlines, xOffset, yOffset } = createSilkscreenTextGeoms(
|
|
14383
14384
|
silkscreenText
|
|
14384
14385
|
);
|
|
14385
|
-
for (
|
|
14386
|
+
for (const outline of textOutlines) {
|
|
14386
14387
|
const alignedOutline = outline.map((point) => [
|
|
14387
14388
|
point[0] + xOffset + silkscreenText.anchor_position.x,
|
|
14388
14389
|
point[1] + yOffset + silkscreenText.anchor_position.y
|
|
@@ -17410,7 +17411,7 @@ import { Canvas, useFrame as useFrame2 } from "@react-three/fiber";
|
|
|
17410
17411
|
// package.json
|
|
17411
17412
|
var package_default = {
|
|
17412
17413
|
name: "@tscircuit/3d-viewer",
|
|
17413
|
-
version: "0.0.
|
|
17414
|
+
version: "0.0.123",
|
|
17414
17415
|
main: "./dist/index.js",
|
|
17415
17416
|
module: "./dist/index.js",
|
|
17416
17417
|
type: "module",
|
|
@@ -17441,7 +17442,7 @@ var package_default = {
|
|
|
17441
17442
|
"@jscad/stl-serializer": "^2.1.20",
|
|
17442
17443
|
"@react-three/drei": "^9.121.4",
|
|
17443
17444
|
"@react-three/fiber": "^8.17.14",
|
|
17444
|
-
"@tscircuit/core": "^0.0.
|
|
17445
|
+
"@tscircuit/core": "^0.0.301",
|
|
17445
17446
|
"@tscircuit/props": "^0.0.138",
|
|
17446
17447
|
"@tscircuit/react-fiber": "^1.2.0",
|
|
17447
17448
|
"@tscircuit/soup-util": "^0.0.41",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/3d-viewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.124",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@jscad/stl-serializer": "^2.1.20",
|
|
32
32
|
"@react-three/drei": "^9.121.4",
|
|
33
33
|
"@react-three/fiber": "^8.17.14",
|
|
34
|
-
"@tscircuit/core": "^0.0.
|
|
34
|
+
"@tscircuit/core": "^0.0.301",
|
|
35
35
|
"@tscircuit/props": "^0.0.138",
|
|
36
36
|
"@tscircuit/react-fiber": "^1.2.0",
|
|
37
37
|
"@tscircuit/soup-util": "^0.0.41",
|