@tscircuit/internal-dynamic-import 0.0.12 → 0.0.14
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/dist/index.d.ts +147 -82
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as circuit_json_to_gltf from 'circuit-json-to-gltf';
|
|
2
|
-
import { AnyCircuitElement, SourceComponentBase, PcbComponent, CircuitJson, SchematicNetLabel, PCBTrace, PCBPort, LayerRef as LayerRef$1, NinePointAnchor, PcbRenderLayer, PcbBoard, PcbCopperPour, PcbCopperText, PcbCourtyardCircle, PcbCutout, PcbFabricationNoteDimension, PcbFabricationNotePath, PcbFabricationNoteRect, PcbFabricationNoteText, PcbHole, PCBKeepout, PcbNoteDimension, PcbNotePath, PcbNoteRect, PcbNoteText, PcbPanel, PcbPlatedHole, PcbSilkscreenCircle, PcbSilkscreenLine, PcbSilkscreenOval, PcbSilkscreenPath, PcbSilkscreenPill, PcbSilkscreenRect, PcbSilkscreenText, PcbSmtPad,
|
|
2
|
+
import { AnyCircuitElement, SourceComponentBase, PcbComponent, CircuitJson, SchematicNetLabel, PCBTrace, PCBPort, LayerRef as LayerRef$1, Ring, NinePointAnchor, PcbRenderLayer, PcbBoard, PcbCopperPour, PcbCopperText, PcbCourtyardCircle, PcbCutout, PcbFabricationNoteDimension, PcbFabricationNotePath, PcbFabricationNoteRect, PcbFabricationNoteText, PcbHole, PCBKeepout, PcbNoteDimension, PcbNotePath, PcbNoteRect, PcbNoteText, PcbPanel, PcbPlatedHole, PcbSilkscreenCircle, PcbSilkscreenGraphic, PcbSilkscreenLine, PcbSilkscreenOval, PcbSilkscreenPath, PcbSilkscreenPill, PcbSilkscreenRect, PcbSilkscreenText, PcbSmtPad, PcbVia, PcbSolderPaste, PcbTrace, PCBVia, SimulationExperiment, SimulationTransientVoltageGraph, SimulationVoltageProbe, PcbPort, SchematicComponent } from 'circuit-json';
|
|
3
3
|
import { BpcGraph } from 'bpc-graph';
|
|
4
4
|
import { z, AnyZodObject } from 'zod';
|
|
5
5
|
import { CircuitJsonUtilObjects, cju } from '@tscircuit/circuit-json-util';
|
|
@@ -2060,7 +2060,7 @@ interface CanvasContext {
|
|
|
2060
2060
|
moveTo(x: number, y: number): void;
|
|
2061
2061
|
save(): void;
|
|
2062
2062
|
restore(): void;
|
|
2063
|
-
clip(): void;
|
|
2063
|
+
clip(fillRule?: "nonzero" | "evenodd"): void;
|
|
2064
2064
|
translate(x: number, y: number): void;
|
|
2065
2065
|
rotate(angle: number): void;
|
|
2066
2066
|
scale(x: number, y: number): void;
|
|
@@ -2086,7 +2086,7 @@ interface CanvasContext {
|
|
|
2086
2086
|
font: string;
|
|
2087
2087
|
textAlign: "start" | "end" | "left" | "right" | "center";
|
|
2088
2088
|
}
|
|
2089
|
-
type CopperLayerName$1 =
|
|
2089
|
+
type CopperLayerName$1 = LayerRef$1;
|
|
2090
2090
|
type CopperColorMap$1 = Record<CopperLayerName$1, string> & {
|
|
2091
2091
|
[layer: string]: string;
|
|
2092
2092
|
};
|
|
@@ -2119,7 +2119,10 @@ interface PcbColorMap$1 {
|
|
|
2119
2119
|
top: string;
|
|
2120
2120
|
bottom: string;
|
|
2121
2121
|
};
|
|
2122
|
-
keepout:
|
|
2122
|
+
keepout: {
|
|
2123
|
+
top: string;
|
|
2124
|
+
bottom: string;
|
|
2125
|
+
};
|
|
2123
2126
|
fabricationNote: string;
|
|
2124
2127
|
}
|
|
2125
2128
|
declare const DEFAULT_PCB_COLOR_MAP: PcbColorMap$1;
|
|
@@ -2140,8 +2143,20 @@ interface DrawContext {
|
|
|
2140
2143
|
|
|
2141
2144
|
interface DrawElementsOptions {
|
|
2142
2145
|
layers?: PcbRenderLayer[];
|
|
2146
|
+
/**
|
|
2147
|
+
* Elements used only to find copper pours when clipping traces. This is
|
|
2148
|
+
* useful when `elements` is a filtered subset, such as a trace-only render
|
|
2149
|
+
* pass in an interactive viewer. Defaults to `elements`.
|
|
2150
|
+
*/
|
|
2151
|
+
clipContextElements?: AnyCircuitElement[];
|
|
2143
2152
|
/** Whether to render the soldermask layer. Defaults to false. */
|
|
2144
2153
|
drawSoldermask?: boolean;
|
|
2154
|
+
/** Whether to render pcb_solder_paste elements. Defaults to false. */
|
|
2155
|
+
drawSolderPaste?: boolean;
|
|
2156
|
+
/** Render top solder-paste elements when drawSolderPaste is enabled. Defaults to true if both layer flags are unset. */
|
|
2157
|
+
drawSolderPasteTop?: boolean;
|
|
2158
|
+
/** Render bottom solder-paste elements when drawSolderPaste is enabled. */
|
|
2159
|
+
drawSolderPasteBottom?: boolean;
|
|
2145
2160
|
/** Render top soldermask layer when drawSoldermask is enabled. Defaults to true if both layer flags are unset. */
|
|
2146
2161
|
drawSoldermaskTop?: boolean;
|
|
2147
2162
|
/** Render bottom soldermask layer when drawSoldermask is enabled. */
|
|
@@ -2152,6 +2167,8 @@ interface DrawElementsOptions {
|
|
|
2152
2167
|
minBoardOutlineStrokePx?: number;
|
|
2153
2168
|
/** Whether to render pcb_note elements. Defaults to true. */
|
|
2154
2169
|
showPcbNotes?: boolean;
|
|
2170
|
+
/** Clear drill holes and cutouts from the canvas instead of painting them with the drill color. Defaults to false. */
|
|
2171
|
+
clearDrillHoles?: boolean;
|
|
2155
2172
|
}
|
|
2156
2173
|
interface CanvasLike {
|
|
2157
2174
|
getContext(contextId: "2d"): CanvasContext | null;
|
|
@@ -2164,7 +2181,39 @@ declare class CircuitToCanvasDrawer {
|
|
|
2164
2181
|
configure(config: DrawerConfig): void;
|
|
2165
2182
|
setCameraBounds(bounds: CameraBounds): void;
|
|
2166
2183
|
drawElements(elements: AnyCircuitElement[], options?: DrawElementsOptions): void;
|
|
2184
|
+
private clearDrillHoles;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
interface DrawArrowParams {
|
|
2188
|
+
ctx: CanvasContext;
|
|
2189
|
+
x: number;
|
|
2190
|
+
y: number;
|
|
2191
|
+
angle: number;
|
|
2192
|
+
arrowSize: number;
|
|
2193
|
+
color: string;
|
|
2194
|
+
strokeWidth: number;
|
|
2195
|
+
}
|
|
2196
|
+
/**
|
|
2197
|
+
* Draw an arrow at a point along a line
|
|
2198
|
+
*/
|
|
2199
|
+
declare function drawArrow(params: DrawArrowParams): void;
|
|
2200
|
+
|
|
2201
|
+
interface BrepShape {
|
|
2202
|
+
outer_ring: Ring;
|
|
2203
|
+
inner_rings?: Ring[];
|
|
2204
|
+
}
|
|
2205
|
+
interface AddBrepRingToPathParams {
|
|
2206
|
+
ctx: CanvasContext;
|
|
2207
|
+
ring: Ring;
|
|
2208
|
+
realToCanvasMat: Matrix;
|
|
2209
|
+
}
|
|
2210
|
+
declare function addBrepRingToPath({ ctx, ring, realToCanvasMat, }: AddBrepRingToPathParams): void;
|
|
2211
|
+
interface AddBrepShapeToPathParams {
|
|
2212
|
+
ctx: CanvasContext;
|
|
2213
|
+
shape: BrepShape;
|
|
2214
|
+
realToCanvasMat: Matrix;
|
|
2167
2215
|
}
|
|
2216
|
+
declare function addBrepShapeToPath({ ctx, shape, realToCanvasMat, }: AddBrepShapeToPathParams): void;
|
|
2168
2217
|
|
|
2169
2218
|
interface DrawCircleParams {
|
|
2170
2219
|
ctx: CanvasContext;
|
|
@@ -2181,23 +2230,49 @@ interface DrawCircleParams {
|
|
|
2181
2230
|
}
|
|
2182
2231
|
declare function drawCircle(params: DrawCircleParams): void;
|
|
2183
2232
|
|
|
2184
|
-
interface
|
|
2233
|
+
interface DrawDimensionLineParams {
|
|
2185
2234
|
ctx: CanvasContext;
|
|
2186
|
-
|
|
2235
|
+
from: {
|
|
2236
|
+
x: number;
|
|
2237
|
+
y: number;
|
|
2238
|
+
};
|
|
2239
|
+
to: {
|
|
2187
2240
|
x: number;
|
|
2188
2241
|
y: number;
|
|
2189
2242
|
};
|
|
2190
|
-
width: number;
|
|
2191
|
-
height: number;
|
|
2192
|
-
fill?: string;
|
|
2193
2243
|
realToCanvasMat: Matrix;
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2244
|
+
color: string;
|
|
2245
|
+
fontSize: number;
|
|
2246
|
+
arrowSize?: number;
|
|
2197
2247
|
strokeWidth?: number;
|
|
2198
|
-
|
|
2248
|
+
text?: string;
|
|
2249
|
+
textRotation?: number;
|
|
2250
|
+
offset?: {
|
|
2251
|
+
distance: number;
|
|
2252
|
+
direction: {
|
|
2253
|
+
x: number;
|
|
2254
|
+
y: number;
|
|
2255
|
+
};
|
|
2256
|
+
};
|
|
2199
2257
|
}
|
|
2200
|
-
declare function
|
|
2258
|
+
declare function drawDimensionLine(params: DrawDimensionLineParams): void;
|
|
2259
|
+
|
|
2260
|
+
interface DrawLineParams {
|
|
2261
|
+
ctx: CanvasContext;
|
|
2262
|
+
start: {
|
|
2263
|
+
x: number;
|
|
2264
|
+
y: number;
|
|
2265
|
+
};
|
|
2266
|
+
end: {
|
|
2267
|
+
x: number;
|
|
2268
|
+
y: number;
|
|
2269
|
+
};
|
|
2270
|
+
strokeWidth: number;
|
|
2271
|
+
stroke: string;
|
|
2272
|
+
realToCanvasMat: Matrix;
|
|
2273
|
+
lineCap?: "butt" | "round" | "square";
|
|
2274
|
+
}
|
|
2275
|
+
declare function drawLine(params: DrawLineParams): void;
|
|
2201
2276
|
|
|
2202
2277
|
interface DrawOvalParams {
|
|
2203
2278
|
ctx: CanvasContext;
|
|
@@ -2215,6 +2290,21 @@ interface DrawOvalParams {
|
|
|
2215
2290
|
}
|
|
2216
2291
|
declare function drawOval(params: DrawOvalParams): void;
|
|
2217
2292
|
|
|
2293
|
+
interface DrawPathParams {
|
|
2294
|
+
ctx: CanvasContext;
|
|
2295
|
+
points: Array<{
|
|
2296
|
+
x: number;
|
|
2297
|
+
y: number;
|
|
2298
|
+
}>;
|
|
2299
|
+
fill?: string;
|
|
2300
|
+
stroke?: string;
|
|
2301
|
+
strokeWidth?: number;
|
|
2302
|
+
minStrokePx?: number;
|
|
2303
|
+
realToCanvasMat: Matrix;
|
|
2304
|
+
closePath?: boolean;
|
|
2305
|
+
}
|
|
2306
|
+
declare function drawPath(params: DrawPathParams): void;
|
|
2307
|
+
|
|
2218
2308
|
interface DrawPillParams {
|
|
2219
2309
|
ctx: CanvasContext;
|
|
2220
2310
|
center: {
|
|
@@ -2242,78 +2332,24 @@ interface DrawPolygonParams {
|
|
|
2242
2332
|
}
|
|
2243
2333
|
declare function drawPolygon(params: DrawPolygonParams): void;
|
|
2244
2334
|
|
|
2245
|
-
interface
|
|
2335
|
+
interface DrawRectParams {
|
|
2246
2336
|
ctx: CanvasContext;
|
|
2247
|
-
|
|
2248
|
-
x: number;
|
|
2249
|
-
y: number;
|
|
2250
|
-
};
|
|
2251
|
-
end: {
|
|
2337
|
+
center: {
|
|
2252
2338
|
x: number;
|
|
2253
2339
|
y: number;
|
|
2254
2340
|
};
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
realToCanvasMat: Matrix;
|
|
2258
|
-
lineCap?: "butt" | "round" | "square";
|
|
2259
|
-
}
|
|
2260
|
-
declare function drawLine(params: DrawLineParams): void;
|
|
2261
|
-
|
|
2262
|
-
interface DrawPathParams {
|
|
2263
|
-
ctx: CanvasContext;
|
|
2264
|
-
points: Array<{
|
|
2265
|
-
x: number;
|
|
2266
|
-
y: number;
|
|
2267
|
-
}>;
|
|
2341
|
+
width: number;
|
|
2342
|
+
height: number;
|
|
2268
2343
|
fill?: string;
|
|
2269
|
-
stroke?: string;
|
|
2270
|
-
strokeWidth?: number;
|
|
2271
|
-
minStrokePx?: number;
|
|
2272
2344
|
realToCanvasMat: Matrix;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
interface DrawArrowParams {
|
|
2278
|
-
ctx: CanvasContext;
|
|
2279
|
-
x: number;
|
|
2280
|
-
y: number;
|
|
2281
|
-
angle: number;
|
|
2282
|
-
arrowSize: number;
|
|
2283
|
-
color: string;
|
|
2284
|
-
strokeWidth: number;
|
|
2285
|
-
}
|
|
2286
|
-
/**
|
|
2287
|
-
* Draw an arrow at a point along a line
|
|
2288
|
-
*/
|
|
2289
|
-
declare function drawArrow(params: DrawArrowParams): void;
|
|
2290
|
-
|
|
2291
|
-
interface DrawDimensionLineParams {
|
|
2292
|
-
ctx: CanvasContext;
|
|
2293
|
-
from: {
|
|
2294
|
-
x: number;
|
|
2295
|
-
y: number;
|
|
2296
|
-
};
|
|
2297
|
-
to: {
|
|
2298
|
-
x: number;
|
|
2299
|
-
y: number;
|
|
2300
|
-
};
|
|
2301
|
-
realToCanvasMat: Matrix;
|
|
2302
|
-
color: string;
|
|
2303
|
-
fontSize: number;
|
|
2304
|
-
arrowSize?: number;
|
|
2345
|
+
borderRadius?: number;
|
|
2346
|
+
ccwRotationDegrees?: number;
|
|
2347
|
+
stroke?: string;
|
|
2305
2348
|
strokeWidth?: number;
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
offset?: {
|
|
2309
|
-
distance: number;
|
|
2310
|
-
direction: {
|
|
2311
|
-
x: number;
|
|
2312
|
-
y: number;
|
|
2313
|
-
};
|
|
2314
|
-
};
|
|
2349
|
+
isStrokeDashed?: boolean;
|
|
2350
|
+
lineJoin?: CanvasLineJoin;
|
|
2315
2351
|
}
|
|
2316
|
-
declare function
|
|
2352
|
+
declare function drawRect(params: DrawRectParams): void;
|
|
2317
2353
|
|
|
2318
2354
|
type AlphabetLayout = {
|
|
2319
2355
|
width: number;
|
|
@@ -2359,7 +2395,7 @@ interface DrawTextParams {
|
|
|
2359
2395
|
declare function drawText(params: DrawTextParams): void;
|
|
2360
2396
|
|
|
2361
2397
|
type AnchorAlignment = NinePointAnchor;
|
|
2362
|
-
declare function getTextStartPosition(alignment: NinePointAnchor, layout: AlphabetLayout): {
|
|
2398
|
+
declare function getTextStartPosition(alignment: NinePointAnchor, layout: AlphabetLayout, fontSize: number): {
|
|
2363
2399
|
x: number;
|
|
2364
2400
|
y: number;
|
|
2365
2401
|
};
|
|
@@ -2371,7 +2407,7 @@ interface DrawPcbPlatedHoleParams {
|
|
|
2371
2407
|
colorMap: PcbColorMap$1;
|
|
2372
2408
|
soldermaskMargin?: number;
|
|
2373
2409
|
drawSoldermask?: boolean;
|
|
2374
|
-
layer?:
|
|
2410
|
+
layer?: LayerRef$1;
|
|
2375
2411
|
}
|
|
2376
2412
|
declare function drawPcbPlatedHole(params: DrawPcbPlatedHoleParams): void;
|
|
2377
2413
|
|
|
@@ -2380,7 +2416,7 @@ interface DrawPcbViaParams {
|
|
|
2380
2416
|
via: PCBVia;
|
|
2381
2417
|
realToCanvasMat: Matrix;
|
|
2382
2418
|
colorMap: PcbColorMap$1;
|
|
2383
|
-
layer?:
|
|
2419
|
+
layer?: LayerRef$1;
|
|
2384
2420
|
}
|
|
2385
2421
|
declare function drawPcbVia(params: DrawPcbViaParams): void;
|
|
2386
2422
|
|
|
@@ -2399,9 +2435,20 @@ interface DrawPcbSmtPadParams {
|
|
|
2399
2435
|
pad: PcbSmtPad;
|
|
2400
2436
|
realToCanvasMat: Matrix;
|
|
2401
2437
|
colorMap: PcbColorMap$1;
|
|
2438
|
+
holes?: PcbHole[];
|
|
2439
|
+
platedHoles?: PcbPlatedHole[];
|
|
2440
|
+
vias?: PcbVia[];
|
|
2441
|
+
cutouts?: PcbCutout[];
|
|
2402
2442
|
}
|
|
2403
2443
|
declare function drawPcbSmtPad(params: DrawPcbSmtPadParams): void;
|
|
2404
2444
|
|
|
2445
|
+
interface DrawPcbSolderPasteParams {
|
|
2446
|
+
ctx: CanvasContext;
|
|
2447
|
+
solderPaste: PcbSolderPaste;
|
|
2448
|
+
realToCanvasMat: Matrix;
|
|
2449
|
+
}
|
|
2450
|
+
declare function drawPcbSolderPaste(params: DrawPcbSolderPasteParams): void;
|
|
2451
|
+
|
|
2405
2452
|
/**
|
|
2406
2453
|
* Draws a soldermask ring for rectangular shapes with negative margin
|
|
2407
2454
|
* (soldermask appears inside the pad boundary)
|
|
@@ -2447,6 +2494,7 @@ interface DrawPcbTraceParams {
|
|
|
2447
2494
|
colorMap: PcbColorMap$1;
|
|
2448
2495
|
vias?: PcbVia[];
|
|
2449
2496
|
platedHoles?: PcbPlatedHole[];
|
|
2497
|
+
layer?: LayerRef$1;
|
|
2450
2498
|
}
|
|
2451
2499
|
declare function drawPcbTrace(params: DrawPcbTraceParams): void;
|
|
2452
2500
|
|
|
@@ -2493,6 +2541,14 @@ interface DrawPcbSilkscreenCircleParams {
|
|
|
2493
2541
|
}
|
|
2494
2542
|
declare function drawPcbSilkscreenCircle(params: DrawPcbSilkscreenCircleParams): void;
|
|
2495
2543
|
|
|
2544
|
+
interface DrawPcbSilkscreenGraphicParams {
|
|
2545
|
+
ctx: CanvasContext;
|
|
2546
|
+
graphic: PcbSilkscreenGraphic;
|
|
2547
|
+
realToCanvasMat: Matrix;
|
|
2548
|
+
colorMap: PcbColorMap$1;
|
|
2549
|
+
}
|
|
2550
|
+
declare function drawPcbSilkscreenGraphic(params: DrawPcbSilkscreenGraphicParams): void;
|
|
2551
|
+
|
|
2496
2552
|
interface DrawPcbSilkscreenLineParams {
|
|
2497
2553
|
ctx: CanvasContext;
|
|
2498
2554
|
line: PcbSilkscreenLine;
|
|
@@ -2629,8 +2685,11 @@ interface DrawPcbCourtyardCircleParams {
|
|
|
2629
2685
|
}
|
|
2630
2686
|
declare function drawPcbCourtyardCircle(params: DrawPcbCourtyardCircleParams): void;
|
|
2631
2687
|
|
|
2688
|
+
type CircuitToCanvasModule_AddBrepRingToPathParams = AddBrepRingToPathParams;
|
|
2689
|
+
type CircuitToCanvasModule_AddBrepShapeToPathParams = AddBrepShapeToPathParams;
|
|
2632
2690
|
type CircuitToCanvasModule_AlphabetLayout = AlphabetLayout;
|
|
2633
2691
|
type CircuitToCanvasModule_AnchorAlignment = AnchorAlignment;
|
|
2692
|
+
type CircuitToCanvasModule_BrepShape = BrepShape;
|
|
2634
2693
|
type CircuitToCanvasModule_CameraBounds = CameraBounds;
|
|
2635
2694
|
type CircuitToCanvasModule_CanvasContext = CanvasContext;
|
|
2636
2695
|
type CircuitToCanvasModule_CircuitToCanvasDrawer = CircuitToCanvasDrawer;
|
|
@@ -2662,6 +2721,7 @@ type CircuitToCanvasModule_DrawPcbNoteTextParams = DrawPcbNoteTextParams;
|
|
|
2662
2721
|
type CircuitToCanvasModule_DrawPcbPanelParams = DrawPcbPanelParams;
|
|
2663
2722
|
type CircuitToCanvasModule_DrawPcbPlatedHoleParams = DrawPcbPlatedHoleParams;
|
|
2664
2723
|
type CircuitToCanvasModule_DrawPcbSilkscreenCircleParams = DrawPcbSilkscreenCircleParams;
|
|
2724
|
+
type CircuitToCanvasModule_DrawPcbSilkscreenGraphicParams = DrawPcbSilkscreenGraphicParams;
|
|
2665
2725
|
type CircuitToCanvasModule_DrawPcbSilkscreenLineParams = DrawPcbSilkscreenLineParams;
|
|
2666
2726
|
type CircuitToCanvasModule_DrawPcbSilkscreenOvalParams = DrawPcbSilkscreenOvalParams;
|
|
2667
2727
|
type CircuitToCanvasModule_DrawPcbSilkscreenPathParams = DrawPcbSilkscreenPathParams;
|
|
@@ -2669,6 +2729,7 @@ type CircuitToCanvasModule_DrawPcbSilkscreenPillParams = DrawPcbSilkscreenPillPa
|
|
|
2669
2729
|
type CircuitToCanvasModule_DrawPcbSilkscreenRectParams = DrawPcbSilkscreenRectParams;
|
|
2670
2730
|
type CircuitToCanvasModule_DrawPcbSilkscreenTextParams = DrawPcbSilkscreenTextParams;
|
|
2671
2731
|
type CircuitToCanvasModule_DrawPcbSmtPadParams = DrawPcbSmtPadParams;
|
|
2732
|
+
type CircuitToCanvasModule_DrawPcbSolderPasteParams = DrawPcbSolderPasteParams;
|
|
2672
2733
|
type CircuitToCanvasModule_DrawPcbTraceParams = DrawPcbTraceParams;
|
|
2673
2734
|
type CircuitToCanvasModule_DrawPcbViaParams = DrawPcbViaParams;
|
|
2674
2735
|
type CircuitToCanvasModule_DrawPillParams = DrawPillParams;
|
|
@@ -2676,6 +2737,8 @@ type CircuitToCanvasModule_DrawPolygonParams = DrawPolygonParams;
|
|
|
2676
2737
|
type CircuitToCanvasModule_DrawRectParams = DrawRectParams;
|
|
2677
2738
|
type CircuitToCanvasModule_DrawTextParams = DrawTextParams;
|
|
2678
2739
|
type CircuitToCanvasModule_DrawerConfig = DrawerConfig;
|
|
2740
|
+
declare const CircuitToCanvasModule_addBrepRingToPath: typeof addBrepRingToPath;
|
|
2741
|
+
declare const CircuitToCanvasModule_addBrepShapeToPath: typeof addBrepShapeToPath;
|
|
2679
2742
|
declare const CircuitToCanvasModule_drawArrow: typeof drawArrow;
|
|
2680
2743
|
declare const CircuitToCanvasModule_drawCircle: typeof drawCircle;
|
|
2681
2744
|
declare const CircuitToCanvasModule_drawDimensionLine: typeof drawDimensionLine;
|
|
@@ -2700,6 +2763,7 @@ declare const CircuitToCanvasModule_drawPcbNoteText: typeof drawPcbNoteText;
|
|
|
2700
2763
|
declare const CircuitToCanvasModule_drawPcbPanelElement: typeof drawPcbPanelElement;
|
|
2701
2764
|
declare const CircuitToCanvasModule_drawPcbPlatedHole: typeof drawPcbPlatedHole;
|
|
2702
2765
|
declare const CircuitToCanvasModule_drawPcbSilkscreenCircle: typeof drawPcbSilkscreenCircle;
|
|
2766
|
+
declare const CircuitToCanvasModule_drawPcbSilkscreenGraphic: typeof drawPcbSilkscreenGraphic;
|
|
2703
2767
|
declare const CircuitToCanvasModule_drawPcbSilkscreenLine: typeof drawPcbSilkscreenLine;
|
|
2704
2768
|
declare const CircuitToCanvasModule_drawPcbSilkscreenOval: typeof drawPcbSilkscreenOval;
|
|
2705
2769
|
declare const CircuitToCanvasModule_drawPcbSilkscreenPath: typeof drawPcbSilkscreenPath;
|
|
@@ -2707,6 +2771,7 @@ declare const CircuitToCanvasModule_drawPcbSilkscreenPill: typeof drawPcbSilkscr
|
|
|
2707
2771
|
declare const CircuitToCanvasModule_drawPcbSilkscreenRect: typeof drawPcbSilkscreenRect;
|
|
2708
2772
|
declare const CircuitToCanvasModule_drawPcbSilkscreenText: typeof drawPcbSilkscreenText;
|
|
2709
2773
|
declare const CircuitToCanvasModule_drawPcbSmtPad: typeof drawPcbSmtPad;
|
|
2774
|
+
declare const CircuitToCanvasModule_drawPcbSolderPaste: typeof drawPcbSolderPaste;
|
|
2710
2775
|
declare const CircuitToCanvasModule_drawPcbTrace: typeof drawPcbTrace;
|
|
2711
2776
|
declare const CircuitToCanvasModule_drawPcbVia: typeof drawPcbVia;
|
|
2712
2777
|
declare const CircuitToCanvasModule_drawPill: typeof drawPill;
|
|
@@ -2721,7 +2786,7 @@ declare const CircuitToCanvasModule_getAlphabetLayout: typeof getAlphabetLayout;
|
|
|
2721
2786
|
declare const CircuitToCanvasModule_getTextStartPosition: typeof getTextStartPosition;
|
|
2722
2787
|
declare const CircuitToCanvasModule_strokeAlphabetText: typeof strokeAlphabetText;
|
|
2723
2788
|
declare namespace CircuitToCanvasModule {
|
|
2724
|
-
export { type CircuitToCanvasModule_AlphabetLayout as AlphabetLayout, type CircuitToCanvasModule_AnchorAlignment as AnchorAlignment, type CircuitToCanvasModule_CameraBounds as CameraBounds, type CircuitToCanvasModule_CanvasContext as CanvasContext, CircuitToCanvasModule_CircuitToCanvasDrawer as CircuitToCanvasDrawer, type CopperColorMap$1 as CopperColorMap, type CopperLayerName$1 as CopperLayerName, CircuitToCanvasModule_DEFAULT_PCB_COLOR_MAP as DEFAULT_PCB_COLOR_MAP, type CircuitToCanvasModule_DrawArrowParams as DrawArrowParams, type CircuitToCanvasModule_DrawCircleParams as DrawCircleParams, type CircuitToCanvasModule_DrawContext as DrawContext, type CircuitToCanvasModule_DrawDimensionLineParams as DrawDimensionLineParams, type CircuitToCanvasModule_DrawElementsOptions as DrawElementsOptions, type CircuitToCanvasModule_DrawLineParams as DrawLineParams, type CircuitToCanvasModule_DrawOvalParams as DrawOvalParams, type CircuitToCanvasModule_DrawPathParams as DrawPathParams, type CircuitToCanvasModule_DrawPcbBoardParams as DrawPcbBoardParams, type CircuitToCanvasModule_DrawPcbCopperPourParams as DrawPcbCopperPourParams, type CircuitToCanvasModule_DrawPcbCopperTextParams as DrawPcbCopperTextParams, type CircuitToCanvasModule_DrawPcbCourtyardCircleParams as DrawPcbCourtyardCircleParams, type CircuitToCanvasModule_DrawPcbCutoutParams as DrawPcbCutoutParams, type CircuitToCanvasModule_DrawPcbFabricationNoteDimensionParams as DrawPcbFabricationNoteDimensionParams, type CircuitToCanvasModule_DrawPcbFabricationNotePathParams as DrawPcbFabricationNotePathParams, type CircuitToCanvasModule_DrawPcbFabricationNoteRectParams as DrawPcbFabricationNoteRectParams, type CircuitToCanvasModule_DrawPcbFabricationNoteTextParams as DrawPcbFabricationNoteTextParams, type CircuitToCanvasModule_DrawPcbHoleParams as DrawPcbHoleParams, type CircuitToCanvasModule_DrawPcbKeepoutParams as DrawPcbKeepoutParams, type CircuitToCanvasModule_DrawPcbNoteDimensionParams as DrawPcbNoteDimensionParams, type CircuitToCanvasModule_DrawPcbNotePathParams as DrawPcbNotePathParams, type CircuitToCanvasModule_DrawPcbNoteRectParams as DrawPcbNoteRectParams, type CircuitToCanvasModule_DrawPcbNoteTextParams as DrawPcbNoteTextParams, type CircuitToCanvasModule_DrawPcbPanelParams as DrawPcbPanelParams, type CircuitToCanvasModule_DrawPcbPlatedHoleParams as DrawPcbPlatedHoleParams, type CircuitToCanvasModule_DrawPcbSilkscreenCircleParams as DrawPcbSilkscreenCircleParams, type CircuitToCanvasModule_DrawPcbSilkscreenLineParams as DrawPcbSilkscreenLineParams, type CircuitToCanvasModule_DrawPcbSilkscreenOvalParams as DrawPcbSilkscreenOvalParams, type CircuitToCanvasModule_DrawPcbSilkscreenPathParams as DrawPcbSilkscreenPathParams, type CircuitToCanvasModule_DrawPcbSilkscreenPillParams as DrawPcbSilkscreenPillParams, type CircuitToCanvasModule_DrawPcbSilkscreenRectParams as DrawPcbSilkscreenRectParams, type CircuitToCanvasModule_DrawPcbSilkscreenTextParams as DrawPcbSilkscreenTextParams, type CircuitToCanvasModule_DrawPcbSmtPadParams as DrawPcbSmtPadParams, type CircuitToCanvasModule_DrawPcbTraceParams as DrawPcbTraceParams, type CircuitToCanvasModule_DrawPcbViaParams as DrawPcbViaParams, type CircuitToCanvasModule_DrawPillParams as DrawPillParams, type CircuitToCanvasModule_DrawPolygonParams as DrawPolygonParams, type CircuitToCanvasModule_DrawRectParams as DrawRectParams, type CircuitToCanvasModule_DrawTextParams as DrawTextParams, type CircuitToCanvasModule_DrawerConfig as DrawerConfig, type PcbColorMap$1 as PcbColorMap, CircuitToCanvasModule_drawArrow as drawArrow, CircuitToCanvasModule_drawCircle as drawCircle, CircuitToCanvasModule_drawDimensionLine as drawDimensionLine, CircuitToCanvasModule_drawLine as drawLine, CircuitToCanvasModule_drawOval as drawOval, CircuitToCanvasModule_drawPath as drawPath, CircuitToCanvasModule_drawPcbBoard as drawPcbBoard, CircuitToCanvasModule_drawPcbCopperPour as drawPcbCopperPour, CircuitToCanvasModule_drawPcbCopperText as drawPcbCopperText, CircuitToCanvasModule_drawPcbCourtyardCircle as drawPcbCourtyardCircle, CircuitToCanvasModule_drawPcbCutout as drawPcbCutout, CircuitToCanvasModule_drawPcbFabricationNoteDimension as drawPcbFabricationNoteDimension, CircuitToCanvasModule_drawPcbFabricationNotePath as drawPcbFabricationNotePath, CircuitToCanvasModule_drawPcbFabricationNoteRect as drawPcbFabricationNoteRect, CircuitToCanvasModule_drawPcbFabricationNoteText as drawPcbFabricationNoteText, CircuitToCanvasModule_drawPcbHole as drawPcbHole, CircuitToCanvasModule_drawPcbKeepout as drawPcbKeepout, CircuitToCanvasModule_drawPcbNoteDimension as drawPcbNoteDimension, CircuitToCanvasModule_drawPcbNotePath as drawPcbNotePath, CircuitToCanvasModule_drawPcbNoteRect as drawPcbNoteRect, CircuitToCanvasModule_drawPcbNoteText as drawPcbNoteText, CircuitToCanvasModule_drawPcbPanelElement as drawPcbPanelElement, CircuitToCanvasModule_drawPcbPlatedHole as drawPcbPlatedHole, CircuitToCanvasModule_drawPcbSilkscreenCircle as drawPcbSilkscreenCircle, CircuitToCanvasModule_drawPcbSilkscreenLine as drawPcbSilkscreenLine, CircuitToCanvasModule_drawPcbSilkscreenOval as drawPcbSilkscreenOval, CircuitToCanvasModule_drawPcbSilkscreenPath as drawPcbSilkscreenPath, CircuitToCanvasModule_drawPcbSilkscreenPill as drawPcbSilkscreenPill, CircuitToCanvasModule_drawPcbSilkscreenRect as drawPcbSilkscreenRect, CircuitToCanvasModule_drawPcbSilkscreenText as drawPcbSilkscreenText, CircuitToCanvasModule_drawPcbSmtPad as drawPcbSmtPad, CircuitToCanvasModule_drawPcbTrace as drawPcbTrace, CircuitToCanvasModule_drawPcbVia as drawPcbVia, CircuitToCanvasModule_drawPill as drawPill, CircuitToCanvasModule_drawPolygon as drawPolygon, CircuitToCanvasModule_drawRect as drawRect, CircuitToCanvasModule_drawSoldermaskRingForCircle as drawSoldermaskRingForCircle, CircuitToCanvasModule_drawSoldermaskRingForOval as drawSoldermaskRingForOval, CircuitToCanvasModule_drawSoldermaskRingForPill as drawSoldermaskRingForPill, CircuitToCanvasModule_drawSoldermaskRingForRect as drawSoldermaskRingForRect, CircuitToCanvasModule_drawText as drawText, CircuitToCanvasModule_getAlphabetLayout as getAlphabetLayout, CircuitToCanvasModule_getTextStartPosition as getTextStartPosition, CircuitToCanvasModule_strokeAlphabetText as strokeAlphabetText };
|
|
2789
|
+
export { type CircuitToCanvasModule_AddBrepRingToPathParams as AddBrepRingToPathParams, type CircuitToCanvasModule_AddBrepShapeToPathParams as AddBrepShapeToPathParams, type CircuitToCanvasModule_AlphabetLayout as AlphabetLayout, type CircuitToCanvasModule_AnchorAlignment as AnchorAlignment, type CircuitToCanvasModule_BrepShape as BrepShape, type CircuitToCanvasModule_CameraBounds as CameraBounds, type CircuitToCanvasModule_CanvasContext as CanvasContext, CircuitToCanvasModule_CircuitToCanvasDrawer as CircuitToCanvasDrawer, type CopperColorMap$1 as CopperColorMap, type CopperLayerName$1 as CopperLayerName, CircuitToCanvasModule_DEFAULT_PCB_COLOR_MAP as DEFAULT_PCB_COLOR_MAP, type CircuitToCanvasModule_DrawArrowParams as DrawArrowParams, type CircuitToCanvasModule_DrawCircleParams as DrawCircleParams, type CircuitToCanvasModule_DrawContext as DrawContext, type CircuitToCanvasModule_DrawDimensionLineParams as DrawDimensionLineParams, type CircuitToCanvasModule_DrawElementsOptions as DrawElementsOptions, type CircuitToCanvasModule_DrawLineParams as DrawLineParams, type CircuitToCanvasModule_DrawOvalParams as DrawOvalParams, type CircuitToCanvasModule_DrawPathParams as DrawPathParams, type CircuitToCanvasModule_DrawPcbBoardParams as DrawPcbBoardParams, type CircuitToCanvasModule_DrawPcbCopperPourParams as DrawPcbCopperPourParams, type CircuitToCanvasModule_DrawPcbCopperTextParams as DrawPcbCopperTextParams, type CircuitToCanvasModule_DrawPcbCourtyardCircleParams as DrawPcbCourtyardCircleParams, type CircuitToCanvasModule_DrawPcbCutoutParams as DrawPcbCutoutParams, type CircuitToCanvasModule_DrawPcbFabricationNoteDimensionParams as DrawPcbFabricationNoteDimensionParams, type CircuitToCanvasModule_DrawPcbFabricationNotePathParams as DrawPcbFabricationNotePathParams, type CircuitToCanvasModule_DrawPcbFabricationNoteRectParams as DrawPcbFabricationNoteRectParams, type CircuitToCanvasModule_DrawPcbFabricationNoteTextParams as DrawPcbFabricationNoteTextParams, type CircuitToCanvasModule_DrawPcbHoleParams as DrawPcbHoleParams, type CircuitToCanvasModule_DrawPcbKeepoutParams as DrawPcbKeepoutParams, type CircuitToCanvasModule_DrawPcbNoteDimensionParams as DrawPcbNoteDimensionParams, type CircuitToCanvasModule_DrawPcbNotePathParams as DrawPcbNotePathParams, type CircuitToCanvasModule_DrawPcbNoteRectParams as DrawPcbNoteRectParams, type CircuitToCanvasModule_DrawPcbNoteTextParams as DrawPcbNoteTextParams, type CircuitToCanvasModule_DrawPcbPanelParams as DrawPcbPanelParams, type CircuitToCanvasModule_DrawPcbPlatedHoleParams as DrawPcbPlatedHoleParams, type CircuitToCanvasModule_DrawPcbSilkscreenCircleParams as DrawPcbSilkscreenCircleParams, type CircuitToCanvasModule_DrawPcbSilkscreenGraphicParams as DrawPcbSilkscreenGraphicParams, type CircuitToCanvasModule_DrawPcbSilkscreenLineParams as DrawPcbSilkscreenLineParams, type CircuitToCanvasModule_DrawPcbSilkscreenOvalParams as DrawPcbSilkscreenOvalParams, type CircuitToCanvasModule_DrawPcbSilkscreenPathParams as DrawPcbSilkscreenPathParams, type CircuitToCanvasModule_DrawPcbSilkscreenPillParams as DrawPcbSilkscreenPillParams, type CircuitToCanvasModule_DrawPcbSilkscreenRectParams as DrawPcbSilkscreenRectParams, type CircuitToCanvasModule_DrawPcbSilkscreenTextParams as DrawPcbSilkscreenTextParams, type CircuitToCanvasModule_DrawPcbSmtPadParams as DrawPcbSmtPadParams, type CircuitToCanvasModule_DrawPcbSolderPasteParams as DrawPcbSolderPasteParams, type CircuitToCanvasModule_DrawPcbTraceParams as DrawPcbTraceParams, type CircuitToCanvasModule_DrawPcbViaParams as DrawPcbViaParams, type CircuitToCanvasModule_DrawPillParams as DrawPillParams, type CircuitToCanvasModule_DrawPolygonParams as DrawPolygonParams, type CircuitToCanvasModule_DrawRectParams as DrawRectParams, type CircuitToCanvasModule_DrawTextParams as DrawTextParams, type CircuitToCanvasModule_DrawerConfig as DrawerConfig, type PcbColorMap$1 as PcbColorMap, CircuitToCanvasModule_addBrepRingToPath as addBrepRingToPath, CircuitToCanvasModule_addBrepShapeToPath as addBrepShapeToPath, CircuitToCanvasModule_drawArrow as drawArrow, CircuitToCanvasModule_drawCircle as drawCircle, CircuitToCanvasModule_drawDimensionLine as drawDimensionLine, CircuitToCanvasModule_drawLine as drawLine, CircuitToCanvasModule_drawOval as drawOval, CircuitToCanvasModule_drawPath as drawPath, CircuitToCanvasModule_drawPcbBoard as drawPcbBoard, CircuitToCanvasModule_drawPcbCopperPour as drawPcbCopperPour, CircuitToCanvasModule_drawPcbCopperText as drawPcbCopperText, CircuitToCanvasModule_drawPcbCourtyardCircle as drawPcbCourtyardCircle, CircuitToCanvasModule_drawPcbCutout as drawPcbCutout, CircuitToCanvasModule_drawPcbFabricationNoteDimension as drawPcbFabricationNoteDimension, CircuitToCanvasModule_drawPcbFabricationNotePath as drawPcbFabricationNotePath, CircuitToCanvasModule_drawPcbFabricationNoteRect as drawPcbFabricationNoteRect, CircuitToCanvasModule_drawPcbFabricationNoteText as drawPcbFabricationNoteText, CircuitToCanvasModule_drawPcbHole as drawPcbHole, CircuitToCanvasModule_drawPcbKeepout as drawPcbKeepout, CircuitToCanvasModule_drawPcbNoteDimension as drawPcbNoteDimension, CircuitToCanvasModule_drawPcbNotePath as drawPcbNotePath, CircuitToCanvasModule_drawPcbNoteRect as drawPcbNoteRect, CircuitToCanvasModule_drawPcbNoteText as drawPcbNoteText, CircuitToCanvasModule_drawPcbPanelElement as drawPcbPanelElement, CircuitToCanvasModule_drawPcbPlatedHole as drawPcbPlatedHole, CircuitToCanvasModule_drawPcbSilkscreenCircle as drawPcbSilkscreenCircle, CircuitToCanvasModule_drawPcbSilkscreenGraphic as drawPcbSilkscreenGraphic, CircuitToCanvasModule_drawPcbSilkscreenLine as drawPcbSilkscreenLine, CircuitToCanvasModule_drawPcbSilkscreenOval as drawPcbSilkscreenOval, CircuitToCanvasModule_drawPcbSilkscreenPath as drawPcbSilkscreenPath, CircuitToCanvasModule_drawPcbSilkscreenPill as drawPcbSilkscreenPill, CircuitToCanvasModule_drawPcbSilkscreenRect as drawPcbSilkscreenRect, CircuitToCanvasModule_drawPcbSilkscreenText as drawPcbSilkscreenText, CircuitToCanvasModule_drawPcbSmtPad as drawPcbSmtPad, CircuitToCanvasModule_drawPcbSolderPaste as drawPcbSolderPaste, CircuitToCanvasModule_drawPcbTrace as drawPcbTrace, CircuitToCanvasModule_drawPcbVia as drawPcbVia, CircuitToCanvasModule_drawPill as drawPill, CircuitToCanvasModule_drawPolygon as drawPolygon, CircuitToCanvasModule_drawRect as drawRect, CircuitToCanvasModule_drawSoldermaskRingForCircle as drawSoldermaskRingForCircle, CircuitToCanvasModule_drawSoldermaskRingForOval as drawSoldermaskRingForOval, CircuitToCanvasModule_drawSoldermaskRingForPill as drawSoldermaskRingForPill, CircuitToCanvasModule_drawSoldermaskRingForRect as drawSoldermaskRingForRect, CircuitToCanvasModule_drawText as drawText, CircuitToCanvasModule_getAlphabetLayout as getAlphabetLayout, CircuitToCanvasModule_getTextStartPosition as getTextStartPosition, CircuitToCanvasModule_strokeAlphabetText as strokeAlphabetText };
|
|
2725
2790
|
}
|
|
2726
2791
|
|
|
2727
2792
|
interface PcbGridOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/internal-dynamic-import",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Type-safe dynamic imports for selected tscircuit packages via jscdn and fallback to jsDelivr",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"circuit-json-to-spice": "0.0.34",
|
|
43
43
|
"circuit-json-to-step": "0.0.19",
|
|
44
44
|
"circuit-json-to-tscircuit": "0.0.42",
|
|
45
|
-
"circuit-to-canvas": "0.0.
|
|
45
|
+
"circuit-to-canvas": "0.0.123",
|
|
46
46
|
"circuit-to-svg": "0.0.339",
|
|
47
47
|
"kicad-to-circuit-json": "0.0.98",
|
|
48
48
|
"tsup": "8.5.1",
|