@tscircuit/core 0.0.1284 → 0.0.1285
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 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21896,7 +21896,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
21896
21896
|
var package_default = {
|
|
21897
21897
|
name: "@tscircuit/core",
|
|
21898
21898
|
type: "module",
|
|
21899
|
-
version: "0.0.
|
|
21899
|
+
version: "0.0.1284",
|
|
21900
21900
|
types: "dist/index.d.ts",
|
|
21901
21901
|
main: "dist/index.js",
|
|
21902
21902
|
module: "dist/index.js",
|
|
@@ -22008,7 +22008,7 @@ var package_default = {
|
|
|
22008
22008
|
dependencies: {
|
|
22009
22009
|
"@flatten-js/core": "^1.6.2",
|
|
22010
22010
|
"@lume/kiwi": "^0.4.3",
|
|
22011
|
-
"calculate-cell-boundaries": "^0.0.
|
|
22011
|
+
"calculate-cell-boundaries": "^0.0.8",
|
|
22012
22012
|
"calculate-packing": "0.0.73",
|
|
22013
22013
|
"css-select": "5.1.0",
|
|
22014
22014
|
"format-si-unit": "^0.0.3",
|
|
@@ -28469,8 +28469,14 @@ var SchematicSection = class _SchematicSection extends PrimitiveComponent2 {
|
|
|
28469
28469
|
if (sectionData.length === 0) return;
|
|
28470
28470
|
const allCells = sectionData.map((s) => s.cell);
|
|
28471
28471
|
const outer = computeBoundsFromCellContents(allCells);
|
|
28472
|
+
const CELL_MARGIN = 1;
|
|
28472
28473
|
const dividers = calculateCellBoundaries(
|
|
28473
|
-
sectionData.map((s) =>
|
|
28474
|
+
sectionData.map((s) => ({
|
|
28475
|
+
minX: s.rawBounds.minX - CELL_MARGIN,
|
|
28476
|
+
maxX: s.rawBounds.maxX + CELL_MARGIN,
|
|
28477
|
+
minY: s.rawBounds.minY - CELL_MARGIN,
|
|
28478
|
+
maxY: s.rawBounds.maxY + CELL_MARGIN
|
|
28479
|
+
}))
|
|
28474
28480
|
);
|
|
28475
28481
|
for (const line of dividers) {
|
|
28476
28482
|
db.schematic_line.insert({
|
|
@@ -28489,10 +28495,10 @@ var SchematicSection = class _SchematicSection extends PrimitiveComponent2 {
|
|
|
28489
28495
|
const vDividers = dividers.filter(
|
|
28490
28496
|
(l) => Math.abs(l.start.x - l.end.x) < TOL3
|
|
28491
28497
|
);
|
|
28492
|
-
for (const { section,
|
|
28498
|
+
for (const { section, rawBounds } of sectionData) {
|
|
28493
28499
|
const { displayName, sectionTitleFontSize } = section._parsedProps;
|
|
28494
28500
|
if (!displayName) continue;
|
|
28495
|
-
const dividersAbove = hDividers.map((l) => l.start.y).filter((y) => y >
|
|
28501
|
+
const dividersAbove = hDividers.map((l) => l.start.y).filter((y) => y > rawBounds.maxY);
|
|
28496
28502
|
const topBoundary = dividersAbove.length > 0 ? Math.min(...dividersAbove) : outer.maxY;
|
|
28497
28503
|
const dividersToLeft = vDividers.map((l) => l.start.x).filter((x) => x < rawBounds.minX);
|
|
28498
28504
|
const leftBoundary = dividersToLeft.length > 0 ? Math.max(...dividersToLeft) : outer.minX;
|
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.1285",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"dependencies": {
|
|
114
114
|
"@flatten-js/core": "^1.6.2",
|
|
115
115
|
"@lume/kiwi": "^0.4.3",
|
|
116
|
-
"calculate-cell-boundaries": "^0.0.
|
|
116
|
+
"calculate-cell-boundaries": "^0.0.8",
|
|
117
117
|
"calculate-packing": "0.0.73",
|
|
118
118
|
"css-select": "5.1.0",
|
|
119
119
|
"format-si-unit": "^0.0.3",
|