@tscircuit/core 0.0.491 → 0.0.493
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 +77 -20
- package/dist/index.js +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9683,6 +9683,37 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
9683
9683
|
topPinCount?: number | undefined;
|
|
9684
9684
|
bottomPinCount?: number | undefined;
|
|
9685
9685
|
}>>;
|
|
9686
|
+
schPinStyle: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
9687
|
+
marginLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9688
|
+
marginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9689
|
+
marginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9690
|
+
marginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9691
|
+
leftMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9692
|
+
rightMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9693
|
+
topMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9694
|
+
bottomMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9695
|
+
}, "strip", zod.ZodTypeAny, {
|
|
9696
|
+
marginLeft?: number | undefined;
|
|
9697
|
+
marginRight?: number | undefined;
|
|
9698
|
+
marginTop?: number | undefined;
|
|
9699
|
+
marginBottom?: number | undefined;
|
|
9700
|
+
leftMargin?: number | undefined;
|
|
9701
|
+
rightMargin?: number | undefined;
|
|
9702
|
+
topMargin?: number | undefined;
|
|
9703
|
+
bottomMargin?: number | undefined;
|
|
9704
|
+
}, {
|
|
9705
|
+
marginLeft?: string | number | undefined;
|
|
9706
|
+
marginRight?: string | number | undefined;
|
|
9707
|
+
marginTop?: string | number | undefined;
|
|
9708
|
+
marginBottom?: string | number | undefined;
|
|
9709
|
+
leftMargin?: string | number | undefined;
|
|
9710
|
+
rightMargin?: string | number | undefined;
|
|
9711
|
+
topMargin?: string | number | undefined;
|
|
9712
|
+
bottomMargin?: string | number | undefined;
|
|
9713
|
+
}>>>;
|
|
9714
|
+
schPinSpacing: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9715
|
+
schWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9716
|
+
schHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
9686
9717
|
}, "strip", zod.ZodTypeAny, {
|
|
9687
9718
|
name: string;
|
|
9688
9719
|
pinCount: number;
|
|
@@ -9753,6 +9784,8 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
9753
9784
|
children?: any;
|
|
9754
9785
|
symbolName?: string | undefined;
|
|
9755
9786
|
doNotPlace?: boolean | undefined;
|
|
9787
|
+
schWidth?: number | undefined;
|
|
9788
|
+
schHeight?: number | undefined;
|
|
9756
9789
|
pinLabels?: string[] | undefined;
|
|
9757
9790
|
schPinArrangement?: {
|
|
9758
9791
|
leftSize?: number | undefined;
|
|
@@ -9780,6 +9813,17 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
9780
9813
|
topPinCount?: number | undefined;
|
|
9781
9814
|
bottomPinCount?: number | undefined;
|
|
9782
9815
|
} | undefined;
|
|
9816
|
+
schPinStyle?: Record<string, {
|
|
9817
|
+
marginLeft?: number | undefined;
|
|
9818
|
+
marginRight?: number | undefined;
|
|
9819
|
+
marginTop?: number | undefined;
|
|
9820
|
+
marginBottom?: number | undefined;
|
|
9821
|
+
leftMargin?: number | undefined;
|
|
9822
|
+
rightMargin?: number | undefined;
|
|
9823
|
+
topMargin?: number | undefined;
|
|
9824
|
+
bottomMargin?: number | undefined;
|
|
9825
|
+
}> | undefined;
|
|
9826
|
+
schPinSpacing?: number | undefined;
|
|
9783
9827
|
connections?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
9784
9828
|
holeDiameter?: number | undefined;
|
|
9785
9829
|
pitch?: number | undefined;
|
|
@@ -9859,6 +9903,8 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
9859
9903
|
children?: any;
|
|
9860
9904
|
symbolName?: string | undefined;
|
|
9861
9905
|
doNotPlace?: boolean | undefined;
|
|
9906
|
+
schWidth?: string | number | undefined;
|
|
9907
|
+
schHeight?: string | number | undefined;
|
|
9862
9908
|
pinLabels?: string[] | undefined;
|
|
9863
9909
|
schPinArrangement?: {
|
|
9864
9910
|
leftSize?: number | undefined;
|
|
@@ -9886,6 +9932,17 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
9886
9932
|
topPinCount?: number | undefined;
|
|
9887
9933
|
bottomPinCount?: number | undefined;
|
|
9888
9934
|
} | undefined;
|
|
9935
|
+
schPinStyle?: Record<string, {
|
|
9936
|
+
marginLeft?: string | number | undefined;
|
|
9937
|
+
marginRight?: string | number | undefined;
|
|
9938
|
+
marginTop?: string | number | undefined;
|
|
9939
|
+
marginBottom?: string | number | undefined;
|
|
9940
|
+
leftMargin?: string | number | undefined;
|
|
9941
|
+
rightMargin?: string | number | undefined;
|
|
9942
|
+
topMargin?: string | number | undefined;
|
|
9943
|
+
bottomMargin?: string | number | undefined;
|
|
9944
|
+
}> | undefined;
|
|
9945
|
+
schPinSpacing?: string | number | undefined;
|
|
9889
9946
|
connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
|
|
9890
9947
|
holeDiameter?: string | number | undefined;
|
|
9891
9948
|
pitch?: string | number | undefined;
|
|
@@ -14279,8 +14336,8 @@ declare class SchematicText extends PrimitiveComponent<typeof schematicTextProps
|
|
|
14279
14336
|
get config(): {
|
|
14280
14337
|
componentName: string;
|
|
14281
14338
|
zodProps: zod.ZodObject<{
|
|
14282
|
-
schX: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number
|
|
14283
|
-
schY: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number
|
|
14339
|
+
schX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14340
|
+
schY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14284
14341
|
text: zod.ZodString;
|
|
14285
14342
|
fontSize: zod.ZodDefault<zod.ZodNumber>;
|
|
14286
14343
|
anchor: zod.ZodDefault<zod.ZodUnion<[zod.ZodEnum<["center", "left", "right", "top", "bottom"]>, zod.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>]>>;
|
|
@@ -14288,17 +14345,17 @@ declare class SchematicText extends PrimitiveComponent<typeof schematicTextProps
|
|
|
14288
14345
|
schRotation: zod.ZodDefault<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14289
14346
|
}, "strip", zod.ZodTypeAny, {
|
|
14290
14347
|
anchor: "left" | "right" | "top" | "bottom" | "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center";
|
|
14291
|
-
schX: number;
|
|
14292
|
-
schY: number;
|
|
14293
14348
|
schRotation: number;
|
|
14294
14349
|
color: string;
|
|
14295
14350
|
text: string;
|
|
14296
14351
|
fontSize: number;
|
|
14352
|
+
schX?: number | undefined;
|
|
14353
|
+
schY?: number | undefined;
|
|
14297
14354
|
}, {
|
|
14298
|
-
schX: string | number;
|
|
14299
|
-
schY: string | number;
|
|
14300
14355
|
text: string;
|
|
14301
14356
|
anchor?: "left" | "right" | "top" | "bottom" | "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center" | undefined;
|
|
14357
|
+
schX?: string | number | undefined;
|
|
14358
|
+
schY?: string | number | undefined;
|
|
14302
14359
|
schRotation?: string | number | undefined;
|
|
14303
14360
|
color?: string | undefined;
|
|
14304
14361
|
fontSize?: number | undefined;
|
|
@@ -14312,8 +14369,8 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
|
|
|
14312
14369
|
get config(): {
|
|
14313
14370
|
componentName: string;
|
|
14314
14371
|
zodProps: zod.ZodEffects<zod.ZodEffects<zod.ZodObject<{
|
|
14315
|
-
schX: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number
|
|
14316
|
-
schY: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number
|
|
14372
|
+
schX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14373
|
+
schY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14317
14374
|
width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14318
14375
|
height: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14319
14376
|
overlay: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -14329,11 +14386,11 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
|
|
|
14329
14386
|
titleInside: zod.ZodDefault<zod.ZodBoolean>;
|
|
14330
14387
|
strokeStyle: zod.ZodDefault<zod.ZodEnum<["solid", "dashed"]>>;
|
|
14331
14388
|
}, "strip", zod.ZodTypeAny, {
|
|
14332
|
-
schX: number;
|
|
14333
|
-
schY: number;
|
|
14334
14389
|
titleAlignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center";
|
|
14335
14390
|
titleInside: boolean;
|
|
14336
14391
|
strokeStyle: "dashed" | "solid";
|
|
14392
|
+
schX?: number | undefined;
|
|
14393
|
+
schY?: number | undefined;
|
|
14337
14394
|
padding?: number | undefined;
|
|
14338
14395
|
paddingLeft?: number | undefined;
|
|
14339
14396
|
paddingRight?: number | undefined;
|
|
@@ -14346,8 +14403,8 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
|
|
|
14346
14403
|
titleColor?: string | undefined;
|
|
14347
14404
|
titleFontSize?: number | undefined;
|
|
14348
14405
|
}, {
|
|
14349
|
-
schX
|
|
14350
|
-
schY
|
|
14406
|
+
schX?: string | number | undefined;
|
|
14407
|
+
schY?: string | number | undefined;
|
|
14351
14408
|
padding?: string | number | undefined;
|
|
14352
14409
|
paddingLeft?: string | number | undefined;
|
|
14353
14410
|
paddingRight?: string | number | undefined;
|
|
@@ -14363,11 +14420,11 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
|
|
|
14363
14420
|
titleInside?: boolean | undefined;
|
|
14364
14421
|
strokeStyle?: "dashed" | "solid" | undefined;
|
|
14365
14422
|
}>, {
|
|
14366
|
-
schX: number;
|
|
14367
|
-
schY: number;
|
|
14368
14423
|
titleAlignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center";
|
|
14369
14424
|
titleInside: boolean;
|
|
14370
14425
|
strokeStyle: "dashed" | "solid";
|
|
14426
|
+
schX?: number | undefined;
|
|
14427
|
+
schY?: number | undefined;
|
|
14371
14428
|
padding?: number | undefined;
|
|
14372
14429
|
paddingLeft?: number | undefined;
|
|
14373
14430
|
paddingRight?: number | undefined;
|
|
@@ -14380,8 +14437,8 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
|
|
|
14380
14437
|
titleColor?: string | undefined;
|
|
14381
14438
|
titleFontSize?: number | undefined;
|
|
14382
14439
|
}, {
|
|
14383
|
-
schX
|
|
14384
|
-
schY
|
|
14440
|
+
schX?: string | number | undefined;
|
|
14441
|
+
schY?: string | number | undefined;
|
|
14385
14442
|
padding?: string | number | undefined;
|
|
14386
14443
|
paddingLeft?: string | number | undefined;
|
|
14387
14444
|
paddingRight?: string | number | undefined;
|
|
@@ -14397,11 +14454,11 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
|
|
|
14397
14454
|
titleInside?: boolean | undefined;
|
|
14398
14455
|
strokeStyle?: "dashed" | "solid" | undefined;
|
|
14399
14456
|
}>, {
|
|
14400
|
-
schX: number;
|
|
14401
|
-
schY: number;
|
|
14402
14457
|
titleAlignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center";
|
|
14403
14458
|
titleInside: boolean;
|
|
14404
14459
|
strokeStyle: "dashed" | "solid";
|
|
14460
|
+
schX?: number | undefined;
|
|
14461
|
+
schY?: number | undefined;
|
|
14405
14462
|
padding?: number | undefined;
|
|
14406
14463
|
paddingLeft?: number | undefined;
|
|
14407
14464
|
paddingRight?: number | undefined;
|
|
@@ -14414,8 +14471,8 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
|
|
|
14414
14471
|
titleColor?: string | undefined;
|
|
14415
14472
|
titleFontSize?: number | undefined;
|
|
14416
14473
|
}, {
|
|
14417
|
-
schX
|
|
14418
|
-
schY
|
|
14474
|
+
schX?: string | number | undefined;
|
|
14475
|
+
schY?: string | number | undefined;
|
|
14419
14476
|
padding?: string | number | undefined;
|
|
14420
14477
|
paddingLeft?: string | number | undefined;
|
|
14421
14478
|
paddingRight?: string | number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -10113,8 +10113,8 @@ var SchematicText = class extends PrimitiveComponent2 {
|
|
|
10113
10113
|
font_size: props.fontSize,
|
|
10114
10114
|
color: props.color || "#000000",
|
|
10115
10115
|
position: {
|
|
10116
|
-
x: props.schX,
|
|
10117
|
-
y: props.schY
|
|
10116
|
+
x: props.schX ?? 0,
|
|
10117
|
+
y: props.schY ?? 0
|
|
10118
10118
|
},
|
|
10119
10119
|
rotation: props.schRotation ?? 0
|
|
10120
10120
|
});
|
|
@@ -10326,7 +10326,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10326
10326
|
var package_default = {
|
|
10327
10327
|
name: "@tscircuit/core",
|
|
10328
10328
|
type: "module",
|
|
10329
|
-
version: "0.0.
|
|
10329
|
+
version: "0.0.492",
|
|
10330
10330
|
types: "dist/index.d.ts",
|
|
10331
10331
|
main: "dist/index.js",
|
|
10332
10332
|
module: "dist/index.js",
|
|
@@ -10358,7 +10358,7 @@ var package_default = {
|
|
|
10358
10358
|
"@tscircuit/layout": "^0.0.28",
|
|
10359
10359
|
"@tscircuit/log-soup": "^1.0.2",
|
|
10360
10360
|
"@tscircuit/math-utils": "^0.0.18",
|
|
10361
|
-
"@tscircuit/props": "^0.0.
|
|
10361
|
+
"@tscircuit/props": "^0.0.236",
|
|
10362
10362
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
10363
10363
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
10364
10364
|
"@tscircuit/simple-3d-svg": "^0.0.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.493",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@tscircuit/layout": "^0.0.28",
|
|
34
34
|
"@tscircuit/log-soup": "^1.0.2",
|
|
35
35
|
"@tscircuit/math-utils": "^0.0.18",
|
|
36
|
-
"@tscircuit/props": "^0.0.
|
|
36
|
+
"@tscircuit/props": "^0.0.236",
|
|
37
37
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
38
38
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
39
39
|
"@tscircuit/simple-3d-svg": "^0.0.6",
|