@jscad/web 2.5.8 → 2.5.11
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/CHANGELOG.md +32 -0
- package/README.md +7 -7
- package/css/demo.css +36 -34
- package/demo.html +3 -1
- package/dist/jscad-web.min.js +906 -2089
- package/examples/CHANGELOG.md +27 -0
- package/examples/README.md +4 -4
- package/examples/core/extrusions/nutsAndBolts.js +94 -0
- package/examples/examples.json +1 -1
- package/examples/package.json +2 -1
- package/examples/parameters/gear.js +1 -1
- package/locales/de.json +0 -6
- package/locales/en.json +0 -6
- package/locales/fr.json +0 -6
- package/locales/hr.json +0 -6
- package/locales/ja.json +0 -6
- package/package.json +9 -8
- package/src/sideEffects/worker/index.js +9 -5
- package/src/ui/flow/design.js +13 -3
- package/src/ui/views/options.js +0 -14
- package/src/ui/views/parameterControls.js +3 -3
- package/src/ui/views/status.js +21 -14
- package/src/ui/views/toolbar.js +3 -3
- package/css/big.css +0 -107
- package/css/min.css +0 -107
- package/css/openjscad.css +0 -135
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.5.11](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.10...@jscad/web@2.5.11) (2022-06-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @jscad/web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.5.10](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.9...@jscad/web@2.5.10) (2022-05-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **web:** corrected messages from parameter runtime errors (missing types, etc) ([cf7d5f1](https://github.com/jscad/OpenJSCAD.org/commit/cf7d5f12f2b99d67167eb79f1e2f085f8ff297bc))
|
|
20
|
+
* **web:** corrected status (error) message format and display ([abd02b1](https://github.com/jscad/OpenJSCAD.org/commit/abd02b14a64f88bbf63c36e7f9dc1cee76402f3f))
|
|
21
|
+
* **web:** enhanced design state management to handle error messages ([1c15139](https://github.com/jscad/OpenJSCAD.org/commit/1c15139e6733b4157c730399d18a158fb44e38a9))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [2.5.9](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.8...@jscad/web@2.5.9) (2022-04-24)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **web:** remove unused file handling and storage path options ([#1071](https://github.com/jscad/OpenJSCAD.org/issues/1071)) ([02c740c](https://github.com/jscad/OpenJSCAD.org/commit/02c740ce56c04ffb7b83a5e48009abb111c64001))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [2.5.8](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.7...@jscad/web@2.5.8) (2022-04-03)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @jscad/web
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @jscad/web: JSCAD Web UI
|
|
2
2
|
|
|
3
|
-
This is the Web based UI for JSCAD, either to host yourself, or use directly at https://
|
|
3
|
+
This is the Web based UI for JSCAD, either to host yourself, or use directly at https://openjscad.xyz/.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@jscad/web)
|
|
6
6
|
[](https://www.npmjs.com/package/@jscad/web)
|
|
@@ -32,7 +32,7 @@ This is the Web based UI for JSCAD, either to host yourself, or use directly at
|
|
|
32
32
|
|
|
33
33
|
### Immediate Use (no installation)
|
|
34
34
|
|
|
35
|
-
Go to *[
|
|
35
|
+
Go to *[openjscad.xyz](https://openjscad.xyz)*
|
|
36
36
|
|
|
37
37
|
> Note: Tested browsers include Chrome, Firefox, Opera, Safari, Edge
|
|
38
38
|
|
|
@@ -77,8 +77,8 @@ https://YOURSITE/#http://www.thingiverse.com/download:164128
|
|
|
77
77
|
|
|
78
78
|
## Documentation
|
|
79
79
|
|
|
80
|
-
- [JSCAD User Guide](https://
|
|
81
|
-
- [JSCAD API Reference](https://
|
|
80
|
+
- [JSCAD User Guide](https://openjscad.xyz/guide.html)
|
|
81
|
+
- [JSCAD API Reference](https://openjscad.xyz/docs/)
|
|
82
82
|
|
|
83
83
|
## Known Issues
|
|
84
84
|
|
|
@@ -95,11 +95,11 @@ We welcome and encourage anyone to pitch in but please take a moment to read the
|
|
|
95
95
|
|
|
96
96
|
* If you want to submit a bug report please make sure to follow the [Reporting Issues](https://github.com/jscad/OpenJSCAD.org/wiki/Reporting-Issues) guide. Bug reports are accepted as [Issues](https://github.com/jscad/OpenJSCAD.org/issues/) via GitHub.
|
|
97
97
|
|
|
98
|
-
* If you want to submit a change or a patch, please read the [Contributing Guide](../../CONTRIBUTING.md)
|
|
98
|
+
* If you want to submit a change or a patch, please read the [Contributing Guide](../../CONTRIBUTING.md). New contributions are accepted as [Pull Requests](https://github.com/jscad/OpenJSCAD.org/pulls/) via GitHub.
|
|
99
99
|
|
|
100
100
|
* We only accept bug reports and pull requests on **GitHub**.
|
|
101
101
|
|
|
102
|
-
* If you have a question about how to use JSCAD, then please start a conversation at the [JSCAD User Group](https://openjscad.xyz/forum.html). You might find the answer in the [JSCAD User Guide](https://
|
|
102
|
+
* If you have a question about how to use JSCAD, then please start a conversation at the [JSCAD User Group](https://openjscad.xyz/forum.html). You might find the answer in the [JSCAD User Guide](https://openjscad.xyz/guide.html).
|
|
103
103
|
|
|
104
104
|
* If you have a change or new feature in mind, please start a conversation with the [Core Developers](https://openjscad.xyz/forum.html) and start contributing changes.
|
|
105
105
|
|
|
@@ -116,7 +116,7 @@ HUGE THANKS and SHOUTOUT to [nodeBB](https://nodebb.org/) for hosting our (aweso
|
|
|
116
116
|
|
|
117
117
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/openjscad#backer)]
|
|
118
118
|
|
|
119
|
-
<a href="https://opencollective.com/openjscad#backers" target="_blank"><img src="https://opencollective.com/openjscad/backers.svg?width=890"></a>
|
|
119
|
+
<a href="https://opencollective.com/openjscad#backers" target="_blank"><img src="https://opencollective.com/openjscad/backers.svg?width=890" alt="Open Collective"></a>
|
|
120
120
|
|
|
121
121
|
## Sponsors
|
|
122
122
|
|
package/css/demo.css
CHANGED
|
@@ -58,7 +58,8 @@ body {
|
|
|
58
58
|
src: local('OpenSans'), local('OpenSans'), url(../fonts/Open_Sans/OpenSans-Bold.ttf) format('truetype');
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
#renderTarget{
|
|
61
|
+
#renderTarget {
|
|
62
|
+
cursor: move;
|
|
62
63
|
width: 100%;
|
|
63
64
|
height: 100%;
|
|
64
65
|
position: absolute;
|
|
@@ -68,7 +69,7 @@ body {
|
|
|
68
69
|
bottom: 0px;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
#fileLoader{
|
|
72
|
+
#fileLoader {
|
|
72
73
|
width: 0.1px;
|
|
73
74
|
height: 0.1px;
|
|
74
75
|
opacity: 0;
|
|
@@ -80,9 +81,9 @@ body {
|
|
|
80
81
|
box-shadow: none;
|
|
81
82
|
border: 1px solid #bfbcbc;
|
|
82
83
|
border-color: black;
|
|
83
|
-
border-radius:
|
|
84
|
+
border-radius: 1px;
|
|
84
85
|
border-width: 1px;
|
|
85
|
-
padding:
|
|
86
|
+
padding: 0px 2px;
|
|
86
87
|
margin: 0px 5px 0px 0px;
|
|
87
88
|
background-color: white;
|
|
88
89
|
outline: none;
|
|
@@ -95,12 +96,13 @@ body {
|
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
#controls {
|
|
99
|
+
box-sizing: border-box;
|
|
98
100
|
color: var(--main-text-color);
|
|
99
101
|
position: absolute;
|
|
100
102
|
width: 100%;
|
|
103
|
+
padding: 0px 10px;
|
|
101
104
|
user-select: none;
|
|
102
105
|
top: 30px;
|
|
103
|
-
left: 10px;
|
|
104
106
|
z-index: 1;
|
|
105
107
|
}
|
|
106
108
|
|
|
@@ -109,6 +111,7 @@ body {
|
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
section#params {
|
|
114
|
+
background-color: rgba(255, 255, 255, 0.6);
|
|
112
115
|
position: absolute;
|
|
113
116
|
bottom: 10px;
|
|
114
117
|
left: 10px;
|
|
@@ -168,13 +171,6 @@ section#params {
|
|
|
168
171
|
display: none;
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
/*#paramsTable .groupTitle:hover .icon-closed{
|
|
172
|
-
display: none;
|
|
173
|
-
}
|
|
174
|
-
#paramsTable .groupTitle:hover .icon-open{
|
|
175
|
-
display: block;
|
|
176
|
-
}*/
|
|
177
|
-
|
|
178
174
|
#paramsTable .controlsLine{
|
|
179
175
|
padding-top: 10px;
|
|
180
176
|
}
|
|
@@ -197,20 +193,19 @@ span#paramsControls {
|
|
|
197
193
|
color: red;
|
|
198
194
|
top: 60px;
|
|
199
195
|
left: 0;
|
|
200
|
-
width: 33%;
|
|
201
196
|
padding: 20px;
|
|
202
197
|
z-index: 1;
|
|
203
198
|
}
|
|
204
199
|
|
|
200
|
+
#stacktrace ul{
|
|
201
|
+
padding: 0px 0px 0px 15px;
|
|
202
|
+
margin: 0px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
205
|
#container{
|
|
206
206
|
position: relative;
|
|
207
207
|
height: 100%;
|
|
208
208
|
width: 100%;
|
|
209
|
-
/*position: absolute;
|
|
210
|
-
top: 0px;
|
|
211
|
-
bottom: 0px;
|
|
212
|
-
left: 0px;
|
|
213
|
-
right: 0px;*/
|
|
214
209
|
}
|
|
215
210
|
|
|
216
211
|
h3 {
|
|
@@ -218,8 +213,9 @@ h3 {
|
|
|
218
213
|
}
|
|
219
214
|
|
|
220
215
|
#header {
|
|
216
|
+
box-sizing: border-box;
|
|
221
217
|
position: absolute;
|
|
222
|
-
|
|
218
|
+
padding: 0px 10px;
|
|
223
219
|
color: var(--main-text-color);
|
|
224
220
|
width: 100%;
|
|
225
221
|
display: inline-flex;
|
|
@@ -262,8 +258,8 @@ section {
|
|
|
262
258
|
section.popup-menu {
|
|
263
259
|
position: absolute;
|
|
264
260
|
top: 40px;
|
|
265
|
-
right:
|
|
266
|
-
height: 80%;
|
|
261
|
+
right: 10px;
|
|
262
|
+
max-height: 80%;
|
|
267
263
|
}
|
|
268
264
|
|
|
269
265
|
section.popup-menu h2 {
|
|
@@ -287,17 +283,19 @@ section.popup-menu ul {
|
|
|
287
283
|
}
|
|
288
284
|
|
|
289
285
|
#options {
|
|
286
|
+
background-color: rgba(255, 255, 255, 0.6);
|
|
290
287
|
padding-left: 18px;
|
|
291
288
|
}
|
|
292
289
|
|
|
293
|
-
#options fieldset{
|
|
290
|
+
#options fieldset {
|
|
294
291
|
border: none;
|
|
295
292
|
display: table;
|
|
293
|
+
padding-inline: 0px;
|
|
296
294
|
}
|
|
297
|
-
#options fieldset label{
|
|
295
|
+
#options fieldset label {
|
|
298
296
|
display: table-row;
|
|
299
297
|
}
|
|
300
|
-
#options fieldset input{
|
|
298
|
+
#options fieldset input {
|
|
301
299
|
display: table-row;
|
|
302
300
|
align-self: flex-end;
|
|
303
301
|
}
|
|
@@ -306,7 +304,9 @@ section.popup-menu ul {
|
|
|
306
304
|
}
|
|
307
305
|
|
|
308
306
|
#editor {
|
|
309
|
-
|
|
307
|
+
bottom: 10px;
|
|
308
|
+
max-height: none;
|
|
309
|
+
padding: 0px;
|
|
310
310
|
font-size: 0.9em;
|
|
311
311
|
width: 50%;
|
|
312
312
|
}
|
|
@@ -317,6 +317,7 @@ textarea {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
#help {
|
|
320
|
+
background-color: rgba(255, 255, 255, 0.6);
|
|
320
321
|
}
|
|
321
322
|
|
|
322
323
|
#help a {
|
|
@@ -358,7 +359,8 @@ button {
|
|
|
358
359
|
border-color: black;
|
|
359
360
|
border-radius: 0px;
|
|
360
361
|
border-width: 1px;
|
|
361
|
-
margin: 0px 5px
|
|
362
|
+
margin: 0px 5px;
|
|
363
|
+
padding: 2px 6px;
|
|
362
364
|
background-color: white;
|
|
363
365
|
letter-spacing: .5px;
|
|
364
366
|
outline: none;
|
|
@@ -366,12 +368,12 @@ button {
|
|
|
366
368
|
opacity: 0.6;
|
|
367
369
|
}
|
|
368
370
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
371
|
+
button > svg {
|
|
372
|
+
vertical-align: middle;
|
|
373
|
+
}
|
|
372
374
|
|
|
373
375
|
button:hover svg {
|
|
374
|
-
stroke:rgb(0, 153, 255);
|
|
376
|
+
stroke: rgb(0, 153, 255);
|
|
375
377
|
}
|
|
376
378
|
|
|
377
379
|
#toolbar button:hover {
|
|
@@ -423,16 +425,16 @@ input[type="checkbox"]:hover{
|
|
|
423
425
|
}
|
|
424
426
|
|
|
425
427
|
input.error::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
|
|
426
|
-
|
|
427
|
-
|
|
428
|
+
color: red;
|
|
429
|
+
opacity: 1; /* Firefox */
|
|
428
430
|
}
|
|
429
431
|
|
|
430
432
|
#shortcuts .error input:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
431
|
-
|
|
433
|
+
color: red;
|
|
432
434
|
}
|
|
433
435
|
|
|
434
436
|
#shortcuts .error input::-ms-input-placeholder { /* Microsoft Edge */
|
|
435
|
-
|
|
437
|
+
color: red;
|
|
436
438
|
}
|
|
437
439
|
|
|
438
440
|
.icon {
|
package/demo.html
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="description" content="JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D CAD designs with JavaScript code."/>
|
|
5
7
|
|
|
6
|
-
<title>JSCAD
|
|
8
|
+
<title>JSCAD - JavaScript CAD</title>
|
|
7
9
|
|
|
8
10
|
<link rel="stylesheet" type="text/css" href="./css/demo.css">
|
|
9
11
|
<link rel="shortcut icon" href="imgs/favicon.png" type="image/x-png">
|