dsh-cad-studio 0.2.6 → 0.2.7
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/client.js +17 -9
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -375,11 +375,19 @@ window.__ModuleLoader__.load({
|
|
|
375
375
|
])
|
|
376
376
|
}
|
|
377
377
|
if (name === 'view') {
|
|
378
|
+
// A camera: which angle am I looking from, and what gets drawn.
|
|
378
379
|
return h('svg', common, [
|
|
379
|
-
h('path', { key: '
|
|
380
|
-
h('path', { key: '
|
|
381
|
-
h('
|
|
382
|
-
|
|
380
|
+
h('path', { key: 'body', d: 'M2.3 5.9h11.4a1 1 0 0 1 1 1v5.4a1 1 0 0 1-1 1H2.3a1 1 0 0 1-1-1V6.9a1 1 0 0 1 1-1Z' }),
|
|
381
|
+
h('path', { key: 'bump', d: 'M5.5 5.9 6.5 4.2h3l1 1.7' }),
|
|
382
|
+
h('circle', { key: 'lens', cx: 8, cy: 9.6, r: 2.2 }),
|
|
383
|
+
])
|
|
384
|
+
}
|
|
385
|
+
if (name === 'features') {
|
|
386
|
+
// A ziggurat: the shape as a stack of machining steps.
|
|
387
|
+
return h('svg', common, [
|
|
388
|
+
h('path', { key: 'b1', d: 'M2.4 10.2h11.2v3.3H2.4z' }),
|
|
389
|
+
h('path', { key: 'b2', d: 'M3.9 6.9h8.2v3.3H3.9z' }),
|
|
390
|
+
h('path', { key: 'b3', d: 'M5.4 3.6h5.2v3.3H5.4z' }),
|
|
383
391
|
])
|
|
384
392
|
}
|
|
385
393
|
if (name === 'models') {
|
|
@@ -397,12 +405,11 @@ window.__ModuleLoader__.load({
|
|
|
397
405
|
])
|
|
398
406
|
}
|
|
399
407
|
if (name === 'motion') {
|
|
400
|
-
// A joint
|
|
408
|
+
// A revolute joint: rotation axis with a circular arrow around it.
|
|
401
409
|
return h('svg', common, [
|
|
402
|
-
h('path', { key: 'a', d: 'M8
|
|
403
|
-
h('path', { key: 'b', d: '
|
|
404
|
-
h('path', { key: 'c', d: '
|
|
405
|
-
h('path', { key: 'd', d: 'M10.6 3.1 8 2.4l-.7 2.6M5.4 12.9 8 13.6l.7-2.6' }),
|
|
410
|
+
h('path', { key: 'a', d: 'M8 3.2v9.6' }),
|
|
411
|
+
h('path', { key: 'b', d: 'M8 5.1a2.9 2.9 0 1 1-2.8 3.6' }),
|
|
412
|
+
h('path', { key: 'c', d: 'M5.3 8.6 4.2 8l-.2 1.5' }),
|
|
406
413
|
])
|
|
407
414
|
}
|
|
408
415
|
return h('svg', common, [
|
|
@@ -2386,6 +2393,7 @@ const FILE_EXTS = ['step', 'stp', 'iges', 'igs', 'brep', 'stl']
|
|
|
2386
2393
|
style: styles.railBtn(panel === item.id),
|
|
2387
2394
|
'data-cad-rail': item.id,
|
|
2388
2395
|
'aria-pressed': panel === item.id ? 'true' : 'false',
|
|
2396
|
+
'aria-label': item.label,
|
|
2389
2397
|
title: item.label,
|
|
2390
2398
|
onClick: () => { setAddOpen(false); setPanel((p) => (p === item.id ? '' : item.id)) },
|
|
2391
2399
|
}, h(RailIcon, { name: item.id })))),
|