@tscircuit/core 0.0.1279 → 0.0.1280
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.d.ts +15 -0
- package/dist/index.js +5 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -147408,6 +147408,8 @@ declare class SchematicLine extends PrimitiveComponent<typeof schematicLineProps
|
|
|
147408
147408
|
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
147409
147409
|
color: zod.ZodOptional<zod.ZodString>;
|
|
147410
147410
|
isDashed: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
147411
|
+
dashLength: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
147412
|
+
dashGap: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
147411
147413
|
}, "strip", zod.ZodTypeAny, {
|
|
147412
147414
|
isDashed: boolean;
|
|
147413
147415
|
x1: number;
|
|
@@ -147416,6 +147418,8 @@ declare class SchematicLine extends PrimitiveComponent<typeof schematicLineProps
|
|
|
147416
147418
|
y2: number;
|
|
147417
147419
|
strokeWidth?: number | undefined;
|
|
147418
147420
|
color?: string | undefined;
|
|
147421
|
+
dashLength?: number | undefined;
|
|
147422
|
+
dashGap?: number | undefined;
|
|
147419
147423
|
}, {
|
|
147420
147424
|
x1: string | number;
|
|
147421
147425
|
y1: string | number;
|
|
@@ -147424,6 +147428,8 @@ declare class SchematicLine extends PrimitiveComponent<typeof schematicLineProps
|
|
|
147424
147428
|
strokeWidth?: string | number | undefined;
|
|
147425
147429
|
color?: string | undefined;
|
|
147426
147430
|
isDashed?: boolean | undefined;
|
|
147431
|
+
dashLength?: string | number | undefined;
|
|
147432
|
+
dashGap?: string | number | undefined;
|
|
147427
147433
|
}>;
|
|
147428
147434
|
};
|
|
147429
147435
|
schematic_line_id?: string;
|
|
@@ -147600,6 +147606,8 @@ declare class SchematicPath extends PrimitiveComponent<typeof schematicPathProps
|
|
|
147600
147606
|
svgPath: zod.ZodOptional<zod.ZodString>;
|
|
147601
147607
|
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
147602
147608
|
strokeColor: zod.ZodOptional<zod.ZodString>;
|
|
147609
|
+
dashLength: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
147610
|
+
dashGap: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
147603
147611
|
isFilled: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
147604
147612
|
fillColor: zod.ZodOptional<zod.ZodString>;
|
|
147605
147613
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -147610,6 +147618,8 @@ declare class SchematicPath extends PrimitiveComponent<typeof schematicPathProps
|
|
|
147610
147618
|
y: number;
|
|
147611
147619
|
}[] | undefined;
|
|
147612
147620
|
fillColor?: string | undefined;
|
|
147621
|
+
dashLength?: number | undefined;
|
|
147622
|
+
dashGap?: number | undefined;
|
|
147613
147623
|
svgPath?: string | undefined;
|
|
147614
147624
|
strokeColor?: string | undefined;
|
|
147615
147625
|
}, {
|
|
@@ -147620,6 +147630,8 @@ declare class SchematicPath extends PrimitiveComponent<typeof schematicPathProps
|
|
|
147620
147630
|
}[] | undefined;
|
|
147621
147631
|
isFilled?: boolean | undefined;
|
|
147622
147632
|
fillColor?: string | undefined;
|
|
147633
|
+
dashLength?: string | number | undefined;
|
|
147634
|
+
dashGap?: string | number | undefined;
|
|
147623
147635
|
svgPath?: string | undefined;
|
|
147624
147636
|
strokeColor?: string | undefined;
|
|
147625
147637
|
}>;
|
|
@@ -147764,12 +147776,15 @@ declare class SchematicSection extends PrimitiveComponent<typeof schematicSectio
|
|
|
147764
147776
|
zodProps: zod.ZodObject<{
|
|
147765
147777
|
displayName: zod.ZodOptional<zod.ZodString>;
|
|
147766
147778
|
name: zod.ZodString;
|
|
147779
|
+
sectionTitleFontSize: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
147767
147780
|
}, "strip", zod.ZodTypeAny, {
|
|
147768
147781
|
name: string;
|
|
147769
147782
|
displayName?: string | undefined;
|
|
147783
|
+
sectionTitleFontSize?: number | undefined;
|
|
147770
147784
|
}, {
|
|
147771
147785
|
name: string;
|
|
147772
147786
|
displayName?: string | undefined;
|
|
147787
|
+
sectionTitleFontSize?: string | number | undefined;
|
|
147773
147788
|
}>;
|
|
147774
147789
|
};
|
|
147775
147790
|
_computeSectionBounds(board: PrimitiveComponent): Bounds | null;
|
package/dist/index.js
CHANGED
|
@@ -21856,7 +21856,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
21856
21856
|
var package_default = {
|
|
21857
21857
|
name: "@tscircuit/core",
|
|
21858
21858
|
type: "module",
|
|
21859
|
-
version: "0.0.
|
|
21859
|
+
version: "0.0.1279",
|
|
21860
21860
|
types: "dist/index.d.ts",
|
|
21861
21861
|
main: "dist/index.js",
|
|
21862
21862
|
module: "dist/index.js",
|
|
@@ -21904,7 +21904,7 @@ var package_default = {
|
|
|
21904
21904
|
"@tscircuit/math-utils": "^0.0.36",
|
|
21905
21905
|
"@tscircuit/miniflex": "^0.0.4",
|
|
21906
21906
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
21907
|
-
"@tscircuit/props": "^0.0.
|
|
21907
|
+
"@tscircuit/props": "^0.0.542",
|
|
21908
21908
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
21909
21909
|
"@tscircuit/schematic-trace-solver": "^0.0.60",
|
|
21910
21910
|
"@tscircuit/solver-utils": "^0.0.3",
|
|
@@ -21918,7 +21918,7 @@ var package_default = {
|
|
|
21918
21918
|
"bun-match-svg": "0.0.12",
|
|
21919
21919
|
"calculate-elbow": "^0.0.12",
|
|
21920
21920
|
"chokidar-cli": "^3.0.0",
|
|
21921
|
-
"circuit-json": "^0.0.
|
|
21921
|
+
"circuit-json": "^0.0.431",
|
|
21922
21922
|
"circuit-json-to-bpc": "^0.0.13",
|
|
21923
21923
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
21924
21924
|
"circuit-json-to-gltf": "^0.0.102",
|
|
@@ -27717,7 +27717,7 @@ var SchematicSection = class _SchematicSection extends PrimitiveComponent2 {
|
|
|
27717
27717
|
(l) => Math.abs(l.start.x - l.end.x) < TOL3
|
|
27718
27718
|
);
|
|
27719
27719
|
for (const { section, cell, rawBounds } of sectionData) {
|
|
27720
|
-
const { displayName } = section._parsedProps;
|
|
27720
|
+
const { displayName, sectionTitleFontSize } = section._parsedProps;
|
|
27721
27721
|
if (!displayName) continue;
|
|
27722
27722
|
const dividersAbove = hDividers.map((l) => l.start.y).filter((y) => y > cell.minY);
|
|
27723
27723
|
const topBoundary = dividersAbove.length > 0 ? Math.min(...dividersAbove) : outer.maxY;
|
|
@@ -27726,7 +27726,7 @@ var SchematicSection = class _SchematicSection extends PrimitiveComponent2 {
|
|
|
27726
27726
|
db.schematic_text.insert({
|
|
27727
27727
|
anchor: "top_left",
|
|
27728
27728
|
text: displayName,
|
|
27729
|
-
font_size: 0.18,
|
|
27729
|
+
font_size: sectionTitleFontSize ?? 0.18,
|
|
27730
27730
|
color: "#000000",
|
|
27731
27731
|
position: {
|
|
27732
27732
|
x: leftBoundary + LABEL_PADDING,
|
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.1280",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@tscircuit/math-utils": "^0.0.36",
|
|
50
50
|
"@tscircuit/miniflex": "^0.0.4",
|
|
51
51
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
52
|
-
"@tscircuit/props": "^0.0.
|
|
52
|
+
"@tscircuit/props": "^0.0.542",
|
|
53
53
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
54
54
|
"@tscircuit/schematic-trace-solver": "^0.0.60",
|
|
55
55
|
"@tscircuit/solver-utils": "^0.0.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
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.
|
|
66
|
+
"circuit-json": "^0.0.431",
|
|
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",
|