circuit-json 0.0.289 → 0.0.290

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 CHANGED
@@ -1338,6 +1338,7 @@ interface PcbNoteDimension {
1338
1338
  pcb_component_id?: string
1339
1339
  pcb_group_id?: string
1340
1340
  subcircuit_id?: string
1341
+ name?: string
1341
1342
  from: Point
1342
1343
  to: Point
1343
1344
  text?: string
@@ -1362,6 +1363,8 @@ interface PcbNoteLine {
1362
1363
  pcb_component_id?: string
1363
1364
  pcb_group_id?: string
1364
1365
  subcircuit_id?: string
1366
+ name?: string
1367
+ text?: string
1365
1368
  x1: Distance
1366
1369
  y1: Distance
1367
1370
  x2: Distance
@@ -1386,6 +1389,8 @@ interface PcbNotePath {
1386
1389
  pcb_component_id?: string
1387
1390
  pcb_group_id?: string
1388
1391
  subcircuit_id?: string
1392
+ name?: string
1393
+ text?: string
1389
1394
  route: Point[]
1390
1395
  stroke_width: Length
1391
1396
  color?: string
@@ -1406,6 +1411,8 @@ interface PcbNoteRect {
1406
1411
  pcb_component_id?: string
1407
1412
  pcb_group_id?: string
1408
1413
  subcircuit_id?: string
1414
+ name?: string
1415
+ text?: string
1409
1416
  center: Point
1410
1417
  width: Length
1411
1418
  height: Length
@@ -1431,9 +1438,10 @@ interface PcbNoteText {
1431
1438
  pcb_component_id?: string
1432
1439
  pcb_group_id?: string
1433
1440
  subcircuit_id?: string
1441
+ name?: string
1434
1442
  font: "tscircuit2024"
1435
1443
  font_size: Length
1436
- text: string
1444
+ text?: string
1437
1445
  anchor_position: Point
1438
1446
  anchor_alignment:
1439
1447
  | "center"
package/dist/index.d.mts CHANGED
@@ -4092,9 +4092,10 @@ declare const pcb_note_text: z.ZodObject<{
4092
4092
  pcb_component_id: z.ZodOptional<z.ZodString>;
4093
4093
  pcb_group_id: z.ZodOptional<z.ZodString>;
4094
4094
  subcircuit_id: z.ZodOptional<z.ZodString>;
4095
+ name: z.ZodOptional<z.ZodString>;
4095
4096
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
4096
4097
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4097
- text: z.ZodString;
4098
+ text: z.ZodOptional<z.ZodString>;
4098
4099
  anchor_position: z.ZodDefault<z.ZodObject<{
4099
4100
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4100
4101
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -4109,7 +4110,6 @@ declare const pcb_note_text: z.ZodObject<{
4109
4110
  color: z.ZodOptional<z.ZodString>;
4110
4111
  }, "strip", z.ZodTypeAny, {
4111
4112
  type: "pcb_note_text";
4112
- text: string;
4113
4113
  font: "tscircuit2024";
4114
4114
  font_size: number;
4115
4115
  anchor_position: {
@@ -4118,16 +4118,19 @@ declare const pcb_note_text: z.ZodObject<{
4118
4118
  };
4119
4119
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4120
4120
  pcb_note_text_id: string;
4121
+ name?: string | undefined;
4121
4122
  pcb_component_id?: string | undefined;
4122
4123
  subcircuit_id?: string | undefined;
4123
4124
  pcb_group_id?: string | undefined;
4125
+ text?: string | undefined;
4124
4126
  color?: string | undefined;
4125
4127
  }, {
4126
4128
  type: "pcb_note_text";
4127
- text: string;
4129
+ name?: string | undefined;
4128
4130
  pcb_component_id?: string | undefined;
4129
4131
  subcircuit_id?: string | undefined;
4130
4132
  pcb_group_id?: string | undefined;
4133
+ text?: string | undefined;
4131
4134
  font?: "tscircuit2024" | undefined;
4132
4135
  font_size?: string | number | undefined;
4133
4136
  anchor_position?: {
@@ -4148,9 +4151,10 @@ interface PcbNoteText {
4148
4151
  pcb_component_id?: string;
4149
4152
  pcb_group_id?: string;
4150
4153
  subcircuit_id?: string;
4154
+ name?: string;
4151
4155
  font: "tscircuit2024";
4152
4156
  font_size: Length;
4153
- text: string;
4157
+ text?: string;
4154
4158
  anchor_position: Point;
4155
4159
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4156
4160
  color?: string;
@@ -4162,6 +4166,8 @@ declare const pcb_note_rect: z.ZodObject<{
4162
4166
  pcb_component_id: z.ZodOptional<z.ZodString>;
4163
4167
  pcb_group_id: z.ZodOptional<z.ZodString>;
4164
4168
  subcircuit_id: z.ZodOptional<z.ZodString>;
4169
+ name: z.ZodOptional<z.ZodString>;
4170
+ text: z.ZodOptional<z.ZodString>;
4165
4171
  center: z.ZodObject<{
4166
4172
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4167
4173
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -4189,9 +4195,11 @@ declare const pcb_note_rect: z.ZodObject<{
4189
4195
  };
4190
4196
  stroke_width: number;
4191
4197
  pcb_note_rect_id: string;
4198
+ name?: string | undefined;
4192
4199
  pcb_component_id?: string | undefined;
4193
4200
  subcircuit_id?: string | undefined;
4194
4201
  pcb_group_id?: string | undefined;
4202
+ text?: string | undefined;
4195
4203
  is_filled?: boolean | undefined;
4196
4204
  has_stroke?: boolean | undefined;
4197
4205
  is_stroke_dashed?: boolean | undefined;
@@ -4204,9 +4212,11 @@ declare const pcb_note_rect: z.ZodObject<{
4204
4212
  x: string | number;
4205
4213
  y: string | number;
4206
4214
  };
4215
+ name?: string | undefined;
4207
4216
  pcb_component_id?: string | undefined;
4208
4217
  subcircuit_id?: string | undefined;
4209
4218
  pcb_group_id?: string | undefined;
4219
+ text?: string | undefined;
4210
4220
  stroke_width?: string | number | undefined;
4211
4221
  is_filled?: boolean | undefined;
4212
4222
  has_stroke?: boolean | undefined;
@@ -4224,6 +4234,8 @@ interface PcbNoteRect {
4224
4234
  pcb_component_id?: string;
4225
4235
  pcb_group_id?: string;
4226
4236
  subcircuit_id?: string;
4237
+ name?: string;
4238
+ text?: string;
4227
4239
  center: Point;
4228
4240
  width: Length;
4229
4241
  height: Length;
@@ -4240,6 +4252,8 @@ declare const pcb_note_path: z.ZodObject<{
4240
4252
  pcb_component_id: z.ZodOptional<z.ZodString>;
4241
4253
  pcb_group_id: z.ZodOptional<z.ZodString>;
4242
4254
  subcircuit_id: z.ZodOptional<z.ZodString>;
4255
+ name: z.ZodOptional<z.ZodString>;
4256
+ text: z.ZodOptional<z.ZodString>;
4243
4257
  route: z.ZodArray<z.ZodObject<{
4244
4258
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4245
4259
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -4260,9 +4274,11 @@ declare const pcb_note_path: z.ZodObject<{
4260
4274
  }[];
4261
4275
  stroke_width: number;
4262
4276
  pcb_note_path_id: string;
4277
+ name?: string | undefined;
4263
4278
  pcb_component_id?: string | undefined;
4264
4279
  subcircuit_id?: string | undefined;
4265
4280
  pcb_group_id?: string | undefined;
4281
+ text?: string | undefined;
4266
4282
  color?: string | undefined;
4267
4283
  }, {
4268
4284
  type: "pcb_note_path";
@@ -4270,9 +4286,11 @@ declare const pcb_note_path: z.ZodObject<{
4270
4286
  x: string | number;
4271
4287
  y: string | number;
4272
4288
  }[];
4289
+ name?: string | undefined;
4273
4290
  pcb_component_id?: string | undefined;
4274
4291
  subcircuit_id?: string | undefined;
4275
4292
  pcb_group_id?: string | undefined;
4293
+ text?: string | undefined;
4276
4294
  stroke_width?: string | number | undefined;
4277
4295
  color?: string | undefined;
4278
4296
  pcb_note_path_id?: string | undefined;
@@ -4287,6 +4305,8 @@ interface PcbNotePath {
4287
4305
  pcb_component_id?: string;
4288
4306
  pcb_group_id?: string;
4289
4307
  subcircuit_id?: string;
4308
+ name?: string;
4309
+ text?: string;
4290
4310
  route: Point[];
4291
4311
  stroke_width: Length;
4292
4312
  color?: string;
@@ -4298,6 +4318,8 @@ declare const pcb_note_line: z.ZodObject<{
4298
4318
  pcb_component_id: z.ZodOptional<z.ZodString>;
4299
4319
  pcb_group_id: z.ZodOptional<z.ZodString>;
4300
4320
  subcircuit_id: z.ZodOptional<z.ZodString>;
4321
+ name: z.ZodOptional<z.ZodString>;
4322
+ text: z.ZodOptional<z.ZodString>;
4301
4323
  x1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4302
4324
  y1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4303
4325
  x2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -4313,9 +4335,11 @@ declare const pcb_note_line: z.ZodObject<{
4313
4335
  x2: number;
4314
4336
  y2: number;
4315
4337
  pcb_note_line_id: string;
4338
+ name?: string | undefined;
4316
4339
  pcb_component_id?: string | undefined;
4317
4340
  subcircuit_id?: string | undefined;
4318
4341
  pcb_group_id?: string | undefined;
4342
+ text?: string | undefined;
4319
4343
  color?: string | undefined;
4320
4344
  is_dashed?: boolean | undefined;
4321
4345
  }, {
@@ -4324,9 +4348,11 @@ declare const pcb_note_line: z.ZodObject<{
4324
4348
  y1: string | number;
4325
4349
  x2: string | number;
4326
4350
  y2: string | number;
4351
+ name?: string | undefined;
4327
4352
  pcb_component_id?: string | undefined;
4328
4353
  subcircuit_id?: string | undefined;
4329
4354
  pcb_group_id?: string | undefined;
4355
+ text?: string | undefined;
4330
4356
  stroke_width?: string | number | undefined;
4331
4357
  color?: string | undefined;
4332
4358
  pcb_note_line_id?: string | undefined;
@@ -4342,6 +4368,8 @@ interface PcbNoteLine {
4342
4368
  pcb_component_id?: string;
4343
4369
  pcb_group_id?: string;
4344
4370
  subcircuit_id?: string;
4371
+ name?: string;
4372
+ text?: string;
4345
4373
  x1: Distance;
4346
4374
  y1: Distance;
4347
4375
  x2: Distance;
@@ -4357,6 +4385,7 @@ declare const pcb_note_dimension: z.ZodObject<{
4357
4385
  pcb_component_id: z.ZodOptional<z.ZodString>;
4358
4386
  pcb_group_id: z.ZodOptional<z.ZodString>;
4359
4387
  subcircuit_id: z.ZodOptional<z.ZodString>;
4388
+ name: z.ZodOptional<z.ZodString>;
4360
4389
  from: z.ZodObject<{
4361
4390
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4362
4391
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -4396,6 +4425,7 @@ declare const pcb_note_dimension: z.ZodObject<{
4396
4425
  };
4397
4426
  arrow_size: number;
4398
4427
  pcb_note_dimension_id: string;
4428
+ name?: string | undefined;
4399
4429
  pcb_component_id?: string | undefined;
4400
4430
  subcircuit_id?: string | undefined;
4401
4431
  pcb_group_id?: string | undefined;
@@ -4411,6 +4441,7 @@ declare const pcb_note_dimension: z.ZodObject<{
4411
4441
  x: string | number;
4412
4442
  y: string | number;
4413
4443
  };
4444
+ name?: string | undefined;
4414
4445
  pcb_component_id?: string | undefined;
4415
4446
  subcircuit_id?: string | undefined;
4416
4447
  pcb_group_id?: string | undefined;
@@ -4431,6 +4462,7 @@ interface PcbNoteDimension {
4431
4462
  pcb_component_id?: string;
4432
4463
  pcb_group_id?: string;
4433
4464
  subcircuit_id?: string;
4465
+ name?: string;
4434
4466
  from: Point;
4435
4467
  to: Point;
4436
4468
  text?: string;
@@ -16165,9 +16197,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16165
16197
  pcb_component_id: z.ZodOptional<z.ZodString>;
16166
16198
  pcb_group_id: z.ZodOptional<z.ZodString>;
16167
16199
  subcircuit_id: z.ZodOptional<z.ZodString>;
16200
+ name: z.ZodOptional<z.ZodString>;
16168
16201
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
16169
16202
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16170
- text: z.ZodString;
16203
+ text: z.ZodOptional<z.ZodString>;
16171
16204
  anchor_position: z.ZodDefault<z.ZodObject<{
16172
16205
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
16173
16206
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -16182,7 +16215,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16182
16215
  color: z.ZodOptional<z.ZodString>;
16183
16216
  }, "strip", z.ZodTypeAny, {
16184
16217
  type: "pcb_note_text";
16185
- text: string;
16186
16218
  font: "tscircuit2024";
16187
16219
  font_size: number;
16188
16220
  anchor_position: {
@@ -16191,16 +16223,19 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16191
16223
  };
16192
16224
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
16193
16225
  pcb_note_text_id: string;
16226
+ name?: string | undefined;
16194
16227
  pcb_component_id?: string | undefined;
16195
16228
  subcircuit_id?: string | undefined;
16196
16229
  pcb_group_id?: string | undefined;
16230
+ text?: string | undefined;
16197
16231
  color?: string | undefined;
16198
16232
  }, {
16199
16233
  type: "pcb_note_text";
16200
- text: string;
16234
+ name?: string | undefined;
16201
16235
  pcb_component_id?: string | undefined;
16202
16236
  subcircuit_id?: string | undefined;
16203
16237
  pcb_group_id?: string | undefined;
16238
+ text?: string | undefined;
16204
16239
  font?: "tscircuit2024" | undefined;
16205
16240
  font_size?: string | number | undefined;
16206
16241
  anchor_position?: {
@@ -16216,6 +16251,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16216
16251
  pcb_component_id: z.ZodOptional<z.ZodString>;
16217
16252
  pcb_group_id: z.ZodOptional<z.ZodString>;
16218
16253
  subcircuit_id: z.ZodOptional<z.ZodString>;
16254
+ name: z.ZodOptional<z.ZodString>;
16255
+ text: z.ZodOptional<z.ZodString>;
16219
16256
  center: z.ZodObject<{
16220
16257
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
16221
16258
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -16243,9 +16280,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16243
16280
  };
16244
16281
  stroke_width: number;
16245
16282
  pcb_note_rect_id: string;
16283
+ name?: string | undefined;
16246
16284
  pcb_component_id?: string | undefined;
16247
16285
  subcircuit_id?: string | undefined;
16248
16286
  pcb_group_id?: string | undefined;
16287
+ text?: string | undefined;
16249
16288
  is_filled?: boolean | undefined;
16250
16289
  has_stroke?: boolean | undefined;
16251
16290
  is_stroke_dashed?: boolean | undefined;
@@ -16258,9 +16297,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16258
16297
  x: string | number;
16259
16298
  y: string | number;
16260
16299
  };
16300
+ name?: string | undefined;
16261
16301
  pcb_component_id?: string | undefined;
16262
16302
  subcircuit_id?: string | undefined;
16263
16303
  pcb_group_id?: string | undefined;
16304
+ text?: string | undefined;
16264
16305
  stroke_width?: string | number | undefined;
16265
16306
  is_filled?: boolean | undefined;
16266
16307
  has_stroke?: boolean | undefined;
@@ -16273,6 +16314,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16273
16314
  pcb_component_id: z.ZodOptional<z.ZodString>;
16274
16315
  pcb_group_id: z.ZodOptional<z.ZodString>;
16275
16316
  subcircuit_id: z.ZodOptional<z.ZodString>;
16317
+ name: z.ZodOptional<z.ZodString>;
16318
+ text: z.ZodOptional<z.ZodString>;
16276
16319
  route: z.ZodArray<z.ZodObject<{
16277
16320
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
16278
16321
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -16293,9 +16336,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16293
16336
  }[];
16294
16337
  stroke_width: number;
16295
16338
  pcb_note_path_id: string;
16339
+ name?: string | undefined;
16296
16340
  pcb_component_id?: string | undefined;
16297
16341
  subcircuit_id?: string | undefined;
16298
16342
  pcb_group_id?: string | undefined;
16343
+ text?: string | undefined;
16299
16344
  color?: string | undefined;
16300
16345
  }, {
16301
16346
  type: "pcb_note_path";
@@ -16303,9 +16348,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16303
16348
  x: string | number;
16304
16349
  y: string | number;
16305
16350
  }[];
16351
+ name?: string | undefined;
16306
16352
  pcb_component_id?: string | undefined;
16307
16353
  subcircuit_id?: string | undefined;
16308
16354
  pcb_group_id?: string | undefined;
16355
+ text?: string | undefined;
16309
16356
  stroke_width?: string | number | undefined;
16310
16357
  color?: string | undefined;
16311
16358
  pcb_note_path_id?: string | undefined;
@@ -16315,6 +16362,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16315
16362
  pcb_component_id: z.ZodOptional<z.ZodString>;
16316
16363
  pcb_group_id: z.ZodOptional<z.ZodString>;
16317
16364
  subcircuit_id: z.ZodOptional<z.ZodString>;
16365
+ name: z.ZodOptional<z.ZodString>;
16366
+ text: z.ZodOptional<z.ZodString>;
16318
16367
  x1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
16319
16368
  y1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
16320
16369
  x2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -16330,9 +16379,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16330
16379
  x2: number;
16331
16380
  y2: number;
16332
16381
  pcb_note_line_id: string;
16382
+ name?: string | undefined;
16333
16383
  pcb_component_id?: string | undefined;
16334
16384
  subcircuit_id?: string | undefined;
16335
16385
  pcb_group_id?: string | undefined;
16386
+ text?: string | undefined;
16336
16387
  color?: string | undefined;
16337
16388
  is_dashed?: boolean | undefined;
16338
16389
  }, {
@@ -16341,9 +16392,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16341
16392
  y1: string | number;
16342
16393
  x2: string | number;
16343
16394
  y2: string | number;
16395
+ name?: string | undefined;
16344
16396
  pcb_component_id?: string | undefined;
16345
16397
  subcircuit_id?: string | undefined;
16346
16398
  pcb_group_id?: string | undefined;
16399
+ text?: string | undefined;
16347
16400
  stroke_width?: string | number | undefined;
16348
16401
  color?: string | undefined;
16349
16402
  pcb_note_line_id?: string | undefined;
@@ -16354,6 +16407,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16354
16407
  pcb_component_id: z.ZodOptional<z.ZodString>;
16355
16408
  pcb_group_id: z.ZodOptional<z.ZodString>;
16356
16409
  subcircuit_id: z.ZodOptional<z.ZodString>;
16410
+ name: z.ZodOptional<z.ZodString>;
16357
16411
  from: z.ZodObject<{
16358
16412
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
16359
16413
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -16393,6 +16447,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16393
16447
  };
16394
16448
  arrow_size: number;
16395
16449
  pcb_note_dimension_id: string;
16450
+ name?: string | undefined;
16396
16451
  pcb_component_id?: string | undefined;
16397
16452
  subcircuit_id?: string | undefined;
16398
16453
  pcb_group_id?: string | undefined;
@@ -16408,6 +16463,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16408
16463
  x: string | number;
16409
16464
  y: string | number;
16410
16465
  };
16466
+ name?: string | undefined;
16411
16467
  pcb_component_id?: string | undefined;
16412
16468
  subcircuit_id?: string | undefined;
16413
16469
  pcb_group_id?: string | undefined;
@@ -23427,9 +23483,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23427
23483
  pcb_component_id: z.ZodOptional<z.ZodString>;
23428
23484
  pcb_group_id: z.ZodOptional<z.ZodString>;
23429
23485
  subcircuit_id: z.ZodOptional<z.ZodString>;
23486
+ name: z.ZodOptional<z.ZodString>;
23430
23487
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
23431
23488
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23432
- text: z.ZodString;
23489
+ text: z.ZodOptional<z.ZodString>;
23433
23490
  anchor_position: z.ZodDefault<z.ZodObject<{
23434
23491
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23435
23492
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -23444,7 +23501,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23444
23501
  color: z.ZodOptional<z.ZodString>;
23445
23502
  }, "strip", z.ZodTypeAny, {
23446
23503
  type: "pcb_note_text";
23447
- text: string;
23448
23504
  font: "tscircuit2024";
23449
23505
  font_size: number;
23450
23506
  anchor_position: {
@@ -23453,16 +23509,19 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23453
23509
  };
23454
23510
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
23455
23511
  pcb_note_text_id: string;
23512
+ name?: string | undefined;
23456
23513
  pcb_component_id?: string | undefined;
23457
23514
  subcircuit_id?: string | undefined;
23458
23515
  pcb_group_id?: string | undefined;
23516
+ text?: string | undefined;
23459
23517
  color?: string | undefined;
23460
23518
  }, {
23461
23519
  type: "pcb_note_text";
23462
- text: string;
23520
+ name?: string | undefined;
23463
23521
  pcb_component_id?: string | undefined;
23464
23522
  subcircuit_id?: string | undefined;
23465
23523
  pcb_group_id?: string | undefined;
23524
+ text?: string | undefined;
23466
23525
  font?: "tscircuit2024" | undefined;
23467
23526
  font_size?: string | number | undefined;
23468
23527
  anchor_position?: {
@@ -23478,6 +23537,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23478
23537
  pcb_component_id: z.ZodOptional<z.ZodString>;
23479
23538
  pcb_group_id: z.ZodOptional<z.ZodString>;
23480
23539
  subcircuit_id: z.ZodOptional<z.ZodString>;
23540
+ name: z.ZodOptional<z.ZodString>;
23541
+ text: z.ZodOptional<z.ZodString>;
23481
23542
  center: z.ZodObject<{
23482
23543
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23483
23544
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -23505,9 +23566,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23505
23566
  };
23506
23567
  stroke_width: number;
23507
23568
  pcb_note_rect_id: string;
23569
+ name?: string | undefined;
23508
23570
  pcb_component_id?: string | undefined;
23509
23571
  subcircuit_id?: string | undefined;
23510
23572
  pcb_group_id?: string | undefined;
23573
+ text?: string | undefined;
23511
23574
  is_filled?: boolean | undefined;
23512
23575
  has_stroke?: boolean | undefined;
23513
23576
  is_stroke_dashed?: boolean | undefined;
@@ -23520,9 +23583,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23520
23583
  x: string | number;
23521
23584
  y: string | number;
23522
23585
  };
23586
+ name?: string | undefined;
23523
23587
  pcb_component_id?: string | undefined;
23524
23588
  subcircuit_id?: string | undefined;
23525
23589
  pcb_group_id?: string | undefined;
23590
+ text?: string | undefined;
23526
23591
  stroke_width?: string | number | undefined;
23527
23592
  is_filled?: boolean | undefined;
23528
23593
  has_stroke?: boolean | undefined;
@@ -23535,6 +23600,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23535
23600
  pcb_component_id: z.ZodOptional<z.ZodString>;
23536
23601
  pcb_group_id: z.ZodOptional<z.ZodString>;
23537
23602
  subcircuit_id: z.ZodOptional<z.ZodString>;
23603
+ name: z.ZodOptional<z.ZodString>;
23604
+ text: z.ZodOptional<z.ZodString>;
23538
23605
  route: z.ZodArray<z.ZodObject<{
23539
23606
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23540
23607
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -23555,9 +23622,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23555
23622
  }[];
23556
23623
  stroke_width: number;
23557
23624
  pcb_note_path_id: string;
23625
+ name?: string | undefined;
23558
23626
  pcb_component_id?: string | undefined;
23559
23627
  subcircuit_id?: string | undefined;
23560
23628
  pcb_group_id?: string | undefined;
23629
+ text?: string | undefined;
23561
23630
  color?: string | undefined;
23562
23631
  }, {
23563
23632
  type: "pcb_note_path";
@@ -23565,9 +23634,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23565
23634
  x: string | number;
23566
23635
  y: string | number;
23567
23636
  }[];
23637
+ name?: string | undefined;
23568
23638
  pcb_component_id?: string | undefined;
23569
23639
  subcircuit_id?: string | undefined;
23570
23640
  pcb_group_id?: string | undefined;
23641
+ text?: string | undefined;
23571
23642
  stroke_width?: string | number | undefined;
23572
23643
  color?: string | undefined;
23573
23644
  pcb_note_path_id?: string | undefined;
@@ -23577,6 +23648,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23577
23648
  pcb_component_id: z.ZodOptional<z.ZodString>;
23578
23649
  pcb_group_id: z.ZodOptional<z.ZodString>;
23579
23650
  subcircuit_id: z.ZodOptional<z.ZodString>;
23651
+ name: z.ZodOptional<z.ZodString>;
23652
+ text: z.ZodOptional<z.ZodString>;
23580
23653
  x1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23581
23654
  y1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23582
23655
  x2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -23592,9 +23665,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23592
23665
  x2: number;
23593
23666
  y2: number;
23594
23667
  pcb_note_line_id: string;
23668
+ name?: string | undefined;
23595
23669
  pcb_component_id?: string | undefined;
23596
23670
  subcircuit_id?: string | undefined;
23597
23671
  pcb_group_id?: string | undefined;
23672
+ text?: string | undefined;
23598
23673
  color?: string | undefined;
23599
23674
  is_dashed?: boolean | undefined;
23600
23675
  }, {
@@ -23603,9 +23678,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23603
23678
  y1: string | number;
23604
23679
  x2: string | number;
23605
23680
  y2: string | number;
23681
+ name?: string | undefined;
23606
23682
  pcb_component_id?: string | undefined;
23607
23683
  subcircuit_id?: string | undefined;
23608
23684
  pcb_group_id?: string | undefined;
23685
+ text?: string | undefined;
23609
23686
  stroke_width?: string | number | undefined;
23610
23687
  color?: string | undefined;
23611
23688
  pcb_note_line_id?: string | undefined;
@@ -23616,6 +23693,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23616
23693
  pcb_component_id: z.ZodOptional<z.ZodString>;
23617
23694
  pcb_group_id: z.ZodOptional<z.ZodString>;
23618
23695
  subcircuit_id: z.ZodOptional<z.ZodString>;
23696
+ name: z.ZodOptional<z.ZodString>;
23619
23697
  from: z.ZodObject<{
23620
23698
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23621
23699
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -23655,6 +23733,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23655
23733
  };
23656
23734
  arrow_size: number;
23657
23735
  pcb_note_dimension_id: string;
23736
+ name?: string | undefined;
23658
23737
  pcb_component_id?: string | undefined;
23659
23738
  subcircuit_id?: string | undefined;
23660
23739
  pcb_group_id?: string | undefined;
@@ -23670,6 +23749,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23670
23749
  x: string | number;
23671
23750
  y: string | number;
23672
23751
  };
23752
+ name?: string | undefined;
23673
23753
  pcb_component_id?: string | undefined;
23674
23754
  subcircuit_id?: string | undefined;
23675
23755
  pcb_group_id?: string | undefined;
package/dist/index.mjs CHANGED
@@ -2060,9 +2060,10 @@ var pcb_note_text = z95.object({
2060
2060
  pcb_component_id: z95.string().optional(),
2061
2061
  pcb_group_id: z95.string().optional(),
2062
2062
  subcircuit_id: z95.string().optional(),
2063
+ name: z95.string().optional(),
2063
2064
  font: z95.literal("tscircuit2024").default("tscircuit2024"),
2064
2065
  font_size: distance.default("1mm"),
2065
- text: z95.string(),
2066
+ text: z95.string().optional(),
2066
2067
  anchor_position: point.default({ x: 0, y: 0 }),
2067
2068
  anchor_alignment: z95.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2068
2069
  color: z95.string().optional()
@@ -2077,6 +2078,8 @@ var pcb_note_rect = z96.object({
2077
2078
  pcb_component_id: z96.string().optional(),
2078
2079
  pcb_group_id: z96.string().optional(),
2079
2080
  subcircuit_id: z96.string().optional(),
2081
+ name: z96.string().optional(),
2082
+ text: z96.string().optional(),
2080
2083
  center: point,
2081
2084
  width: length,
2082
2085
  height: length,
@@ -2096,6 +2099,8 @@ var pcb_note_path = z97.object({
2096
2099
  pcb_component_id: z97.string().optional(),
2097
2100
  pcb_group_id: z97.string().optional(),
2098
2101
  subcircuit_id: z97.string().optional(),
2102
+ name: z97.string().optional(),
2103
+ text: z97.string().optional(),
2099
2104
  route: z97.array(point),
2100
2105
  stroke_width: length.default("0.1mm"),
2101
2106
  color: z97.string().optional()
@@ -2110,6 +2115,8 @@ var pcb_note_line = z98.object({
2110
2115
  pcb_component_id: z98.string().optional(),
2111
2116
  pcb_group_id: z98.string().optional(),
2112
2117
  subcircuit_id: z98.string().optional(),
2118
+ name: z98.string().optional(),
2119
+ text: z98.string().optional(),
2113
2120
  x1: distance,
2114
2121
  y1: distance,
2115
2122
  x2: distance,
@@ -2128,6 +2135,7 @@ var pcb_note_dimension = z99.object({
2128
2135
  pcb_component_id: z99.string().optional(),
2129
2136
  pcb_group_id: z99.string().optional(),
2130
2137
  subcircuit_id: z99.string().optional(),
2138
+ name: z99.string().optional(),
2131
2139
  from: point,
2132
2140
  to: point,
2133
2141
  text: z99.string().optional(),