@tscircuit/core 0.0.1301 → 0.0.1302

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7867,7 +7867,9 @@ var SchematicLine = class extends PrimitiveComponent2 {
7867
7867
  y2: props.y2 + globalPos.y,
7868
7868
  stroke_width: props.strokeWidth ?? SCHEMATIC_COMPONENT_OUTLINE_STROKE_WIDTH,
7869
7869
  color: props.color ?? SCHEMATIC_COMPONENT_OUTLINE_COLOR,
7870
- is_dashed: false,
7870
+ is_dashed: props.isDashed || props.dashLength !== void 0 || props.dashGap !== void 0,
7871
+ dash_length: props.dashLength,
7872
+ dash_gap: props.dashGap,
7871
7873
  subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0
7872
7874
  });
7873
7875
  this.schematic_line_id = schematic_line.schematic_line_id;
@@ -8055,9 +8057,12 @@ var SchematicPath = class extends PrimitiveComponent2 {
8055
8057
  y: point6.y + globalPos.y
8056
8058
  })),
8057
8059
  is_filled: props.isFilled,
8060
+ is_dashed: props.dashLength !== void 0 || props.dashGap !== void 0,
8058
8061
  fill_color: props.fillColor,
8059
8062
  stroke_color: props.strokeColor,
8060
8063
  stroke_width: props.strokeWidth,
8064
+ dash_length: props.dashLength,
8065
+ dash_gap: props.dashGap,
8061
8066
  subcircuit_id
8062
8067
  });
8063
8068
  this.schematic_path_ids.push(schematic_path.schematic_path_id);
@@ -8071,9 +8076,12 @@ var SchematicPath = class extends PrimitiveComponent2 {
8071
8076
  y: point6.y + globalPos.y
8072
8077
  })),
8073
8078
  is_filled: props.isFilled,
8079
+ is_dashed: props.dashLength !== void 0 || props.dashGap !== void 0,
8074
8080
  fill_color: props.fillColor,
8075
8081
  stroke_color: props.strokeColor,
8076
8082
  stroke_width: props.strokeWidth,
8083
+ dash_length: props.dashLength,
8084
+ dash_gap: props.dashGap,
8077
8085
  subcircuit_id
8078
8086
  });
8079
8087
  this.schematic_path_ids.push(schematic_path.schematic_path_id);
@@ -23373,7 +23381,7 @@ import { identity as identity5 } from "transformation-matrix";
23373
23381
  var package_default = {
23374
23382
  name: "@tscircuit/core",
23375
23383
  type: "module",
23376
- version: "0.0.1300",
23384
+ version: "0.0.1301",
23377
23385
  types: "dist/index.d.ts",
23378
23386
  main: "dist/index.js",
23379
23387
  module: "dist/index.js",
@@ -23435,13 +23443,13 @@ var package_default = {
23435
23443
  "bun-match-svg": "0.0.12",
23436
23444
  "calculate-elbow": "^0.0.12",
23437
23445
  "chokidar-cli": "^3.0.0",
23438
- "circuit-json": "^0.0.431",
23446
+ "circuit-json": "^0.0.433",
23439
23447
  "circuit-json-to-bpc": "^0.0.13",
23440
23448
  "circuit-json-to-connectivity-map": "^0.0.23",
23441
23449
  "circuit-json-to-gltf": "^0.0.102",
23442
23450
  "circuit-json-to-simple-3d": "^0.0.9",
23443
23451
  "circuit-json-to-spice": "^0.0.36",
23444
- "circuit-to-svg": "^0.0.350",
23452
+ "circuit-to-svg": "^0.0.353",
23445
23453
  concurrently: "^9.1.2",
23446
23454
  "connectivity-map": "^1.0.0",
23447
23455
  debug: "^4.3.6",
@@ -28281,6 +28289,7 @@ function insertInnerSymbolInSchematicBox(connector, symbol) {
28281
28289
  schematic_component_id: connector.schematic_component_id,
28282
28290
  points,
28283
28291
  is_filled: primitive.fill ?? false,
28292
+ is_dashed: false,
28284
28293
  fill_color: primitive.fill ? SCHEMATIC_COMPONENT_OUTLINE_COLOR : void 0,
28285
28294
  stroke_width: 0.02,
28286
28295
  subcircuit_id
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1301",
4
+ "version": "0.0.1302",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -63,13 +63,13 @@
63
63
  "bun-match-svg": "0.0.12",
64
64
  "calculate-elbow": "^0.0.12",
65
65
  "chokidar-cli": "^3.0.0",
66
- "circuit-json": "^0.0.431",
66
+ "circuit-json": "^0.0.433",
67
67
  "circuit-json-to-bpc": "^0.0.13",
68
68
  "circuit-json-to-connectivity-map": "^0.0.23",
69
69
  "circuit-json-to-gltf": "^0.0.102",
70
70
  "circuit-json-to-simple-3d": "^0.0.9",
71
71
  "circuit-json-to-spice": "^0.0.36",
72
- "circuit-to-svg": "^0.0.350",
72
+ "circuit-to-svg": "^0.0.353",
73
73
  "concurrently": "^9.1.2",
74
74
  "connectivity-map": "^1.0.0",
75
75
  "debug": "^4.3.6",