@tscircuit/props 0.0.567 → 0.0.569
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 +12 -6
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/common/symbolProp.ts +2 -1
- package/lib/components/autoroutingphase.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
-
import { LayerRef, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase,
|
|
4
|
+
import { LayerRef, AnyCircuitElement, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase, CircuitJsonError, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, VisibleLayer, RouteHintPointInput } from 'circuit-json';
|
|
5
5
|
|
|
6
6
|
declare const direction: z.ZodEnum<["up", "down", "left", "right"]>;
|
|
7
7
|
type Direction = "up" | "down" | "left" | "right";
|
|
@@ -6658,7 +6658,7 @@ declare const schStyle: z.ZodObject<{
|
|
|
6658
6658
|
defaultCapacitorOrientation?: "none" | "vertical" | undefined;
|
|
6659
6659
|
}>;
|
|
6660
6660
|
|
|
6661
|
-
type SymbolProp = string | ReactElement;
|
|
6661
|
+
type SymbolProp = string | ReactElement | AnyCircuitElement[];
|
|
6662
6662
|
declare const symbolProp: z.ZodType<SymbolProp, z.ZodTypeDef, SymbolProp>;
|
|
6663
6663
|
|
|
6664
6664
|
type PcbPositionMode = "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor";
|
|
@@ -122000,6 +122000,7 @@ declare const analogSimulationProps: z.ZodObject<{
|
|
|
122000
122000
|
|
|
122001
122001
|
interface AutoroutingPhaseProps extends RoutingTolerances {
|
|
122002
122002
|
key?: any;
|
|
122003
|
+
name?: string;
|
|
122003
122004
|
autorouter?: AutorouterProp;
|
|
122004
122005
|
phaseIndex?: number;
|
|
122005
122006
|
region?: {
|
|
@@ -122046,10 +122047,12 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
|
|
|
122046
122047
|
minViaHoleDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
122047
122048
|
minViaPadDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
122048
122049
|
key: z.ZodOptional<z.ZodAny>;
|
|
122050
|
+
name: z.ZodOptional<z.ZodString>;
|
|
122049
122051
|
autorouter: z.ZodOptional<z.ZodType<AutorouterProp, z.ZodTypeDef, AutorouterProp>>;
|
|
122050
122052
|
phaseIndex: z.ZodOptional<z.ZodNumber>;
|
|
122051
122053
|
}, "strip", z.ZodTypeAny, {
|
|
122052
122054
|
key?: any;
|
|
122055
|
+
name?: string | undefined;
|
|
122053
122056
|
connections?: string[] | undefined;
|
|
122054
122057
|
minTraceWidth?: number | undefined;
|
|
122055
122058
|
minViaHoleEdgeToViaHoleEdgeClearance?: number | undefined;
|
|
@@ -122073,6 +122076,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
|
|
|
122073
122076
|
reroute?: boolean | undefined;
|
|
122074
122077
|
}, {
|
|
122075
122078
|
key?: any;
|
|
122079
|
+
name?: string | undefined;
|
|
122076
122080
|
connections?: string[] | undefined;
|
|
122077
122081
|
minTraceWidth?: string | number | undefined;
|
|
122078
122082
|
minViaHoleEdgeToViaHoleEdgeClearance?: string | number | undefined;
|
|
@@ -122096,6 +122100,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
|
|
|
122096
122100
|
reroute?: boolean | undefined;
|
|
122097
122101
|
}>, {
|
|
122098
122102
|
key?: any;
|
|
122103
|
+
name?: string | undefined;
|
|
122099
122104
|
connections?: string[] | undefined;
|
|
122100
122105
|
minTraceWidth?: number | undefined;
|
|
122101
122106
|
minViaHoleEdgeToViaHoleEdgeClearance?: number | undefined;
|
|
@@ -122119,6 +122124,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
|
|
|
122119
122124
|
reroute?: boolean | undefined;
|
|
122120
122125
|
}, {
|
|
122121
122126
|
key?: any;
|
|
122127
|
+
name?: string | undefined;
|
|
122122
122128
|
connections?: string[] | undefined;
|
|
122123
122129
|
minTraceWidth?: string | number | undefined;
|
|
122124
122130
|
minViaHoleEdgeToViaHoleEdgeClearance?: string | number | undefined;
|
|
@@ -173493,7 +173499,7 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
173493
173499
|
frequency?: number | undefined;
|
|
173494
173500
|
voltage?: number | undefined;
|
|
173495
173501
|
peakToPeakVoltage?: number | undefined;
|
|
173496
|
-
waveShape?: "square" | "
|
|
173502
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
173497
173503
|
phase?: number | undefined;
|
|
173498
173504
|
dutyCycle?: number | undefined;
|
|
173499
173505
|
pulseDelay?: number | undefined;
|
|
@@ -174085,7 +174091,7 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
174085
174091
|
frequency?: string | number | undefined;
|
|
174086
174092
|
voltage?: string | number | undefined;
|
|
174087
174093
|
peakToPeakVoltage?: string | number | undefined;
|
|
174088
|
-
waveShape?: "square" | "
|
|
174094
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
174089
174095
|
phase?: string | number | undefined;
|
|
174090
174096
|
dutyCycle?: string | number | undefined;
|
|
174091
174097
|
pulseDelay?: string | number | undefined;
|
|
@@ -178054,7 +178060,7 @@ declare const currentSourceProps: z.ZodObject<{
|
|
|
178054
178060
|
schSheetName?: string | undefined;
|
|
178055
178061
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
178056
178062
|
frequency?: number | undefined;
|
|
178057
|
-
waveShape?: "square" | "
|
|
178063
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
178058
178064
|
phase?: number | undefined;
|
|
178059
178065
|
dutyCycle?: number | undefined;
|
|
178060
178066
|
current?: number | undefined;
|
|
@@ -178641,7 +178647,7 @@ declare const currentSourceProps: z.ZodObject<{
|
|
|
178641
178647
|
schSheetName?: string | undefined;
|
|
178642
178648
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
178643
178649
|
frequency?: string | number | undefined;
|
|
178644
|
-
waveShape?: "square" | "
|
|
178650
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
178645
178651
|
phase?: string | number | undefined;
|
|
178646
178652
|
dutyCycle?: string | number | undefined;
|
|
178647
178653
|
current?: string | number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -17426,6 +17426,7 @@ expectTypesMatch(
|
|
|
17426
17426
|
import { z as z75 } from "zod";
|
|
17427
17427
|
var autoroutingPhaseProps = z75.object({
|
|
17428
17428
|
key: z75.any().optional(),
|
|
17429
|
+
name: z75.string().optional(),
|
|
17429
17430
|
autorouter: autorouterProp.optional(),
|
|
17430
17431
|
phaseIndex: z75.number().optional(),
|
|
17431
17432
|
...routingTolerances.shape,
|