circuit-json-to-gltf 0.0.36 → 0.0.38

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 CHANGED
@@ -113,6 +113,7 @@ interface GLTFExportOptions {
113
113
  interface CircuitTo3DOptions {
114
114
  pcbColor?: Color;
115
115
  componentColor?: Color;
116
+ copperColor?: Color;
116
117
  boardThickness?: number;
117
118
  defaultComponentHeight?: number;
118
119
  renderBoardTextures?: boolean;
@@ -171,4 +172,51 @@ declare const COORDINATE_TRANSFORMS: {
171
172
 
172
173
  declare function convertCircuitJsonToGltf(circuitJson: CircuitJson, options?: ConversionOptions): Promise<ArrayBuffer | object>;
173
174
 
174
- export { type BoardRenderOptions, type BoundingBox, type Box3D, COORDINATE_TRANSFORMS, type Camera3D, type CircuitTo3DOptions, type Color, type ConversionOptions, type CoordinateTransformConfig, type GLTFExportOptions, type Light3D, type OBJMaterial, type OBJMesh, type Point3, type STLMesh, type Scene3D, type Size3, type Triangle, applyCoordinateTransform, clearGLBCache, clearOBJCache, clearSTLCache, convertCircuitJsonTo3D, convertCircuitJsonToGltf, convertSceneToGLTF, loadGLB, loadOBJ, loadSTL, renderBoardLayer, renderBoardTextures, transformTriangles };
175
+ interface Point {
176
+ x: number;
177
+ y: number;
178
+ }
179
+ type LayerRef = string | number;
180
+ interface BRepShape {
181
+ polygons: Point[][];
182
+ is_negative?: boolean;
183
+ }
184
+ interface PcbCopperPourRect {
185
+ type: "pcb_copper_pour";
186
+ pcb_copper_pour_id: string;
187
+ covered_with_solder_mask: boolean;
188
+ pcb_group_id?: string;
189
+ subcircuit_id?: string;
190
+ layer: LayerRef;
191
+ source_net_id?: string;
192
+ shape: "rect";
193
+ center: Point;
194
+ width: number;
195
+ height: number;
196
+ rotation?: any;
197
+ }
198
+ interface PcbCopperPourBRep {
199
+ type: "pcb_copper_pour";
200
+ pcb_copper_pour_id: string;
201
+ covered_with_solder_mask: boolean;
202
+ pcb_group_id?: string;
203
+ subcircuit_id?: string;
204
+ layer: LayerRef;
205
+ source_net_id?: string;
206
+ shape: "brep";
207
+ brep_shape: BRepShape;
208
+ }
209
+ interface PcbCopperPourPolygon {
210
+ type: "pcb_copper_pour";
211
+ pcb_copper_pour_id: string;
212
+ covered_with_solder_mask: boolean;
213
+ pcb_group_id?: string;
214
+ subcircuit_id?: string;
215
+ layer: LayerRef;
216
+ source_net_id?: string;
217
+ shape: "polygon";
218
+ points: Point[];
219
+ }
220
+ type PcbCopperPour = PcbCopperPourRect | PcbCopperPourBRep | PcbCopperPourPolygon;
221
+
222
+ export { type BRepShape, type BoardRenderOptions, type BoundingBox, type Box3D, COORDINATE_TRANSFORMS, type Camera3D, type CircuitTo3DOptions, type Color, type ConversionOptions, type CoordinateTransformConfig, type GLTFExportOptions, type LayerRef, type Light3D, type OBJMaterial, type OBJMesh, type PcbCopperPour, type PcbCopperPourBRep, type PcbCopperPourPolygon, type PcbCopperPourRect, type Point, type Point3, type STLMesh, type Scene3D, type Size3, type Triangle, applyCoordinateTransform, clearGLBCache, clearOBJCache, clearSTLCache, convertCircuitJsonTo3D, convertCircuitJsonToGltf, convertSceneToGLTF, loadGLB, loadOBJ, loadSTL, renderBoardLayer, renderBoardTextures, transformTriangles };