@jscad/web 2.5.8 → 2.5.9

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.
@@ -3,6 +3,14 @@
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.3.3](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/examples@2.3.2...@jscad/examples@2.3.3) (2022-04-03)
7
+
8
+ **Note:** Version bump only for package @jscad/examples
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.3.2](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/examples@2.3.1...@jscad/examples@2.3.2) (2022-02-19)
7
15
 
8
16
  **Note:** Version bump only for package @jscad/examples
@@ -32,8 +32,8 @@ Install this package if you need access to the various examples.
32
32
 
33
33
  ## Documentation
34
34
 
35
- - [JSCAD User Guide](https://www.openjscad.xyz/guide.html)
36
- - [JSCAD API Reference](https://www.openjscad.xyz/docs)
35
+ - [JSCAD User Guide](https://openjscad.xyz/guide.html)
36
+ - [JSCAD API Reference](https://openjscad.xyz/docs/)
37
37
 
38
38
  ## Contributing
39
39
 
@@ -42,11 +42,11 @@ We welcome and encourage anyone to pitch in but please take a moment to read the
42
42
 
43
43
  * 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.
44
44
 
45
- * 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 GithHub.
45
+ * 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.
46
46
 
47
47
  * We only accept bug reports and pull requests on **GitHub**.
48
48
 
49
- * 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://www.openjscad.xyz/guide.html).
49
+ * 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).
50
50
 
51
51
  * 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.
52
52
 
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@jscad/examples",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Example Files for JSCAD",
5
+ "homepage": "https://openjscad.xyz/",
5
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
6
7
  "scripts": {},
7
8
  "contributors": [
package/locales/de.json CHANGED
@@ -14,12 +14,6 @@
14
14
  "enable geometry caching":"Experimenteles caching von Geometrie,",
15
15
  "timeout for generation":"Abfallzeit für generieren von Soliden (ms)",
16
16
 
17
- "Storage":"Speicher",
18
- "settings storage path":"Dateipfad für Einstellungen",
19
-
20
- "File Handling":"File Handling",
21
- "enable conversion to scripts":"Convert external formats to JSCAD scripts",
22
-
23
17
  "Shortcuts":"Tastenkombinationen",
24
18
 
25
19
  "Command":"Befehl",
package/locales/en.json CHANGED
@@ -14,12 +14,6 @@
14
14
  "enable geometry caching":"Enable Experimental Geometry Caching, ",
15
15
  "timeout for generation":"Timeout for Solid Generation (ms)",
16
16
 
17
- "Storage": "Storage",
18
- "settings storage path":"Storage path of settings",
19
-
20
- "File Handling": "File Handling",
21
- "enable conversion to scripts":"Convert external formats to JSCAD scripts",
22
-
23
17
  "Shortcuts":"Keyboard Shortcuts",
24
18
 
25
19
  "Command":"Command",
package/locales/fr.json CHANGED
@@ -14,12 +14,6 @@
14
14
  "enable geometry caching":"Systeme de cache experimental de la geometrie",
15
15
  "timeout for generation": "Timeout génération de solides (ms)",
16
16
 
17
- "Storage":"Stockage",
18
- "settings storage path":"Chemin de stockage des paramètres",
19
-
20
- "File Handling": "File Handling",
21
- "enable conversion to scripts":"Convert external formats to JSCAD scripts",
22
-
23
17
  "Shortcuts":"Racourcis Clavier",
24
18
 
25
19
  "Command":"Commande",
package/locales/hr.json CHANGED
@@ -14,12 +14,6 @@
14
14
  "enable geometry caching":"Omogući eksperimentalno cachiranje geometrije, ",
15
15
  "timeout for generation":"Timeout za generiranje modela (ms)",
16
16
 
17
- "Storage": "Spremanje",
18
- "settings storage path":"Putanja za spremanje postavki",
19
-
20
- "File Handling": "Obrada datoteka",
21
- "enable conversion to scripts":"Prevedi vanjske formate u JSCAD skripte",
22
-
23
17
  "Shortcuts":"Kratice za tipkovnicu",
24
18
 
25
19
  "Command":"Komanda",
package/locales/ja.json CHANGED
@@ -14,12 +14,6 @@
14
14
  "enable geometry caching":"experimental geometry caching",
15
15
  "timeout for generation":"図形の生成タイムアウト",
16
16
 
17
- "Storage": "ストレージ",
18
- "settings storage path":"ストレージ パス",
19
-
20
- "File Handling":"ファイル処理",
21
- "enable conversion to scripts":"外部形式をスクリプトに変換",
22
-
23
17
  "Shortcuts":"キーボード ショートカット",
24
18
 
25
19
  "Command":"コマンド",
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@jscad/web",
3
- "version": "2.5.8",
3
+ "version": "2.5.9",
4
4
  "description": "Web Application for JSCAD",
5
+ "homepage": "https://openjscad.xyz/",
5
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
6
7
  "main": "src/index.js",
7
8
  "unpkg": "dist/jscad-web.min.js",
@@ -34,12 +35,12 @@
34
35
  ],
35
36
  "license": "MIT",
36
37
  "dependencies": {
37
- "@jscad/array-utils": "2.1.3",
38
- "@jscad/core": "2.5.8",
39
- "@jscad/examples": "2.3.3",
40
- "@jscad/io": "2.3.1",
41
- "@jscad/modeling": "2.9.2",
42
- "@jscad/regl-renderer": "2.5.8",
38
+ "@jscad/array-utils": "2.1.4",
39
+ "@jscad/core": "2.5.9",
40
+ "@jscad/examples": "2.3.4",
41
+ "@jscad/io": "2.3.2",
42
+ "@jscad/modeling": "2.9.3",
43
+ "@jscad/regl-renderer": "2.5.9",
43
44
  "@most/create": "2.0.1",
44
45
  "brace": "0.11.1",
45
46
  "codemirror": "5.65.2",
@@ -66,5 +67,5 @@
66
67
  "url": "https://opencollective.com/openjscad",
67
68
  "logo": "https://opencollective.com/openjscad/logo.txt"
68
69
  },
69
- "gitHead": "0cebde0166c104e3c08cc05d2c03d9defc7eca26"
70
+ "gitHead": "85fa1fcdfb2d516a201ecf31da242e64b5b3274e"
70
71
  }
@@ -50,9 +50,6 @@ const reducers = {
50
50
  // code
51
51
  instantUpdate: false,
52
52
  autoReload: false,
53
- // if set to true, will overwrite existing code with the converted imput
54
- // if set to false, will create a script with an import of the input
55
- convertSupportedTypes: false,
56
53
  // parameters
57
54
  parameterDefinitions: [],
58
55
  parameterValues: {},
@@ -38,20 +38,6 @@ const options = (state, i18n) => {
38
38
  </label>
39
39
  </fieldset>
40
40
 
41
- <fieldset>
42
- <legend> <h3> ${i18n`Storage`} </h3> </legend>
43
- <label>${i18n`settings storage path`} ${i18n`not settable`}
44
- <input type='text' disabled value='${state.storage.path}' disabled />
45
- </label>
46
- </fieldset>
47
-
48
- <fieldset>
49
- <legend> <h3> ${i18n`File Handling`} </h3> </legend>
50
- <label>${i18n`enable conversion to scripts`}
51
- <input type='checkbox' checked=false id='design-convertSupportedTypes' checked=${state.design.convertSupportedTypes}/>
52
- </label>
53
- </fieldset>
54
-
55
41
  ${shortcuts}
56
42
 
57
43
  </section>`
@@ -6,13 +6,13 @@ const toolbar = (state, i18n) => {
6
6
  const helpIcon = html`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-help-circle"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12" y2="17"/></svg>`
7
7
 
8
8
  return html`<span id='toolbar'>
9
- <button id='toggleOptions'>
9
+ <button id='toggleOptions' aria-label='options'>
10
10
  ${optionsIcon}
11
11
  </button>
12
- <button id='toggleEditor'>
12
+ <button id='toggleEditor' aria-label='editor'>
13
13
  ${editorIcon}
14
14
  </button>
15
- <button id='toggleHelp'>
15
+ <button id='toggleHelp' aria-label='help'>
16
16
  ${helpIcon}
17
17
  </button>
18
18
  </span>`
package/css/big.css DELETED
@@ -1,107 +0,0 @@
1
- /*
2
- * min.css for OpenJSCAD.org viewer
3
- */
4
-
5
- .jscad-container {
6
- margin: 5px 15px 5px 5px; /* not inherited */
7
- padding: 20px; /* not inherited */
8
- color: Black;
9
- font-weight: bold;
10
- font-family: Helvetica, Arial, Sans;
11
- border: thin solid black;
12
- min-width: 410px;
13
- }
14
-
15
- #header {
16
- margin: 5px; /* not inherited */
17
- }
18
-
19
- #viewerContext {
20
- margin: 5px; /* not inherited */
21
- border: thin solid gray; /* not inherited */
22
- padding: 0px; /* not inherited */
23
-
24
- background: white;
25
- width: 1200px;
26
- height: 900px;
27
-
28
- top: 0px;
29
- bottom: 0px;
30
- }
31
-
32
- canvas {
33
- margin: 0px; /* not inherited */
34
- border: 0px none gray; /* not inherited */
35
- padding: 0px; /* not inherited */
36
-
37
- width: 100%;
38
- height: 100%;
39
-
40
- cursor: move;
41
- }
42
-
43
- #parametersdiv {
44
- margin: 5px; /* not inherited */
45
- border: thin solid rgb(200,200,200);
46
- border-radius: 1em;
47
- padding: 10px;
48
-
49
- background: white;
50
- opacity: 0.8;
51
- }
52
-
53
- #parametersdiv table {
54
- margin-bottom: 5px;
55
-
56
- text-align: left;
57
- font-size: 0.8em;
58
- font-weight: normal;
59
- }
60
-
61
- #parametersdiv th {
62
- margin: 0px; /* not inherited */
63
- border: 0px none gray; /* not inherited */
64
- padding: 5px; /* not inherited */
65
-
66
- font-weight: bold;
67
- }
68
-
69
- #parametersdiv th.caption {
70
- text-decoration: underline;
71
- }
72
-
73
- #parametersdiv td.caption {
74
- text-align: right;
75
- font-weight: bold;
76
- }
77
-
78
- #parametersdiv td {
79
- margin: 0px; /* not inherited */
80
- border: 0px none gray; /* not inherited */
81
- padding: 0px; /* not inherited */
82
- }
83
-
84
- #parametersdiv input, #parametersdiv textarea, #parametersdiv select {
85
- font-size: 0.9em;
86
- background: #fea;
87
- border: none;
88
- }
89
-
90
- #updateButton {
91
- margin: 5px; /* not inherited */
92
- border: thin solid Black; /* not inherited */
93
- padding: 2px; /* not inherited */
94
- border-radius: 4px;
95
- background: white;
96
-
97
- margin-left: 1em;
98
- }
99
-
100
- #tail {
101
- margin: 5px; /* not inherited */
102
- }
103
-
104
- #busy {
105
- vertical-align: middle;
106
- }
107
-
package/css/min.css DELETED
@@ -1,107 +0,0 @@
1
- /*
2
- * min.css for OpenJSCAD.org viewer
3
- */
4
-
5
- .jscad-container {
6
- margin: 5px 15px 5px 5px; /* not inherited */
7
- padding: 20px; /* not inherited */
8
- color: Black;
9
- font-weight: bold;
10
- font-family: Helvetica, Arial, Sans;
11
- border: thin solid black;
12
- min-width: 410px;
13
- }
14
-
15
- #header {
16
- margin: 5px; /* not inherited */
17
- }
18
-
19
- #viewerContext {
20
- margin: 5px; /* not inherited */
21
- border: thin solid gray; /* not inherited */
22
- padding: 0px; /* not inherited */
23
-
24
- background: white;
25
- width: 400px;
26
- height: 300px;
27
-
28
- top: 0px;
29
- bottom: 0px;
30
- }
31
-
32
- canvas {
33
- margin: 0px; /* not inherited */
34
- border: 0px none gray; /* not inherited */
35
- padding: 0px; /* not inherited */
36
-
37
- width: 100%;
38
- height: 100%;
39
-
40
- cursor: move;
41
- }
42
-
43
- #parametersdiv {
44
- margin: 5px; /* not inherited */
45
- border: thin solid rgb(200,200,200);
46
- border-radius: 1em;
47
- padding: 10px;
48
-
49
- background: white;
50
- opacity: 0.8;
51
- }
52
-
53
- #parametersdiv table {
54
- margin-bottom: 5px;
55
-
56
- text-align: left;
57
- font-size: 0.8em;
58
- font-weight: normal;
59
- }
60
-
61
- #parametersdiv th {
62
- margin: 0px; /* not inherited */
63
- border: 0px none gray; /* not inherited */
64
- padding: 5px; /* not inherited */
65
-
66
- font-weight: bold;
67
- }
68
-
69
- #parametersdiv th.caption {
70
- text-decoration: underline;
71
- }
72
-
73
- #parametersdiv td.caption {
74
- text-align: right;
75
- font-weight: bold;
76
- }
77
-
78
- #parametersdiv td {
79
- margin: 0px; /* not inherited */
80
- border: 0px none gray; /* not inherited */
81
- padding: 0px; /* not inherited */
82
- }
83
-
84
- #parametersdiv input, #parametersdiv textarea, #parametersdiv select {
85
- font-size: 0.9em;
86
- background: #fea;
87
- border: none;
88
- }
89
-
90
- #updateButton {
91
- margin: 5px; /* not inherited */
92
- border: thin solid Black; /* not inherited */
93
- padding: 2px; /* not inherited */
94
- border-radius: 4px;
95
- background: white;
96
-
97
- margin-left: 1em;
98
- }
99
-
100
- #tail {
101
- margin: 5px; /* not inherited */
102
- }
103
-
104
- #busy {
105
- vertical-align: middle;
106
- }
107
-
package/css/openjscad.css DELETED
@@ -1,135 +0,0 @@
1
- /* openjscad.css, originally written by Joost Nieuwenhuijse
2
- * few changes made by Rene K. Mueller for OpenSCAD.org
3
- */
4
-
5
- #filedropzone {
6
- border: 2px dashed #bbb;
7
- -moz-border-radius: 5px;
8
- -webkit-border-radius: 5px;
9
- border-radius: 5px;
10
-
11
- padding: 15px;
12
- color: black;
13
- width: 100%;
14
- background: #fff;
15
- margin-top: 0.5em;
16
- }
17
-
18
- #filedropzone_empty {
19
- text-align: center;
20
- color: #888;
21
- }
22
-
23
- #filedropzone_filled {
24
- color: black;
25
- display: none;
26
- }
27
-
28
- #filebuttons {
29
- /* float: right; */
30
- margin-left: 2em;
31
- display: inline;
32
- }
33
-
34
- canvas {
35
- cursor: move;
36
- }
37
-
38
- .downloadOutputFileLink {
39
- padding: 2px;
40
- padding-left: 8px;
41
- padding-right: 8px;
42
- border: 1px solid black;
43
-
44
- border-radius: 4px; /* css mess */
45
- -webkit-border-radius: 4px;
46
- -moz-border-radius: 4px;
47
-
48
- background: #d8f;
49
- background: -webkit-gradient(linear, left top, left bottom, from(#eaf), to(#c6f));
50
- background: -moz-linear-gradient(top, #eaf, #c6f);
51
-
52
- text-decoration: none;
53
- color: black;
54
- font-size: 0.9em;
55
- font-weight: bold;
56
- box-shadow: 0px 0px 8px black;
57
- }
58
-
59
- #parametersdiv {
60
- /* display: inline-block; ineffective since we do control in openjscad.js */
61
- position: absolute;
62
-
63
- bottom: 9em; /* draggable via jQuery cannot move bottom: align, stick at the bottom (bug!!) */
64
- left: 1em;
65
- /* top: 2em; if draggable, but must be left/top oriented, cannot be aligned bottom which looks nicer
66
- left: 16em;
67
- */
68
-
69
- z-index: 4;
70
- border: 1px solid rgb(200,200,200);
71
-
72
- border-radius: 5px;
73
- -moz-border-radius: 5px; /* css mess */
74
- -webkit-border-radius: 5px;
75
-
76
- margin: 5px 0px 5px 0px;
77
- padding: 10px;
78
- background: #fff; /* rgba(255,255,255,0.7); */
79
- opacity: 0.8;
80
-
81
- /* box-shadow: 0px 0px 15px black; no shadow, it would indicate moveable/dragable */
82
-
83
- /* cursor: move; moveable now */
84
- }
85
- #parametersdiv th {
86
- text-align: left;
87
- font-size: 1em;
88
- font-weight: bold;
89
- }
90
- #parametersdiv td {
91
- text-align: right;
92
- font-size: 0.8em;
93
- }
94
- #parametersdiv input, #parametersdiv textarea, #parametersdiv select {
95
- font-size: 0.9em;
96
- background: #fea;
97
- border: none;
98
- }
99
-
100
- #instantUpdate {
101
- margin-left: 1em;
102
- }
103
- #instantUpdateLabel {
104
- font-size: 0.9em;
105
- }
106
-
107
- #statusdiv {
108
- }
109
- #statusspan {
110
- margin-right: 2em;
111
- }
112
- #statusbuttons {
113
- float: right;
114
- }
115
-
116
- #selectdiv {
117
- position: fixed;
118
- top: 0.5em;
119
- right: 0.5em;
120
-
121
- z-index: 4;
122
- background: transparent;
123
- opacity: 0.8;
124
- border: none;
125
- display: inline;
126
- }
127
- #startRange {
128
- margin: 2px;
129
- padding: 2px;
130
- }
131
- #endRange {
132
- margin: 2px;
133
- padding: 2px;
134
- }
135
-