@tscircuit/pcb-viewer 1.10.21 → 1.10.23
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 +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11281,8 +11281,9 @@ var layerColorHightlightMap = {
|
|
|
11281
11281
|
};
|
|
11282
11282
|
var HighlightedPrimitiveBoxWithText = function(param) {
|
|
11283
11283
|
var primitive = param.primitive;
|
|
11284
|
-
var _primitive__element
|
|
11284
|
+
var _primitive__element;
|
|
11285
11285
|
var _ref = _sliced_to_array((0, import_react8.useState)(false), 2), finalState = _ref[0], setFinalState = _ref[1];
|
|
11286
|
+
var primitiveElement = primitive._element;
|
|
11286
11287
|
(0, import_react8.useEffect)(function() {
|
|
11287
11288
|
setTimeout(function() {
|
|
11288
11289
|
setFinalState(true);
|
|
@@ -11299,8 +11300,10 @@ var HighlightedPrimitiveBoxWithText = function(param) {
|
|
|
11299
11300
|
var sip = 26;
|
|
11300
11301
|
var _layerColorHightlightMap_primitive__element_layer;
|
|
11301
11302
|
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
|
|
11303
|
-
|
|
11303
|
+
var rotation2 = 0;
|
|
11304
|
+
if (primitiveElement.type === "pcb_smtpad" && (primitiveElement === null || primitiveElement === void 0 ? void 0 : primitiveElement.shape) === "rotated_rect") {
|
|
11305
|
+
rotation2 = primitiveElement === null || primitiveElement === void 0 ? void 0 : primitiveElement.ccw_rotation;
|
|
11306
|
+
}
|
|
11304
11307
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", {
|
|
11305
11308
|
style: {
|
|
11306
11309
|
zIndex: zIndexMap.elementOverlay,
|
|
@@ -11336,6 +11339,9 @@ var HighlightedPrimitiveBoxWithText = function(param) {
|
|
|
11336
11339
|
transition: "margin-right 0.2s, margin-bottom 0.2s",
|
|
11337
11340
|
backgroundColor: "#f2efcc",
|
|
11338
11341
|
color: "black",
|
|
11342
|
+
textShadow: "none",
|
|
11343
|
+
WebkitFontSmoothing: "antialiased",
|
|
11344
|
+
MozOsxFontSmoothing: "grayscale",
|
|
11339
11345
|
padding: "6px 6px",
|
|
11340
11346
|
borderRadius: "6px",
|
|
11341
11347
|
fontSize: "14px",
|
|
@@ -11751,7 +11757,7 @@ var import_css = require("@emotion/css");
|
|
|
11751
11757
|
// package.json
|
|
11752
11758
|
var package_default = {
|
|
11753
11759
|
name: "@tscircuit/pcb-viewer",
|
|
11754
|
-
version: "1.10.
|
|
11760
|
+
version: "1.10.22",
|
|
11755
11761
|
main: "dist/index.js",
|
|
11756
11762
|
repository: "tscircuit/pcb-viewer",
|
|
11757
11763
|
license: "MIT",
|