@jscad/web 2.4.3 → 2.5.2

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/locales/ja.json CHANGED
@@ -12,13 +12,13 @@
12
12
 
13
13
  "Generation":"Geometry Generation",
14
14
  "enable geometry caching":"experimental geometry caching",
15
- "timeout for generation":"timeout for solids generation",
15
+ "timeout for generation":"図形の生成タイムアウト",
16
16
 
17
17
  "Storage": "ストレージ",
18
18
  "settings storage path":"ストレージ パス",
19
19
 
20
20
  "File Handling":"ファイル処理",
21
- "enable conversion to scripts":"Convert external formats to JSCAD scripts",
21
+ "enable conversion to scripts":"外部形式をスクリプトに変換",
22
22
 
23
23
  "Shortcuts":"キーボード ショートカット",
24
24
 
@@ -27,7 +27,7 @@
27
27
  "When":"場合",
28
28
  "type and hit enter":"type and hit enter",
29
29
 
30
- "not settable":"(not settable)",
30
+ "not settable":"(変更不可)",
31
31
  "see":"see",
32
32
 
33
33
  "grid":"グリッド",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscad/web",
3
- "version": "2.4.3",
3
+ "version": "2.5.2",
4
4
  "description": "Web Application for JSCAD",
5
5
  "repository": "https://github.com/jscad/OpenJSCAD.org",
6
6
  "main": "src/index.js",
@@ -34,13 +34,12 @@
34
34
  ],
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
- "@jscad/array-utils": "2.1.0",
38
- "@jscad/core": "2.3.8",
37
+ "@jscad/array-utils": "2.1.1",
38
+ "@jscad/core": "2.5.2",
39
39
  "@jscad/examples": "2.3.1",
40
- "@jscad/io": "2.0.9",
41
- "@jscad/modeling": "2.5.3",
42
- "@jscad/regl-renderer": "2.4.1",
43
- "@jscad/vtree": "2.0.9",
40
+ "@jscad/io": "2.2.2",
41
+ "@jscad/modeling": "2.7.1",
42
+ "@jscad/regl-renderer": "2.5.3",
44
43
  "@most/create": "2.0.1",
45
44
  "brace": "0.11.1",
46
45
  "codemirror": "5.57.0",
@@ -67,5 +66,5 @@
67
66
  "url": "https://opencollective.com/openjscad",
68
67
  "logo": "https://opencollective.com/openjscad/logo.txt"
69
68
  },
70
- "gitHead": "0bfbc72afe89ef8dc4f332acf55858831f173d6e"
69
+ "gitHead": "c8ac21281a7acf5a5575b940c18353c598ffa1a4"
71
70
  }
package/postInstall.js CHANGED
@@ -6,6 +6,8 @@ const fs = require('fs')
6
6
  const DocBlock = require('docblock')
7
7
  const docBlock = new DocBlock()
8
8
 
9
+ const ignoreExamples = {Imports:1, Projects:1}
10
+
9
11
  const copyAndProcessExamples = (examplesSrc) => {
10
12
  const examples = { 'Creating Shapes': [], 'Manipulating Shapes': [], Colors: [], Parameters: [], Other: [] }
11
13
  const examplesDist = 'examples'
@@ -39,6 +41,12 @@ const processExamplesFile = (filePath, examples) => {
39
41
  const result = docBlock.parse(fs.readFileSync(filePath), 'js')
40
42
  if (result.length) {
41
43
  const category = result[0].tags.category
44
+
45
+ if(category in ignoreExamples){
46
+ console.log(`Ignoring example ${filePath}`);
47
+ return
48
+ }
49
+
42
50
  const title = result[0].title
43
51
  const description = result[0].description
44
52
  const sort = parseInt(result[0].tags.skillLevel)
@@ -33,9 +33,6 @@ const options = (state, i18n) => {
33
33
 
34
34
  <fieldset>
35
35
  <legend> <h3> ${i18n`Generation`}</h3> </legend>
36
- <label>${i18n`enable geometry caching`} ${i18n`see`} <a href='https://github.com/jscad/jscad-desktop#geometry-caching' target="_blank">docs</a>
37
- <input id='toggleVtreeMode' type='checkbox' checked=${state.design.vtreeMode}/>
38
- </label>
39
36
  <label>${i18n`timeout for generation`}
40
37
  <input id='solidsTimeout' type='number' min=0 max=200000 value=${state.design.solidsTimeOut} />
41
38
  </label>
@@ -232,11 +232,9 @@ const setup = (element) => {
232
232
  entities: []
233
233
  }
234
234
  if (type === 'webgl') {
235
- if (!gl.getExtension('OES_element_index_uint')) {
236
- error = 'Your browser uses an old version of WebGL without OES_element_index_uint. Please upgrade your browser to use this application'
235
+ if (gl.getExtension('OES_element_index_uint')) {
236
+ viewerOptions.glOptions.optionalExtensions = ['oes_element_index_uint']
237
237
  }
238
-
239
- viewerOptions.glOptions.optionalExtensions = ['oes_element_index_uint']
240
238
  }
241
239
  return { viewerOptions, camera, error }
242
240
  }