@tscircuit/props 0.0.542 → 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 +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/lib/components/schematic-rect.ts +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
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
|
|
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
|
|
|
@@ -18090,10 +18089,10 @@ var schematicTextProps = z110.object({
|
|
|
18090
18089
|
expectTypesMatch(true);
|
|
18091
18090
|
|
|
18092
18091
|
// lib/components/schematic-path.ts
|
|
18093
|
-
import { distance as distance35, point as
|
|
18092
|
+
import { distance as distance35, point as point7 } from "circuit-json";
|
|
18094
18093
|
import { z as z111 } from "zod";
|
|
18095
18094
|
var schematicPathProps = z111.object({
|
|
18096
|
-
points: z111.array(
|
|
18095
|
+
points: z111.array(point7).optional(),
|
|
18097
18096
|
svgPath: z111.string().optional(),
|
|
18098
18097
|
strokeWidth: distance35.optional(),
|
|
18099
18098
|
strokeColor: z111.string().optional(),
|