@tscircuit/pcb-viewer 1.10.18 → 1.10.20
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 +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10081,7 +10081,8 @@ var Drawer = /*#__PURE__*/ function() {
|
|
|
10081
10081
|
y
|
|
10082
10082
|
]), 2), centerX = _ref2[0], centerY = _ref2[1];
|
|
10083
10083
|
ctx.translate(centerX, centerY);
|
|
10084
|
-
|
|
10084
|
+
var cw_rotation = 360 - ccw_rotation;
|
|
10085
|
+
if (ccw_rotation) ctx.rotate(cw_rotation * Math.PI / 180);
|
|
10085
10086
|
ctx.translate(-centerX, -centerY);
|
|
10086
10087
|
if (mesh_fill) {
|
|
10087
10088
|
ctx.beginPath();
|
|
@@ -11280,7 +11281,7 @@ var layerColorHightlightMap = {
|
|
|
11280
11281
|
};
|
|
11281
11282
|
var HighlightedPrimitiveBoxWithText = function(param) {
|
|
11282
11283
|
var primitive = param.primitive;
|
|
11283
|
-
var _primitive__element;
|
|
11284
|
+
var _primitive__element, _primitive__parent_pcb_component;
|
|
11284
11285
|
var _ref = _sliced_to_array((0, import_react8.useState)(false), 2), finalState = _ref[0], setFinalState = _ref[1];
|
|
11285
11286
|
(0, import_react8.useEffect)(function() {
|
|
11286
11287
|
setTimeout(function() {
|
|
@@ -11298,6 +11299,8 @@ var HighlightedPrimitiveBoxWithText = function(param) {
|
|
|
11298
11299
|
var sip = 26;
|
|
11299
11300
|
var _layerColorHightlightMap_primitive__element_layer;
|
|
11300
11301
|
var color2 = (_layerColorHightlightMap_primitive__element_layer = layerColorHightlightMap[primitive === null || primitive === void 0 ? void 0 : (_primitive__element = primitive._element) === null || _primitive__element === void 0 ? void 0 : _primitive__element.layer]) !== null && _layerColorHightlightMap_primitive__element_layer !== void 0 ? _layerColorHightlightMap_primitive__element_layer : "red";
|
|
11302
|
+
var _primitive__parent_pcb_component_rotation;
|
|
11303
|
+
var rotation2 = (_primitive__parent_pcb_component_rotation = primitive === null || primitive === void 0 ? void 0 : (_primitive__parent_pcb_component = primitive._parent_pcb_component) === null || _primitive__parent_pcb_component === void 0 ? void 0 : _primitive__parent_pcb_component.rotation) !== null && _primitive__parent_pcb_component_rotation !== void 0 ? _primitive__parent_pcb_component_rotation : 0;
|
|
11301
11304
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", {
|
|
11302
11305
|
style: {
|
|
11303
11306
|
zIndex: zIndexMap.elementOverlay,
|
|
@@ -11306,7 +11309,9 @@ var HighlightedPrimitiveBoxWithText = function(param) {
|
|
|
11306
11309
|
top: y - h / 2 - 8,
|
|
11307
11310
|
width: w + 16,
|
|
11308
11311
|
height: h + 16,
|
|
11309
|
-
color: color2
|
|
11312
|
+
color: color2,
|
|
11313
|
+
transform: "rotate(".concat(-rotation2, "deg)"),
|
|
11314
|
+
transformOrigin: "center center"
|
|
11310
11315
|
},
|
|
11311
11316
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", {
|
|
11312
11317
|
style: {
|
|
@@ -11740,7 +11745,7 @@ var import_css = require("@emotion/css");
|
|
|
11740
11745
|
// package.json
|
|
11741
11746
|
var package_default = {
|
|
11742
11747
|
name: "@tscircuit/pcb-viewer",
|
|
11743
|
-
version: "1.10.
|
|
11748
|
+
version: "1.10.19",
|
|
11744
11749
|
main: "dist/index.js",
|
|
11745
11750
|
repository: "tscircuit/pcb-viewer",
|
|
11746
11751
|
license: "MIT",
|
|
@@ -11765,9 +11770,9 @@ var package_default = {
|
|
|
11765
11770
|
"@storybook/nextjs": "^8.0.6",
|
|
11766
11771
|
"@storybook/react": "^8.0.6",
|
|
11767
11772
|
"@swc/core": "^1.4.12",
|
|
11768
|
-
"@tscircuit/core": "^0.0.
|
|
11773
|
+
"@tscircuit/core": "^0.0.215",
|
|
11769
11774
|
"@tscircuit/eagle-xml-converter": "^0.0.6",
|
|
11770
|
-
"@tscircuit/props": "^0.0.
|
|
11775
|
+
"@tscircuit/props": "^0.0.108",
|
|
11771
11776
|
"@tscircuit/soup-util": "^0.0.38",
|
|
11772
11777
|
"@types/color": "^3.0.6",
|
|
11773
11778
|
"@types/node": "18.7.23",
|