@tscircuit/core 0.0.1017 → 0.0.1018
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 +13 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3489,6 +3489,14 @@ var SilkscreenText = class extends PrimitiveComponent2 {
|
|
|
3489
3489
|
component: this
|
|
3490
3490
|
});
|
|
3491
3491
|
const fontSize = props.fontSize ?? resolvedPcbSxFontSize ?? this.getInheritedProperty("pcbStyle")?.silkscreenFontSize ?? this._footprinterFontSize ?? 1;
|
|
3492
|
+
const uniformPadding = props.knockoutPadding ?? 0;
|
|
3493
|
+
const hasKnockoutPadding = props.knockoutPadding !== void 0 || props.knockoutPaddingLeft !== void 0 || props.knockoutPaddingRight !== void 0 || props.knockoutPaddingTop !== void 0 || props.knockoutPaddingBottom !== void 0;
|
|
3494
|
+
const knockoutPadding = hasKnockoutPadding ? {
|
|
3495
|
+
left: props.knockoutPaddingLeft ?? uniformPadding,
|
|
3496
|
+
right: props.knockoutPaddingRight ?? uniformPadding,
|
|
3497
|
+
top: props.knockoutPaddingTop ?? uniformPadding,
|
|
3498
|
+
bottom: props.knockoutPaddingBottom ?? uniformPadding
|
|
3499
|
+
} : void 0;
|
|
3492
3500
|
for (const layer of targetLayers) {
|
|
3493
3501
|
const pcb_silkscreen_text = db.pcb_silkscreen_text.insert({
|
|
3494
3502
|
anchor_alignment: props.anchorAlignment,
|
|
@@ -3503,7 +3511,9 @@ var SilkscreenText = class extends PrimitiveComponent2 {
|
|
|
3503
3511
|
ccw_rotation: rotation4,
|
|
3504
3512
|
pcb_component_id: container.pcb_component_id,
|
|
3505
3513
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
3506
|
-
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
3514
|
+
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
|
|
3515
|
+
is_knockout: props.isKnockout,
|
|
3516
|
+
knockout_padding: knockoutPadding
|
|
3507
3517
|
});
|
|
3508
3518
|
this.pcb_silkscreen_text_ids.push(
|
|
3509
3519
|
pcb_silkscreen_text.pcb_silkscreen_text_id
|
|
@@ -22229,7 +22239,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
22229
22239
|
var package_default = {
|
|
22230
22240
|
name: "@tscircuit/core",
|
|
22231
22241
|
type: "module",
|
|
22232
|
-
version: "0.0.
|
|
22242
|
+
version: "0.0.1017",
|
|
22233
22243
|
types: "dist/index.d.ts",
|
|
22234
22244
|
main: "dist/index.js",
|
|
22235
22245
|
module: "dist/index.js",
|
|
@@ -22293,7 +22303,7 @@ var package_default = {
|
|
|
22293
22303
|
"circuit-json-to-gltf": "^0.0.62",
|
|
22294
22304
|
"circuit-json-to-simple-3d": "^0.0.9",
|
|
22295
22305
|
"circuit-json-to-spice": "^0.0.33",
|
|
22296
|
-
"circuit-to-svg": "^0.0.
|
|
22306
|
+
"circuit-to-svg": "^0.0.327",
|
|
22297
22307
|
concurrently: "^9.1.2",
|
|
22298
22308
|
"connectivity-map": "^1.0.0",
|
|
22299
22309
|
debug: "^4.3.6",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1018",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"circuit-json-to-gltf": "^0.0.62",
|
|
66
66
|
"circuit-json-to-simple-3d": "^0.0.9",
|
|
67
67
|
"circuit-json-to-spice": "^0.0.33",
|
|
68
|
-
"circuit-to-svg": "^0.0.
|
|
68
|
+
"circuit-to-svg": "^0.0.327",
|
|
69
69
|
"concurrently": "^9.1.2",
|
|
70
70
|
"connectivity-map": "^1.0.0",
|
|
71
71
|
"debug": "^4.3.6",
|