circuit-json-to-lbrn 0.0.55 → 0.0.56
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/package.json +1 -1
- package/site/index.html +0 -72
- package/site/main.tsx +6 -26
package/package.json
CHANGED
package/site/index.html
CHANGED
|
@@ -262,78 +262,6 @@
|
|
|
262
262
|
</div>
|
|
263
263
|
</details>
|
|
264
264
|
</div>
|
|
265
|
-
<div class="md:col-span-2 grid grid-cols-1 md:grid-cols-4 gap-4">
|
|
266
|
-
<label class="flex items-center cursor-pointer">
|
|
267
|
-
<input
|
|
268
|
-
type="checkbox"
|
|
269
|
-
id="includeCopper"
|
|
270
|
-
checked
|
|
271
|
-
class="w-5 h-5 text-blue-500 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"
|
|
272
|
-
/>
|
|
273
|
-
<span class="ml-3 text-sm font-medium text-gray-300">
|
|
274
|
-
Include Copper
|
|
275
|
-
</span>
|
|
276
|
-
</label>
|
|
277
|
-
<label class="flex items-center cursor-pointer">
|
|
278
|
-
<input
|
|
279
|
-
type="checkbox"
|
|
280
|
-
id="includeCopperCutFill"
|
|
281
|
-
class="w-5 h-5 text-blue-500 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"
|
|
282
|
-
/>
|
|
283
|
-
<span class="ml-3 text-sm font-medium text-gray-300">
|
|
284
|
-
Include Copper Cut Fill
|
|
285
|
-
</span>
|
|
286
|
-
</label>
|
|
287
|
-
<label class="flex items-center cursor-pointer">
|
|
288
|
-
<input
|
|
289
|
-
type="checkbox"
|
|
290
|
-
id="includeSoldermask"
|
|
291
|
-
class="w-5 h-5 text-blue-500 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"
|
|
292
|
-
/>
|
|
293
|
-
<span class="ml-3 text-sm font-medium text-gray-300">
|
|
294
|
-
Include Soldermask
|
|
295
|
-
</span>
|
|
296
|
-
</label>
|
|
297
|
-
<label class="flex items-center cursor-pointer">
|
|
298
|
-
<input
|
|
299
|
-
type="checkbox"
|
|
300
|
-
id="includeSilkscreen"
|
|
301
|
-
class="w-5 h-5 text-blue-500 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"
|
|
302
|
-
/>
|
|
303
|
-
<span class="ml-3 text-sm font-medium text-gray-300">
|
|
304
|
-
Include Silkscreen Layer
|
|
305
|
-
</span>
|
|
306
|
-
</label>
|
|
307
|
-
</div>
|
|
308
|
-
<div class="md:col-span-2">
|
|
309
|
-
<label class="block text-sm font-medium text-gray-300 mb-2">
|
|
310
|
-
Include Layers
|
|
311
|
-
</label>
|
|
312
|
-
<div class="flex gap-4">
|
|
313
|
-
<label class="flex items-center cursor-pointer">
|
|
314
|
-
<input
|
|
315
|
-
type="checkbox"
|
|
316
|
-
id="includeTopLayer"
|
|
317
|
-
checked
|
|
318
|
-
class="w-5 h-5 text-blue-500 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"
|
|
319
|
-
/>
|
|
320
|
-
<span class="ml-3 text-sm font-medium text-gray-300">
|
|
321
|
-
Top
|
|
322
|
-
</span>
|
|
323
|
-
</label>
|
|
324
|
-
<label class="flex items-center cursor-pointer">
|
|
325
|
-
<input
|
|
326
|
-
type="checkbox"
|
|
327
|
-
id="includeBottomLayer"
|
|
328
|
-
checked
|
|
329
|
-
class="w-5 h-5 text-blue-500 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"
|
|
330
|
-
/>
|
|
331
|
-
<span class="ml-3 text-sm font-medium text-gray-300">
|
|
332
|
-
Bottom
|
|
333
|
-
</span>
|
|
334
|
-
</label>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
265
|
</div>
|
|
338
266
|
<button
|
|
339
267
|
id="reconvertBtn"
|
package/site/main.tsx
CHANGED
|
@@ -45,27 +45,9 @@ const solderMaskMarginPercentInput = document.getElementById(
|
|
|
45
45
|
const laserSpotSizeInput = document.getElementById(
|
|
46
46
|
"laserSpotSize",
|
|
47
47
|
) as HTMLInputElement
|
|
48
|
-
const includeCopperInput = document.getElementById(
|
|
49
|
-
"includeCopper",
|
|
50
|
-
) as HTMLInputElement
|
|
51
|
-
const includeCopperCutFillInput = document.getElementById(
|
|
52
|
-
"includeCopperCutFill",
|
|
53
|
-
) as HTMLInputElement
|
|
54
48
|
const copperCutFillMarginInput = document.getElementById(
|
|
55
49
|
"copperCutFillMargin",
|
|
56
50
|
) as HTMLInputElement
|
|
57
|
-
const includeSoldermaskInput = document.getElementById(
|
|
58
|
-
"includeSoldermask",
|
|
59
|
-
) as HTMLInputElement
|
|
60
|
-
const includeSilkscreenInput = document.getElementById(
|
|
61
|
-
"includeSilkscreen",
|
|
62
|
-
) as HTMLInputElement
|
|
63
|
-
const includeTopLayerInput = document.getElementById(
|
|
64
|
-
"includeTopLayer",
|
|
65
|
-
) as HTMLInputElement
|
|
66
|
-
const includeBottomLayerInput = document.getElementById(
|
|
67
|
-
"includeBottomLayer",
|
|
68
|
-
) as HTMLInputElement
|
|
69
51
|
const copperSpeedInput = document.getElementById(
|
|
70
52
|
"copperSpeed",
|
|
71
53
|
) as HTMLInputElement
|
|
@@ -159,23 +141,21 @@ function showLoading(show: boolean) {
|
|
|
159
141
|
// Get conversion options from UI
|
|
160
142
|
function getConversionOptions() {
|
|
161
143
|
return {
|
|
162
|
-
includeSilkscreen:
|
|
144
|
+
includeSilkscreen: true,
|
|
163
145
|
origin: {
|
|
164
146
|
x: parseFloat(originXInput.value) || 0,
|
|
165
147
|
y: parseFloat(originYInput.value) || 0,
|
|
166
148
|
},
|
|
167
|
-
includeCopper:
|
|
168
|
-
includeCopperCutFill:
|
|
149
|
+
includeCopper: true,
|
|
150
|
+
includeCopperCutFill: true,
|
|
169
151
|
copperCutFillMargin: parseFloat(copperCutFillMarginInput.value) || 0.5,
|
|
170
|
-
includeSoldermask:
|
|
152
|
+
includeSoldermask: true,
|
|
153
|
+
includeSoldermaskCure: true,
|
|
171
154
|
globalCopperSoldermaskMarginAdjustment:
|
|
172
155
|
parseFloat(globalCopperSoldermaskMarginAdjustmentInput.value) || 0,
|
|
173
156
|
solderMaskMarginPercent:
|
|
174
157
|
parseFloat(solderMaskMarginPercentInput.value) || 0,
|
|
175
|
-
includeLayers: [
|
|
176
|
-
...(includeTopLayerInput.checked ? ["top" as const] : []),
|
|
177
|
-
...(includeBottomLayerInput.checked ? ["bottom" as const] : []),
|
|
178
|
-
],
|
|
158
|
+
includeLayers: ["top", "bottom"] as Array<"top" | "bottom">,
|
|
179
159
|
traceMargin: parseFloat(traceMarginInput.value) || 0,
|
|
180
160
|
laserSpotSize: parseFloat(laserSpotSizeInput.value) || 0.005,
|
|
181
161
|
laserProfile: {
|