@jscad/web 2.5.4 → 2.5.8

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 CHANGED
@@ -3,6 +3,44 @@
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.8](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.7...@jscad/web@2.5.8) (2022-04-03)
7
+
8
+ **Note:** Version bump only for package @jscad/web
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.5.7](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.6...@jscad/web@2.5.7) (2022-04-03)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **web:** editor styling and example loading fixes ([#1031](https://github.com/jscad/OpenJSCAD.org/issues/1031)) ([4f811a2](https://github.com/jscad/OpenJSCAD.org/commit/4f811a27c0cbb7caabf28fcef932cbaf19aaa6f4))
20
+
21
+
22
+
23
+
24
+
25
+ ## [2.5.6](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.5...@jscad/web@2.5.6) (2022-03-13)
26
+
27
+ **Note:** Version bump only for package @jscad/web
28
+
29
+
30
+
31
+
32
+
33
+ ## [2.5.5](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.4...@jscad/web@2.5.5) (2022-03-06)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **web:** corrected uncaught type trror in viewer [#999](https://github.com/jscad/OpenJSCAD.org/issues/999) ([#1002](https://github.com/jscad/OpenJSCAD.org/issues/1002)) ([96ff951](https://github.com/jscad/OpenJSCAD.org/commit/96ff951f7d846bcfc10847dc028309f8f938df5e))
39
+
40
+
41
+
42
+
43
+
6
44
  ## [2.5.4](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/web@2.5.3...@jscad/web@2.5.4) (2022-02-19)
7
45
 
8
46
 
@@ -60,20 +60,13 @@
60
60
  .cm-fat-cursor div.CodeMirror-cursors {
61
61
  z-index: 1;
62
62
  }
63
- .cm-fat-cursor-mark {
64
- background-color: rgba(20, 255, 20, 0.5);
65
- -webkit-animation: blink 1.06s steps(1) infinite;
66
- -moz-animation: blink 1.06s steps(1) infinite;
67
- animation: blink 1.06s steps(1) infinite;
68
- }
69
- .cm-animate-fat-cursor {
70
- width: auto;
71
- border: 0;
72
- -webkit-animation: blink 1.06s steps(1) infinite;
73
- -moz-animation: blink 1.06s steps(1) infinite;
74
- animation: blink 1.06s steps(1) infinite;
75
- background-color: #7e7;
76
- }
63
+ .cm-fat-cursor .CodeMirror-line::selection,
64
+ .cm-fat-cursor .CodeMirror-line > span::selection,
65
+ .cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }
66
+ .cm-fat-cursor .CodeMirror-line::-moz-selection,
67
+ .cm-fat-cursor .CodeMirror-line > span::-moz-selection,
68
+ .cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }
69
+ .cm-fat-cursor { caret-color: transparent; }
77
70
  @-moz-keyframes blink {
78
71
  0% {}
79
72
  50% { background-color: transparent; }
@@ -171,6 +164,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
171
164
  height: 100%;
172
165
  outline: none; /* Prevent dragging from highlighting the element */
173
166
  position: relative;
167
+ z-index: 0;
174
168
  }
175
169
  .CodeMirror-sizer {
176
170
  position: relative;
@@ -184,6 +178,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
184
178
  position: absolute;
185
179
  z-index: 6;
186
180
  display: none;
181
+ outline: none;
187
182
  }
188
183
  .CodeMirror-vscrollbar {
189
184
  right: 0; top: 0;
@@ -346,4 +341,4 @@ div.CodeMirror-dragcursors {
346
341
  .cm-tab-wrap-hack:after { content: ''; }
347
342
 
348
343
  /* Help users use markselection to safely style text background */
349
- span.CodeMirror-selectedtext { background: none; }
344
+ span.CodeMirror-selectedtext { background: none; }
package/css/demo.css CHANGED
@@ -253,7 +253,7 @@ h3 {
253
253
  section {
254
254
  padding: 20px;
255
255
  box-shadow: 5px 5px 7px 2px rgba(0, 0, 0, 0.17);
256
- overflow: scroll;
256
+ overflow: auto;
257
257
  color: var(--main-text-color);
258
258
  z-index: 10;
259
259
  border: 1px solid #aaa;
package/css/style.css CHANGED
@@ -36,35 +36,6 @@ a:visited {
36
36
  z-index: 20;
37
37
  }
38
38
 
39
- #editFrame {
40
- /* display: none; */
41
-
42
- margin: 0;
43
- position: absolute;
44
- top: 0;
45
- bottom: 0;
46
- /* left: 0; */
47
- right: 0;
48
-
49
- width: 40%;
50
- font-weight: normal;
51
- }
52
-
53
- #editHandle {
54
- left: -25px;
55
- top: 45%;
56
- position: absolute;
57
- z-index: 6;
58
- opacity: 0.9;
59
- }
60
-
61
- #editFrame {
62
- transition: width 0.4s;
63
- -o-transition: width 0.4s;
64
- -moz-transition: width 0.4s;
65
- -webkit-transition: width 0.4s;
66
- }
67
-
68
39
  .ace_gutter {
69
40
  border-left: 1px solid #ccc;
70
41
  background: transparent !important;
@@ -127,20 +98,6 @@ canvas {
127
98
  z-index: 100;
128
99
  }
129
100
 
130
- .okButton {
131
- border: 2px solid #808080;
132
- border-radius: 4px;
133
- padding: 0.5em;
134
- padding-left: 2em;
135
- padding-right: 2em;
136
- margin-top: 3em;
137
- background: #eee;
138
- }
139
-
140
- .okButton:hover {
141
- background: #ccc;
142
- }
143
-
144
101
  #footer {
145
102
  font-size: 0.7em;
146
103
  text-align: left;
@@ -197,13 +154,6 @@ canvas {
197
154
  left: 0;
198
155
  }
199
156
 
200
- #menuHandle {
201
- right: -25px;
202
- top: 45%;
203
- position: absolute;
204
- z-index: 6;
205
- }
206
-
207
157
  #menu nav {
208
158
  position: relative;
209
159
  top: 50px;
@@ -245,34 +195,6 @@ canvas {
245
195
  font-size: 0.6em;
246
196
  }
247
197
 
248
- .info .infoView {
249
- text-align: center;
250
- font-weight: bold;
251
- color: #444;
252
- background: rgba(0,0,0,0.1);
253
- }
254
-
255
- .info .infoOperation {
256
- font-weight: bold;
257
- color: #602080;
258
- }
259
-
260
- .info .infoKey {
261
- font-weight: bold;
262
- color: #808080;
263
- }
264
-
265
- #menuVersion {
266
- text-align: center;
267
- font-size: 0.6em;
268
- color: #666;
269
- }
270
-
271
- .menuSubInfo {
272
- font-size: 0.6em;
273
- color: #666;
274
- }
275
-
276
198
  #examples {
277
199
  /* width: 60em; */
278
200
  width: auto;
@@ -294,16 +216,6 @@ canvas {
294
216
  list-style-type: none;
295
217
  }
296
218
 
297
- #examplesHandle {
298
- bottom: 0px;
299
- left: 45%;
300
- position: relative;
301
- z-index: 10;
302
- }
303
-
304
- .examplesSeparator {
305
- }
306
-
307
219
  #options {
308
220
  width: auto;
309
221
  z-index: 12;
@@ -317,44 +229,8 @@ canvas {
317
229
  font-size: 0.8em;
318
230
  }
319
231
 
320
- .optionGroup {
321
- border: 1px solid #ccc;
322
- border-radius: 5px;
323
- padding: 0.5em;
324
- margin: 0.5em;
325
- background: white;
326
- }
327
-
328
- .optionGroup input, .optionGroup select {
329
- background: #fea;
330
- border: none;
331
- }
332
-
333
- .optionInfo {
334
- font-size: 0.8em;
335
- color: #888;
336
- }
337
-
338
232
  /* arrows */
339
233
 
340
- .shift-scene {
341
- position: absolute;
342
- left: 50%;
343
- top: 50%;
344
- border-radius: 50%;
345
- border: 5px dotted #999;
346
- width: 160px;
347
- height: 160px;
348
- margin-top: -80px;
349
- margin-left: -80px;
350
- background: transparent;
351
- cursor: move;
352
- opacity: 0.8;
353
- display: none;
354
- }
355
- .shift-scene.active {
356
- display: block;
357
- }
358
234
  .arrow {
359
235
  width: 0px;
360
236
  height: 0px;
package/demo.html CHANGED
@@ -6,7 +6,6 @@
6
6
  <title>JSCAD.xyz</title>
7
7
 
8
8
  <link rel="stylesheet" type="text/css" href="./css/demo.css">
9
- <link rel="stylesheet" type="text/css" href="./css/editor.css">
10
9
  <link rel="shortcut icon" href="imgs/favicon.png" type="image/x-png">
11
10
  <style>
12
11
  body{