@tscircuit/props 0.0.540 → 0.0.541
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/README.md +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -32
- package/dist/index.js.map +1 -1
- package/lib/components/schematic-section.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -183242,16 +183242,20 @@ interface SchematicCellProps {
|
|
|
183242
183242
|
interface SchematicSectionProps {
|
|
183243
183243
|
displayName?: string;
|
|
183244
183244
|
name: string;
|
|
183245
|
+
sectionTitleFontSize?: number | string;
|
|
183245
183246
|
}
|
|
183246
183247
|
declare const schematicSectionProps: z.ZodObject<{
|
|
183247
183248
|
displayName: z.ZodOptional<z.ZodString>;
|
|
183248
183249
|
name: z.ZodString;
|
|
183250
|
+
sectionTitleFontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
183249
183251
|
}, "strip", z.ZodTypeAny, {
|
|
183250
183252
|
name: string;
|
|
183251
183253
|
displayName?: string | undefined;
|
|
183254
|
+
sectionTitleFontSize?: number | undefined;
|
|
183252
183255
|
}, {
|
|
183253
183256
|
name: string;
|
|
183254
183257
|
displayName?: string | undefined;
|
|
183258
|
+
sectionTitleFontSize?: string | number | undefined;
|
|
183255
183259
|
}>;
|
|
183256
183260
|
type InferredSchematicSectionProps = z.input<typeof schematicSectionProps>;
|
|
183257
183261
|
|
package/dist/index.js
CHANGED
|
@@ -18139,10 +18139,12 @@ var schematicCellProps = z114.object({
|
|
|
18139
18139
|
expectTypesMatch(true);
|
|
18140
18140
|
|
|
18141
18141
|
// lib/components/schematic-section.ts
|
|
18142
|
+
import { distance as distance39 } from "circuit-json";
|
|
18142
18143
|
import { z as z115 } from "zod";
|
|
18143
18144
|
var schematicSectionProps = z115.object({
|
|
18144
18145
|
displayName: z115.string().optional(),
|
|
18145
|
-
name: z115.string()
|
|
18146
|
+
name: z115.string(),
|
|
18147
|
+
sectionTitleFontSize: distance39.optional()
|
|
18146
18148
|
});
|
|
18147
18149
|
expectTypesMatch(
|
|
18148
18150
|
true
|
|
@@ -18200,7 +18202,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
|
|
|
18200
18202
|
});
|
|
18201
18203
|
|
|
18202
18204
|
// lib/components/silkscreen-line.ts
|
|
18203
|
-
import { distance as
|
|
18205
|
+
import { distance as distance40 } from "circuit-json";
|
|
18204
18206
|
var silkscreenLineProps = pcbLayoutProps.omit({
|
|
18205
18207
|
pcbX: true,
|
|
18206
18208
|
pcbY: true,
|
|
@@ -18208,41 +18210,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
|
|
|
18208
18210
|
pcbOffsetY: true,
|
|
18209
18211
|
pcbRotation: true
|
|
18210
18212
|
}).extend({
|
|
18211
|
-
strokeWidth:
|
|
18212
|
-
x1:
|
|
18213
|
-
y1:
|
|
18214
|
-
x2:
|
|
18215
|
-
y2:
|
|
18213
|
+
strokeWidth: distance40,
|
|
18214
|
+
x1: distance40,
|
|
18215
|
+
y1: distance40,
|
|
18216
|
+
x2: distance40,
|
|
18217
|
+
y2: distance40
|
|
18216
18218
|
});
|
|
18217
18219
|
|
|
18218
18220
|
// lib/components/silkscreen-rect.ts
|
|
18219
|
-
import { distance as
|
|
18221
|
+
import { distance as distance41 } from "circuit-json";
|
|
18220
18222
|
import { z as z119 } from "zod";
|
|
18221
18223
|
var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18222
18224
|
filled: z119.boolean().default(true).optional(),
|
|
18223
18225
|
stroke: z119.enum(["dashed", "solid", "none"]).optional(),
|
|
18224
|
-
strokeWidth:
|
|
18225
|
-
width:
|
|
18226
|
-
height:
|
|
18227
|
-
cornerRadius:
|
|
18226
|
+
strokeWidth: distance41.optional(),
|
|
18227
|
+
width: distance41,
|
|
18228
|
+
height: distance41,
|
|
18229
|
+
cornerRadius: distance41.optional()
|
|
18228
18230
|
});
|
|
18229
18231
|
|
|
18230
18232
|
// lib/components/silkscreen-circle.ts
|
|
18231
|
-
import { distance as
|
|
18233
|
+
import { distance as distance42 } from "circuit-json";
|
|
18232
18234
|
import { z as z120 } from "zod";
|
|
18233
18235
|
var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18234
18236
|
isFilled: z120.boolean().optional(),
|
|
18235
18237
|
isOutline: z120.boolean().optional(),
|
|
18236
|
-
strokeWidth:
|
|
18237
|
-
radius:
|
|
18238
|
+
strokeWidth: distance42.optional(),
|
|
18239
|
+
radius: distance42
|
|
18238
18240
|
});
|
|
18239
18241
|
|
|
18240
18242
|
// lib/components/trace-hint.ts
|
|
18241
|
-
import { distance as
|
|
18243
|
+
import { distance as distance43, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18242
18244
|
import { z as z121 } from "zod";
|
|
18243
18245
|
var routeHintPointProps = z121.object({
|
|
18244
|
-
x:
|
|
18245
|
-
y:
|
|
18246
|
+
x: distance43,
|
|
18247
|
+
y: distance43,
|
|
18246
18248
|
via: z121.boolean().optional(),
|
|
18247
18249
|
toLayer: layer_ref12.optional()
|
|
18248
18250
|
});
|
|
@@ -18286,17 +18288,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
|
|
|
18286
18288
|
expectTypesMatch(true);
|
|
18287
18289
|
|
|
18288
18290
|
// lib/components/pcb-note-rect.ts
|
|
18289
|
-
import { distance as
|
|
18291
|
+
import { distance as distance44 } from "circuit-json";
|
|
18290
18292
|
import { z as z124 } from "zod";
|
|
18291
18293
|
var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18292
|
-
width:
|
|
18293
|
-
height:
|
|
18294
|
-
strokeWidth:
|
|
18294
|
+
width: distance44,
|
|
18295
|
+
height: distance44,
|
|
18296
|
+
strokeWidth: distance44.optional(),
|
|
18295
18297
|
isFilled: z124.boolean().optional(),
|
|
18296
18298
|
hasStroke: z124.boolean().optional(),
|
|
18297
18299
|
isStrokeDashed: z124.boolean().optional(),
|
|
18298
18300
|
color: z124.string().optional(),
|
|
18299
|
-
cornerRadius:
|
|
18301
|
+
cornerRadius: distance44.optional()
|
|
18300
18302
|
});
|
|
18301
18303
|
expectTypesMatch(true);
|
|
18302
18304
|
|
|
@@ -18324,7 +18326,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
|
|
|
18324
18326
|
expectTypesMatch(true);
|
|
18325
18327
|
|
|
18326
18328
|
// lib/components/pcb-note-line.ts
|
|
18327
|
-
import { distance as
|
|
18329
|
+
import { distance as distance45 } from "circuit-json";
|
|
18328
18330
|
import { z as z126 } from "zod";
|
|
18329
18331
|
var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
18330
18332
|
pcbLeftEdgeX: true,
|
|
@@ -18337,18 +18339,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
|
18337
18339
|
pcbOffsetY: true,
|
|
18338
18340
|
pcbRotation: true
|
|
18339
18341
|
}).extend({
|
|
18340
|
-
x1:
|
|
18341
|
-
y1:
|
|
18342
|
-
x2:
|
|
18343
|
-
y2:
|
|
18344
|
-
strokeWidth:
|
|
18342
|
+
x1: distance45,
|
|
18343
|
+
y1: distance45,
|
|
18344
|
+
x2: distance45,
|
|
18345
|
+
y2: distance45,
|
|
18346
|
+
strokeWidth: distance45.optional(),
|
|
18345
18347
|
color: z126.string().optional(),
|
|
18346
18348
|
isDashed: z126.boolean().optional()
|
|
18347
18349
|
});
|
|
18348
18350
|
expectTypesMatch(true);
|
|
18349
18351
|
|
|
18350
18352
|
// lib/components/pcb-note-dimension.ts
|
|
18351
|
-
import { distance as
|
|
18353
|
+
import { distance as distance46, length as length13 } from "circuit-json";
|
|
18352
18354
|
import { z as z127 } from "zod";
|
|
18353
18355
|
var dimensionTarget2 = z127.union([z127.string(), point]);
|
|
18354
18356
|
var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
@@ -18365,11 +18367,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
18365
18367
|
from: dimensionTarget2,
|
|
18366
18368
|
to: dimensionTarget2,
|
|
18367
18369
|
text: z127.string().optional(),
|
|
18368
|
-
offset:
|
|
18370
|
+
offset: distance46.optional(),
|
|
18369
18371
|
font: z127.enum(["tscircuit2024"]).optional(),
|
|
18370
18372
|
fontSize: length13.optional(),
|
|
18371
18373
|
color: z127.string().optional(),
|
|
18372
|
-
arrowSize:
|
|
18374
|
+
arrowSize: distance46.optional(),
|
|
18373
18375
|
units: z127.enum(["in", "mm"]).optional(),
|
|
18374
18376
|
outerEdgeToEdge: z127.literal(true).optional(),
|
|
18375
18377
|
centerToCenter: z127.literal(true).optional(),
|