@tscircuit/props 0.0.541 → 0.0.543

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
@@ -1527,6 +1527,8 @@ export interface SchematicLineProps {
1527
1527
  strokeWidth?: Distance;
1528
1528
  color?: string;
1529
1529
  isDashed?: boolean;
1530
+ dashLength?: Distance;
1531
+ dashGap?: Distance;
1530
1532
  }
1531
1533
  ```
1532
1534
 
@@ -1540,6 +1542,8 @@ export interface SchematicPathProps {
1540
1542
  svgPath?: string;
1541
1543
  strokeWidth?: Distance;
1542
1544
  strokeColor?: string;
1545
+ dashLength?: Distance;
1546
+ dashGap?: Distance;
1543
1547
  isFilled?: boolean;
1544
1548
  fillColor?: string;
1545
1549
  }
@@ -1561,7 +1565,6 @@ export interface SchematicRectProps {
1561
1565
  isFilled?: boolean;
1562
1566
  fillColor?: string;
1563
1567
  isDashed?: boolean;
1564
- cornerRadius?: Distance;
1565
1568
  }
1566
1569
  ```
1567
1570
 
package/dist/index.d.ts CHANGED
@@ -182988,7 +182988,6 @@ declare const schematicRectProps: z.ZodObject<{
182988
182988
  isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
182989
182989
  fillColor: z.ZodOptional<z.ZodString>;
182990
182990
  isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
182991
- cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
182992
182991
  }, "strip", z.ZodTypeAny, {
182993
182992
  rotation: number;
182994
182993
  width: number;
@@ -182998,7 +182997,6 @@ declare const schematicRectProps: z.ZodObject<{
182998
182997
  schX?: number | undefined;
182999
182998
  schY?: number | undefined;
183000
182999
  strokeWidth?: number | undefined;
183001
- cornerRadius?: number | undefined;
183002
183000
  color?: string | undefined;
183003
183001
  fillColor?: string | undefined;
183004
183002
  }, {
@@ -183008,7 +183006,6 @@ declare const schematicRectProps: z.ZodObject<{
183008
183006
  schX?: string | number | undefined;
183009
183007
  schY?: string | number | undefined;
183010
183008
  strokeWidth?: string | number | undefined;
183011
- cornerRadius?: string | number | undefined;
183012
183009
  color?: string | undefined;
183013
183010
  isFilled?: boolean | undefined;
183014
183011
  isDashed?: boolean | undefined;
@@ -183025,7 +183022,6 @@ interface SchematicRectProps {
183025
183022
  isFilled?: boolean;
183026
183023
  fillColor?: string;
183027
183024
  isDashed?: boolean;
183028
- cornerRadius?: Distance;
183029
183025
  }
183030
183026
  type InferredSchematicRectProps = z.input<typeof schematicRectProps>;
183031
183027
 
@@ -183037,6 +183033,8 @@ declare const schematicLineProps: z.ZodObject<{
183037
183033
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183038
183034
  color: z.ZodOptional<z.ZodString>;
183039
183035
  isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
183036
+ dashLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183037
+ dashGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183040
183038
  }, "strip", z.ZodTypeAny, {
183041
183039
  isDashed: boolean;
183042
183040
  x1: number;
@@ -183045,6 +183043,8 @@ declare const schematicLineProps: z.ZodObject<{
183045
183043
  y2: number;
183046
183044
  strokeWidth?: number | undefined;
183047
183045
  color?: string | undefined;
183046
+ dashLength?: number | undefined;
183047
+ dashGap?: number | undefined;
183048
183048
  }, {
183049
183049
  x1: string | number;
183050
183050
  y1: string | number;
@@ -183053,6 +183053,8 @@ declare const schematicLineProps: z.ZodObject<{
183053
183053
  strokeWidth?: string | number | undefined;
183054
183054
  color?: string | undefined;
183055
183055
  isDashed?: boolean | undefined;
183056
+ dashLength?: string | number | undefined;
183057
+ dashGap?: string | number | undefined;
183056
183058
  }>;
183057
183059
  interface SchematicLineProps {
183058
183060
  x1: Distance;
@@ -183062,6 +183064,8 @@ interface SchematicLineProps {
183062
183064
  strokeWidth?: Distance;
183063
183065
  color?: string;
183064
183066
  isDashed?: boolean;
183067
+ dashLength?: Distance;
183068
+ dashGap?: Distance;
183065
183069
  }
183066
183070
  type InferredSchematicLineProps = z.input<typeof schematicLineProps>;
183067
183071
 
@@ -183117,6 +183121,8 @@ declare const schematicPathProps: z.ZodObject<{
183117
183121
  svgPath: z.ZodOptional<z.ZodString>;
183118
183122
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183119
183123
  strokeColor: z.ZodOptional<z.ZodString>;
183124
+ dashLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183125
+ dashGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183120
183126
  isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
183121
183127
  fillColor: z.ZodOptional<z.ZodString>;
183122
183128
  }, "strip", z.ZodTypeAny, {
@@ -183127,6 +183133,8 @@ declare const schematicPathProps: z.ZodObject<{
183127
183133
  y: number;
183128
183134
  }[] | undefined;
183129
183135
  fillColor?: string | undefined;
183136
+ dashLength?: number | undefined;
183137
+ dashGap?: number | undefined;
183130
183138
  svgPath?: string | undefined;
183131
183139
  strokeColor?: string | undefined;
183132
183140
  }, {
@@ -183137,6 +183145,8 @@ declare const schematicPathProps: z.ZodObject<{
183137
183145
  }[] | undefined;
183138
183146
  isFilled?: boolean | undefined;
183139
183147
  fillColor?: string | undefined;
183148
+ dashLength?: string | number | undefined;
183149
+ dashGap?: string | number | undefined;
183140
183150
  svgPath?: string | undefined;
183141
183151
  strokeColor?: string | undefined;
183142
183152
  }>;
@@ -183145,6 +183155,8 @@ interface SchematicPathProps {
183145
183155
  svgPath?: string;
183146
183156
  strokeWidth?: Distance;
183147
183157
  strokeColor?: string;
183158
+ dashLength?: Distance;
183159
+ dashGap?: Distance;
183148
183160
  isFilled?: boolean;
183149
183161
  fillColor?: string;
183150
183162
  }
package/dist/index.js CHANGED
@@ -18042,8 +18042,7 @@ var schematicRectProps = z107.object({
18042
18042
  color: z107.string().optional(),
18043
18043
  isFilled: z107.boolean().optional().default(false),
18044
18044
  fillColor: z107.string().optional(),
18045
- isDashed: z107.boolean().optional().default(false),
18046
- cornerRadius: distance32.optional()
18045
+ isDashed: z107.boolean().optional().default(false)
18047
18046
  });
18048
18047
  expectTypesMatch(true);
18049
18048
 
@@ -18057,7 +18056,9 @@ var schematicLineProps = z108.object({
18057
18056
  y2: distance33,
18058
18057
  strokeWidth: distance33.optional(),
18059
18058
  color: z108.string().optional(),
18060
- isDashed: z108.boolean().optional().default(false)
18059
+ isDashed: z108.boolean().optional().default(false),
18060
+ dashLength: distance33.optional(),
18061
+ dashGap: distance33.optional()
18061
18062
  });
18062
18063
  expectTypesMatch(true);
18063
18064
 
@@ -18088,13 +18089,15 @@ var schematicTextProps = z110.object({
18088
18089
  expectTypesMatch(true);
18089
18090
 
18090
18091
  // lib/components/schematic-path.ts
18091
- import { distance as distance35, point as point8 } from "circuit-json";
18092
+ import { distance as distance35, point as point7 } from "circuit-json";
18092
18093
  import { z as z111 } from "zod";
18093
18094
  var schematicPathProps = z111.object({
18094
- points: z111.array(point8).optional(),
18095
+ points: z111.array(point7).optional(),
18095
18096
  svgPath: z111.string().optional(),
18096
18097
  strokeWidth: distance35.optional(),
18097
18098
  strokeColor: z111.string().optional(),
18099
+ dashLength: distance35.optional(),
18100
+ dashGap: distance35.optional(),
18098
18101
  isFilled: z111.boolean().optional().default(false),
18099
18102
  fillColor: z111.string().optional()
18100
18103
  });