nadesiko3 3.2.52 → 3.3.3

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.
Files changed (178) hide show
  1. package/README.md +1 -1
  2. package/bin/cnako3 +1 -1
  3. package/bin/cnako3.bat +1 -1
  4. package/demo/browsers.html +9 -10
  5. package/demo/flow.html +1 -0
  6. package/demo/runscript3.html +35 -0
  7. package/demo/turtle3.html +18 -17
  8. package/demo/turtle3d.html +1 -1
  9. package/demo/turtle3d2.html +1 -1
  10. package/doc/browsers.md +9 -10
  11. package/package.json +58 -57
  12. package/release/_hash.txt +57 -52
  13. package/release/_script-tags.txt +14 -13
  14. package/release/command.json +1 -1
  15. package/release/command.json.js +1 -1
  16. package/release/command_cnako3.json +1 -1
  17. package/release/command_list.json +1 -1
  18. package/release/editor.js +1 -1
  19. package/release/editor.js.LICENSE.txt +9 -12
  20. package/release/nako_gen_async.js +1 -1
  21. package/release/nako_gen_async.js.LICENSE.txt +10 -666
  22. package/release/plugin_caniuse.js +1 -1
  23. package/release/plugin_caniuse.js.LICENSE.txt +9 -425
  24. package/release/plugin_csv.js +1 -1
  25. package/release/plugin_csv.js.LICENSE.txt +3 -419
  26. package/release/plugin_datetime.js +1 -1
  27. package/release/plugin_datetime.js.LICENSE.txt +6 -530
  28. package/release/plugin_kansuji.js +1 -1
  29. package/release/plugin_kansuji.js.LICENSE.txt +3 -559
  30. package/release/plugin_markup.js +1 -1
  31. package/release/plugin_markup.js.LICENSE.txt +4 -420
  32. package/release/plugin_turtle.js +1 -1
  33. package/release/plugin_turtle.js.LICENSE.txt +12 -500
  34. package/release/plugin_webworker.js +1 -1
  35. package/release/plugin_webworker.js.LICENSE.txt +3 -563
  36. package/release/plugin_weykturtle3d.js +1 -0
  37. package/release/plugin_weykturtle3d.js.LICENSE.txt +3 -0
  38. package/release/stats.json +1 -1
  39. package/release/version.js +1 -1
  40. package/release/version.js.LICENSE.txt +9 -12
  41. package/release/wnako3.js +1 -1
  42. package/release/wnako3.js.LICENSE.txt +1 -1
  43. package/release/wnako3webworker.js +1 -1
  44. package/release/wnako3webworker.js.LICENSE.txt +1 -1117
  45. package/src/browsers.mjs +1 -0
  46. package/src/browsers.txt +15 -15
  47. package/src/browsers_agents.mjs +1 -0
  48. package/src/cnako3.mjs +13 -0
  49. package/src/{cnako3.js → cnako3mod.mjs} +119 -101
  50. package/src/{commander_ja.js → commander_ja.mjs} +16 -11
  51. package/src/{enako3.js → enako3.mjs} +0 -0
  52. package/src/{era.json → era.mjs} +1 -1
  53. package/src/image_turtle-elephant.mjs +5 -0
  54. package/src/image_turtle-panda.mjs +5 -0
  55. package/src/image_turtle64.mjs +5 -0
  56. package/src/index.mjs +9 -0
  57. package/src/{nako3.js → nako3.mjs} +69 -57
  58. package/src/{nako3_assert.js → nako3_assert.mjs} +7 -6
  59. package/src/{nako3server.js → nako3server.mjs} +12 -5
  60. package/src/{nako_colors.js → nako_colors.mjs} +1 -1
  61. package/src/{nako_errors.js → nako_errors.mjs} +10 -20
  62. package/src/{nako_from_dncl.js → nako_from_dncl.mjs} +11 -8
  63. package/src/{nako_gen.js → nako_gen.mjs} +93 -87
  64. package/src/{nako_gen_async.js → nako_gen_async.mjs} +5 -8
  65. package/src/{nako_global.js → nako_global.mjs} +4 -5
  66. package/src/{nako_indent.js → nako_indent.mjs} +29 -25
  67. package/src/{nako_josi_list.js → nako_josi_list.mjs} +16 -14
  68. package/src/nako_lex_rules.mjs +244 -0
  69. package/src/{nako_lexer.js → nako_lexer.mjs} +7 -10
  70. package/src/{nako_logger.js → nako_logger.mjs} +3 -4
  71. package/src/{nako_parser3.js → nako_parser3.mjs} +5 -5
  72. package/src/{nako_parser_base.js → nako_parser_base.mjs} +1 -9
  73. package/src/{nako_parser_const.js → nako_parser_const.mjs} +2 -6
  74. package/src/{nako_prepare.js → nako_prepare.mjs} +46 -8
  75. package/src/{nako_reserved_words.js → nako_reserved_words.mjs} +1 -1
  76. package/src/{nako_source_mapping.js → nako_source_mapping.mjs} +4 -11
  77. package/src/{nako_test.js → nako_test.mjs} +0 -0
  78. package/src/nako_version.mjs +7 -0
  79. package/src/{plugin_browser.js → plugin_browser.mjs} +30 -30
  80. package/src/{plugin_browser_ajax.js → plugin_browser_ajax.mjs} +7 -7
  81. package/src/{plugin_browser_audio.js → plugin_browser_audio.mjs} +1 -1
  82. package/src/{plugin_browser_canvas.js → plugin_browser_canvas.mjs} +1 -1
  83. package/src/{plugin_browser_chart.js → plugin_browser_chart.mjs} +1 -1
  84. package/src/{plugin_browser_color.js → plugin_browser_color.mjs} +1 -1
  85. package/src/{plugin_browser_crypto.js → plugin_browser_crypto.mjs} +1 -1
  86. package/src/{plugin_browser_dialog.js → plugin_browser_dialog.mjs} +1 -1
  87. package/src/{plugin_browser_dom_basic.js → plugin_browser_dom_basic.mjs} +1 -1
  88. package/src/{plugin_browser_dom_event.js → plugin_browser_dom_event.mjs} +1 -1
  89. package/src/{plugin_browser_dom_parts.js → plugin_browser_dom_parts.mjs} +1 -1
  90. package/src/{plugin_browser_geolocation.js → plugin_browser_geolocation.mjs} +1 -1
  91. package/src/{plugin_browser_hotkey.js → plugin_browser_hotkey.mjs} +2 -2
  92. package/src/{plugin_browser_html.js → plugin_browser_html.mjs} +1 -1
  93. package/src/{plugin_browser_in_worker.js → plugin_browser_in_worker.mjs} +4 -4
  94. package/src/{plugin_browser_location.js → plugin_browser_location.mjs} +1 -1
  95. package/src/{plugin_browser_speech.js → plugin_browser_speech.mjs} +1 -1
  96. package/src/{plugin_browser_storage.js → plugin_browser_storage.mjs} +1 -1
  97. package/src/{plugin_browser_system.js → plugin_browser_system.mjs} +1 -1
  98. package/src/{plugin_browser_websocket.js → plugin_browser_websocket.mjs} +1 -1
  99. package/src/{plugin_caniuse.js → plugin_caniuse.mjs} +8 -3
  100. package/src/{plugin_csv.js → plugin_csv.mjs} +4 -5
  101. package/src/{plugin_datetime.js → plugin_datetime.mjs} +19 -26
  102. package/src/{plugin_express.js → plugin_express.mjs} +4 -3
  103. package/src/{plugin_kansuji.js → plugin_kansuji.mjs} +1 -1
  104. package/src/{plugin_keigo.js → plugin_keigo.mjs} +1 -1
  105. package/src/{plugin_markup.js → plugin_markup.mjs} +6 -6
  106. package/src/{plugin_math.js → plugin_math.mjs} +1 -4
  107. package/src/{plugin_node.js → plugin_node.mjs} +25 -57
  108. package/src/{plugin_promise.js → plugin_promise.mjs} +1 -3
  109. package/src/{plugin_system.js → plugin_system.mjs} +32 -15
  110. package/src/{plugin_test.js → plugin_test.mjs} +1 -3
  111. package/src/{plugin_turtle.js → plugin_turtle.mjs} +5 -4
  112. package/src/{plugin_webworker.js → plugin_webworker.mjs} +3 -3
  113. package/src/{plugin_weykturtle3d.js → plugin_weykturtle3d.mjs} +1 -3
  114. package/src/{plugin_worker.js → plugin_worker.mjs} +4 -1
  115. package/src/{wnako3.js → wnako3.mjs} +24 -14
  116. package/src/{wnako3_editor.js → wnako3_editor.mjs} +28 -22
  117. package/src/{wnako3webworker.js → wnako3webworker.mjs} +0 -0
  118. package/test/async/{async_basic_test.js → async_basic_test.mjs} +3 -4
  119. package/test/browser/karma.config.js +9 -0
  120. package/test/browser/test/plugin_browser_test.js +2 -2
  121. package/test/browser/test/plugin_turtle_test.js +2 -2
  122. package/test/browser/test/plugin_webworker_test.js +3 -3
  123. package/test/browser/test/require_test.js +2 -2
  124. package/test/common/{array_test.js → array_test.mjs} +3 -3
  125. package/test/common/{basic_test.js → basic_test.mjs} +3 -13
  126. package/test/common/{calc_test.js → calc_test.mjs} +2 -2
  127. package/test/common/{debug_test.js → debug_test.mjs} +2 -2
  128. package/test/common/{dncl_test.js → dncl_test.mjs} +3 -3
  129. package/test/common/{error_test.js → error_test.mjs} +2 -2
  130. package/test/common/{flow_test.js → flow_test.mjs} +2 -2
  131. package/test/common/{func_call.js → func_call.mjs} +3 -3
  132. package/test/common/{func_test.js → func_test.mjs} +2 -2
  133. package/test/common/{indent_test.js → indent_test.mjs} +3 -2
  134. package/test/common/{lex_test.js → lex_test.mjs} +2 -2
  135. package/test/common/{literal_test.js → literal_test.mjs} +3 -2
  136. package/test/common/{nako_logger_test.js → nako_logger_test.mjs} +3 -3
  137. package/test/common/{plugin_browser_test.js → plugin_browser_test.mjs} +4 -4
  138. package/test/common/{plugin_browser_ut_audio_test.js → plugin_browser_ut_audio_test.mjs} +4 -4
  139. package/test/common/{plugin_browser_ut_color_test.js → plugin_browser_ut_color_test.mjs} +2 -2
  140. package/test/common/{plugin_browser_ut_dialog_test.js → plugin_browser_ut_dialog_test.mjs} +3 -3
  141. package/test/common/{plugin_browser_ut_html_test.js → plugin_browser_ut_html_test.mjs} +2 -2
  142. package/test/common/{plugin_browser_ut_system_test.js → plugin_browser_ut_system_test.mjs} +2 -2
  143. package/test/common/{plugin_csv_test.js → plugin_csv_test.mjs} +3 -3
  144. package/test/common/{plugin_datetime_test.js → plugin_datetime_test.mjs} +4 -4
  145. package/test/common/{plugin_kansuji_test.js → plugin_kansuji_test.mjs} +3 -3
  146. package/test/common/{plugin_markup_test.js → plugin_markup_test.mjs} +3 -3
  147. package/test/common/{plugin_promise_test.js → plugin_promise_test.mjs} +2 -2
  148. package/test/common/{plugin_system_test.js → plugin_system_test.mjs} +2 -2
  149. package/test/common/{prepare_test.js → prepare_test.mjs} +2 -2
  150. package/test/common/{re_test.js → re_test.mjs} +2 -2
  151. package/test/common/{variable_scope_test.js → variable_scope_test.mjs} +2 -2
  152. package/test/karma.config.js +3 -3
  153. package/test/node/{async_test.js → async_test.mjs} +4 -2
  154. package/test/node/{commander_ja_test.js → commander_ja_test.mjs} +17 -12
  155. package/test/node/{error_message_test.js → error_message_test.mjs} +13 -10
  156. package/test/node/node_test.mjs +57 -0
  157. package/test/node/{plugin_browser_ut_ajax_test.js → plugin_browser_ut_ajax_test.mjs} +7 -5
  158. package/test/node/{plugin_browser_ut_location_test.js → plugin_browser_ut_location_test.mjs} +3 -3
  159. package/test/node/{plugin_markup_test.js → plugin_markup_test.mjs} +6 -7
  160. package/test/node/{plugin_math_test.js → plugin_math_test.mjs} +5 -5
  161. package/test/node/{plugin_node_test.js → plugin_node_test.mjs} +11 -7
  162. package/test/node/{plugin_test.js → plugin_test.mjs} +11 -5
  163. package/test/node/{require_nako3_test.js → require_nako3_test.mjs} +19 -12
  164. package/test/node/{side_effects_test.js → side_effects_test.mjs} +24 -13
  165. package/test/node/{wnako3_editor_test.js → wnako3_editor_test.mjs} +16 -9
  166. package/tools/nako3edit/html/daisyui/LICENSE +22 -0
  167. package/tools/nako3edit/html/daisyui/full.css +1 -0
  168. package/tools/nako3edit/html/daisyui/tailwind.min.css +1 -0
  169. package/tools/nako3edit/html/daisyui/version_2.14.1 +1 -0
  170. package/tools/nako3edit/html/edit.html +104 -19
  171. package/tools/nako3edit/html/files.html +84 -8
  172. package/tools/nako3edit/html/nako3edit.css +6 -7
  173. package/tools/nako3edit/index.nako3 +45 -6
  174. package/tools/nako3edit/{run.js → run.mjs} +8 -2
  175. package/src/index.js +0 -5
  176. package/src/nako_lex_rules.js +0 -260
  177. package/src/nako_version.js +0 -8
  178. package/test/node/node_test.js +0 -43
@@ -1,563 +1,3 @@
1
- /*!*********************************!*\
2
- !*** ./src/plugin_webworker.js ***!
3
- \*********************************/
4
-
5
- /*!***********************************************!*\
6
- !*** ./node_modules/core-js/internals/uid.js ***!
7
- \***********************************************/
8
-
9
- /*!************************************************!*\
10
- !*** ./node_modules/core-js/internals/html.js ***!
11
- \************************************************/
12
-
13
- /*!************************************************!*\
14
- !*** ./node_modules/core-js/internals/path.js ***!
15
- \************************************************/
16
-
17
- /*!*************************************************!*\
18
- !*** ./node_modules/core-js/internals/fails.js ***!
19
- \*************************************************/
20
-
21
- /*!*************************************************!*\
22
- !*** ./node_modules/core-js/modules/web.url.js ***!
23
- \*************************************************/
24
-
25
- /*!**************************************************!*\
26
- !*** ./node_modules/core-js/internals/export.js ***!
27
- \**************************************************/
28
-
29
- /*!**************************************************!*\
30
- !*** ./node_modules/core-js/internals/global.js ***!
31
- \**************************************************/
32
-
33
- /*!**************************************************!*\
34
- !*** ./node_modules/core-js/internals/shared.js ***!
35
- \**************************************************/
36
-
37
- /*!***************************************************!*\
38
- !*** ./node_modules/core-js/internals/classof.js ***!
39
- \***************************************************/
40
-
41
- /*!***************************************************!*\
42
- !*** ./node_modules/core-js/internals/is-pure.js ***!
43
- \***************************************************/
44
-
45
- /*!***************************************************!*\
46
- !*** ./node_modules/core-js/modules/es.symbol.js ***!
47
- \***************************************************/
48
-
49
- /*!****************************************************!*\
50
- !*** ./node_modules/core-js/internals/is-array.js ***!
51
- \****************************************************/
52
-
53
- /*!****************************************************!*\
54
- !*** ./node_modules/core-js/internals/own-keys.js ***!
55
- \****************************************************/
56
-
57
- /*!****************************************************!*\
58
- !*** ./node_modules/core-js/internals/redefine.js ***!
59
- \****************************************************/
60
-
61
- /*!*****************************************************!*\
62
- !*** ./node_modules/core-js/internals/an-object.js ***!
63
- \*****************************************************/
64
-
65
- /*!*****************************************************!*\
66
- !*** ./node_modules/core-js/internals/is-forced.js ***!
67
- \*****************************************************/
68
-
69
- /*!*****************************************************!*\
70
- !*** ./node_modules/core-js/internals/is-object.js ***!
71
- \*****************************************************/
72
-
73
- /*!*****************************************************!*\
74
- !*** ./node_modules/core-js/internals/is-regexp.js ***!
75
- \*****************************************************/
76
-
77
- /*!*****************************************************!*\
78
- !*** ./node_modules/core-js/internals/is-symbol.js ***!
79
- \*****************************************************/
80
-
81
- /*!*****************************************************!*\
82
- !*** ./node_modules/core-js/internals/iterators.js ***!
83
- \*****************************************************/
84
-
85
- /*!*****************************************************!*\
86
- !*** ./node_modules/core-js/internals/to-length.js ***!
87
- \*****************************************************/
88
-
89
- /*!*****************************************************!*\
90
- !*** ./node_modules/core-js/internals/to-object.js ***!
91
- \*****************************************************/
92
-
93
- /*!*****************************************************!*\
94
- !*** ./node_modules/core-js/internals/to-string.js ***!
95
- \*****************************************************/
96
-
97
- /*!******************************************************!*\
98
- !*** ./node_modules/core-js/internals/a-callable.js ***!
99
- \******************************************************/
100
-
101
- /*!******************************************************!*\
102
- !*** ./node_modules/core-js/internals/array-from.js ***!
103
- \******************************************************/
104
-
105
- /*!******************************************************!*\
106
- !*** ./node_modules/core-js/internals/array-sort.js ***!
107
- \******************************************************/
108
-
109
- /*!******************************************************!*\
110
- !*** ./node_modules/core-js/internals/get-method.js ***!
111
- \******************************************************/
112
-
113
- /*!******************************************************!*\
114
- !*** ./node_modules/core-js/internals/native-url.js ***!
115
- \******************************************************/
116
-
117
- /*!******************************************************!*\
118
- !*** ./node_modules/core-js/internals/set-global.js ***!
119
- \******************************************************/
120
-
121
- /*!******************************************************!*\
122
- !*** ./node_modules/core-js/internals/shared-key.js ***!
123
- \******************************************************/
124
-
125
- /*!*******************************************************!*\
126
- !*** ./node_modules/core-js/internals/an-instance.js ***!
127
- \*******************************************************/
128
-
129
- /*!*******************************************************!*\
130
- !*** ./node_modules/core-js/internals/array-slice.js ***!
131
- \*******************************************************/
132
-
133
- /*!*******************************************************!*\
134
- !*** ./node_modules/core-js/internals/classof-raw.js ***!
135
- \*******************************************************/
136
-
137
- /*!*******************************************************!*\
138
- !*** ./node_modules/core-js/internals/descriptors.js ***!
139
- \*******************************************************/
140
-
141
- /*!*******************************************************!*\
142
- !*** ./node_modules/core-js/internals/hidden-keys.js ***!
143
- \*******************************************************/
144
-
145
- /*!*******************************************************!*\
146
- !*** ./node_modules/core-js/internals/is-callable.js ***!
147
- \*******************************************************/
148
-
149
- /*!*******************************************************!*\
150
- !*** ./node_modules/core-js/internals/object-keys.js ***!
151
- \*******************************************************/
152
-
153
- /*!*******************************************************!*\
154
- !*** ./node_modules/core-js/internals/regexp-exec.js ***!
155
- \*******************************************************/
156
-
157
- /*!*******************************************************!*\
158
- !*** ./node_modules/core-js/modules/es.array.join.js ***!
159
- \*******************************************************/
160
-
161
- /*!********************************************************!*\
162
- !*** ./node_modules/core-js/internals/get-built-in.js ***!
163
- \********************************************************/
164
-
165
- /*!********************************************************!*\
166
- !*** ./node_modules/core-js/internals/get-iterator.js ***!
167
- \********************************************************/
168
-
169
- /*!********************************************************!*\
170
- !*** ./node_modules/core-js/internals/redefine-all.js ***!
171
- \********************************************************/
172
-
173
- /*!********************************************************!*\
174
- !*** ./node_modules/core-js/internals/regexp-flags.js ***!
175
- \********************************************************/
176
-
177
- /*!********************************************************!*\
178
- !*** ./node_modules/core-js/internals/shared-store.js ***!
179
- \********************************************************/
180
-
181
- /*!********************************************************!*\
182
- !*** ./node_modules/core-js/internals/to-primitive.js ***!
183
- \********************************************************/
184
-
185
- /*!********************************************************!*\
186
- !*** ./node_modules/core-js/modules/es.array.slice.js ***!
187
- \********************************************************/
188
-
189
- /*!********************************************************!*\
190
- !*** ./node_modules/core-js/modules/es.regexp.exec.js ***!
191
- \********************************************************/
192
-
193
- /*!*********************************************************!*\
194
- !*** ./node_modules/core-js/internals/a-constructor.js ***!
195
- \*********************************************************/
196
-
197
- /*!*********************************************************!*\
198
- !*** ./node_modules/core-js/internals/dom-iterables.js ***!
199
- \*********************************************************/
200
-
201
- /*!*********************************************************!*\
202
- !*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
203
- \*********************************************************/
204
-
205
- /*!*********************************************************!*\
206
- !*** ./node_modules/core-js/internals/function-call.js ***!
207
- \*********************************************************/
208
-
209
- /*!*********************************************************!*\
210
- !*** ./node_modules/core-js/internals/function-name.js ***!
211
- \*********************************************************/
212
-
213
- /*!*********************************************************!*\
214
- !*** ./node_modules/core-js/internals/native-symbol.js ***!
215
- \*********************************************************/
216
-
217
- /*!*********************************************************!*\
218
- !*** ./node_modules/core-js/internals/object-assign.js ***!
219
- \*********************************************************/
220
-
221
- /*!*********************************************************!*\
222
- !*** ./node_modules/core-js/internals/object-create.js ***!
223
- \*********************************************************/
224
-
225
- /*!*********************************************************!*\
226
- !*** ./node_modules/core-js/internals/try-to-string.js ***!
227
- \*********************************************************/
228
-
229
- /*!*********************************************************!*\
230
- !*** ./node_modules/core-js/modules/es.array.concat.js ***!
231
- \*********************************************************/
232
-
233
- /*!*********************************************************!*\
234
- !*** ./node_modules/core-js/modules/es.string.split.js ***!
235
- \*********************************************************/
236
-
237
- /*!**********************************************************!*\
238
- !*** ./node_modules/core-js/internals/array-for-each.js ***!
239
- \**********************************************************/
240
-
241
- /*!**********************************************************!*\
242
- !*** ./node_modules/core-js/internals/array-includes.js ***!
243
- \**********************************************************/
244
-
245
- /*!**********************************************************!*\
246
- !*** ./node_modules/core-js/internals/function-apply.js ***!
247
- \**********************************************************/
248
-
249
- /*!**********************************************************!*\
250
- !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
251
- \**********************************************************/
252
-
253
- /*!**********************************************************!*\
254
- !*** ./node_modules/core-js/internals/indexed-object.js ***!
255
- \**********************************************************/
256
-
257
- /*!**********************************************************!*\
258
- !*** ./node_modules/core-js/internals/inspect-source.js ***!
259
- \**********************************************************/
260
-
261
- /*!**********************************************************!*\
262
- !*** ./node_modules/core-js/internals/internal-state.js ***!
263
- \**********************************************************/
264
-
265
- /*!**********************************************************!*\
266
- !*** ./node_modules/core-js/internals/is-constructor.js ***!
267
- \**********************************************************/
268
-
269
- /*!**********************************************************!*\
270
- !*** ./node_modules/core-js/internals/iterator-close.js ***!
271
- \**********************************************************/
272
-
273
- /*!**********************************************************!*\
274
- !*** ./node_modules/core-js/internals/iterators-core.js ***!
275
- \**********************************************************/
276
-
277
- /*!**********************************************************!*\
278
- !*** ./node_modules/core-js/modules/es.object.assign.js ***!
279
- \**********************************************************/
280
-
281
- /*!***********************************************************!*\
282
- !*** ./node_modules/core-js/internals/array-iteration.js ***!
283
- \***********************************************************/
284
-
285
- /*!***********************************************************!*\
286
- !*** ./node_modules/core-js/internals/create-property.js ***!
287
- \***********************************************************/
288
-
289
- /*!***********************************************************!*\
290
- !*** ./node_modules/core-js/internals/define-iterator.js ***!
291
- \***********************************************************/
292
-
293
- /*!***********************************************************!*\
294
- !*** ./node_modules/core-js/internals/native-weak-map.js ***!
295
- \***********************************************************/
296
-
297
- /*!***********************************************************!*\
298
- !*** ./node_modules/core-js/internals/to-property-key.js ***!
299
- \***********************************************************/
300
-
301
- /*!***********************************************************!*\
302
- !*** ./node_modules/core-js/modules/es.array.iterator.js ***!
303
- \***********************************************************/
304
-
305
- /*!************************************************************!*\
306
- !*** ./node_modules/core-js/internals/has-own-property.js ***!
307
- \************************************************************/
308
-
309
- /*!************************************************************!*\
310
- !*** ./node_modules/core-js/internals/object-to-string.js ***!
311
- \************************************************************/
312
-
313
- /*!************************************************************!*\
314
- !*** ./node_modules/core-js/internals/string-multibyte.js ***!
315
- \************************************************************/
316
-
317
- /*!************************************************************!*\
318
- !*** ./node_modules/core-js/modules/es.string.iterator.js ***!
319
- \************************************************************/
320
-
321
- /*!************************************************************!*\
322
- !*** ./node_modules/core-js/modules/es.symbol.iterator.js ***!
323
- \************************************************************/
324
-
325
- /*!*************************************************************!*\
326
- !*** ./node_modules/core-js/internals/engine-user-agent.js ***!
327
- \*************************************************************/
328
-
329
- /*!*************************************************************!*\
330
- !*** ./node_modules/core-js/internals/engine-v8-version.js ***!
331
- \*************************************************************/
332
-
333
- /*!*************************************************************!*\
334
- !*** ./node_modules/core-js/internals/set-to-string-tag.js ***!
335
- \*************************************************************/
336
-
337
- /*!*************************************************************!*\
338
- !*** ./node_modules/core-js/internals/to-absolute-index.js ***!
339
- \*************************************************************/
340
-
341
- /*!*************************************************************!*\
342
- !*** ./node_modules/core-js/internals/to-indexed-object.js ***!
343
- \*************************************************************/
344
-
345
- /*!*************************************************************!*\
346
- !*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***!
347
- \*************************************************************/
348
-
349
- /*!*************************************************************!*\
350
- !*** ./node_modules/core-js/internals/well-known-symbol.js ***!
351
- \*************************************************************/
352
-
353
- /*!*************************************************************!*\
354
- !*** ./node_modules/core-js/modules/es.object.to-string.js ***!
355
- \*************************************************************/
356
-
357
- /*!**************************************************************!*\
358
- !*** ./node_modules/core-js/internals/add-to-unscopables.js ***!
359
- \**************************************************************/
360
-
361
- /*!**************************************************************!*\
362
- !*** ./node_modules/core-js/internals/array-slice-simple.js ***!
363
- \**************************************************************/
364
-
365
- /*!***************************************************************!*\
366
- !*** ./node_modules/core-js/internals/get-iterator-method.js ***!
367
- \***************************************************************/
368
-
369
- /*!***************************************************************!*\
370
- !*** ./node_modules/core-js/internals/species-constructor.js ***!
371
- \***************************************************************/
372
-
373
- /*!***************************************************************!*\
374
- !*** ./node_modules/core-js/modules/es.symbol.description.js ***!
375
- \***************************************************************/
376
-
377
- /*!***************************************************************!*\
378
- !*** ./node_modules/core-js/modules/web.url-search-params.js ***!
379
- \***************************************************************/
380
-
381
- /*!****************************************************************!*\
382
- !*** ./node_modules/core-js/internals/a-possible-prototype.js ***!
383
- \****************************************************************/
384
-
385
- /*!****************************************************************!*\
386
- !*** ./node_modules/core-js/internals/advance-string-index.js ***!
387
- \****************************************************************/
388
-
389
- /*!****************************************************************!*\
390
- !*** ./node_modules/core-js/internals/array-species-create.js ***!
391
- \****************************************************************/
392
-
393
- /*!****************************************************************!*\
394
- !*** ./node_modules/core-js/internals/function-bind-native.js ***!
395
- \****************************************************************/
396
-
397
- /*!****************************************************************!*\
398
- !*** ./node_modules/core-js/internals/length-of-array-like.js ***!
399
- \****************************************************************/
400
-
401
- /*!****************************************************************!*\
402
- !*** ./node_modules/core-js/internals/object-keys-internal.js ***!
403
- \****************************************************************/
404
-
405
- /*!****************************************************************!*\
406
- !*** ./node_modules/core-js/internals/regexp-exec-abstract.js ***!
407
- \****************************************************************/
408
-
409
- /*!*****************************************************************!*\
410
- !*** ./node_modules/core-js/internals/function-bind-context.js ***!
411
- \*****************************************************************/
412
-
413
- /*!*****************************************************************!*\
414
- !*** ./node_modules/core-js/internals/function-uncurry-this.js ***!
415
- \*****************************************************************/
416
-
417
- /*!*****************************************************************!*\
418
- !*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***!
419
- \*****************************************************************/
420
-
421
- /*!*****************************************************************!*\
422
- !*** ./node_modules/core-js/internals/regexp-sticky-helpers.js ***!
423
- \*****************************************************************/
424
-
425
- /*!*****************************************************************!*\
426
- !*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
427
- \*****************************************************************/
428
-
429
- /*!******************************************************************!*\
430
- !*** ./node_modules/core-js/internals/array-method-is-strict.js ***!
431
- \******************************************************************/
432
-
433
- /*!******************************************************************!*\
434
- !*** ./node_modules/core-js/internals/object-define-property.js ***!
435
- \******************************************************************/
436
-
437
- /*!******************************************************************!*\
438
- !*** ./node_modules/core-js/internals/object-is-prototype-of.js ***!
439
- \******************************************************************/
440
-
441
- /*!******************************************************************!*\
442
- !*** ./node_modules/core-js/internals/regexp-unsupported-ncg.js ***!
443
- \******************************************************************/
444
-
445
- /*!******************************************************************!*\
446
- !*** ./node_modules/core-js/internals/to-integer-or-infinity.js ***!
447
- \******************************************************************/
448
-
449
- /*!*******************************************************************!*\
450
- !*** ./node_modules/core-js/internals/document-create-element.js ***!
451
- \*******************************************************************/
452
-
453
- /*!*******************************************************************!*\
454
- !*** ./node_modules/core-js/internals/object-get-prototype-of.js ***!
455
- \*******************************************************************/
456
-
457
- /*!*******************************************************************!*\
458
- !*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
459
- \*******************************************************************/
460
-
461
- /*!*******************************************************************!*\
462
- !*** ./node_modules/core-js/internals/v8-prototype-define-bug.js ***!
463
- \*******************************************************************/
464
-
465
- /*!********************************************************************!*\
466
- !*** ./node_modules/core-js/internals/correct-prototype-getter.js ***!
467
- \********************************************************************/
468
-
469
- /*!********************************************************************!*\
470
- !*** ./node_modules/core-js/internals/define-well-known-symbol.js ***!
471
- \********************************************************************/
472
-
473
- /*!********************************************************************!*\
474
- !*** ./node_modules/core-js/internals/dom-token-list-prototype.js ***!
475
- \********************************************************************/
476
-
477
- /*!********************************************************************!*\
478
- !*** ./node_modules/core-js/internals/is-array-iterator-method.js ***!
479
- \********************************************************************/
480
-
481
- /*!********************************************************************!*\
482
- !*** ./node_modules/core-js/internals/object-define-properties.js ***!
483
- \********************************************************************/
484
-
485
- /*!********************************************************************!*\
486
- !*** ./node_modules/core-js/internals/require-object-coercible.js ***!
487
- \********************************************************************/
488
-
489
- /*!********************************************************************!*\
490
- !*** ./node_modules/core-js/internals/string-punycode-to-ascii.js ***!
491
- \********************************************************************/
492
-
493
- /*!*********************************************************************!*\
494
- !*** ./node_modules/core-js/internals/array-species-constructor.js ***!
495
- \*********************************************************************/
496
-
497
- /*!*********************************************************************!*\
498
- !*** ./node_modules/core-js/internals/validate-arguments-length.js ***!
499
- \*********************************************************************/
500
-
501
- /*!*********************************************************************!*\
502
- !*** ./node_modules/core-js/internals/well-known-symbol-wrapped.js ***!
503
- \*********************************************************************/
504
-
505
- /*!**********************************************************************!*\
506
- !*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
507
- \**********************************************************************/
508
-
509
- /*!**********************************************************************!*\
510
- !*** ./node_modules/core-js/internals/regexp-unsupported-dot-all.js ***!
511
- \**********************************************************************/
512
-
513
- /*!**********************************************************************!*\
514
- !*** ./node_modules/core-js/modules/web.dom-collections.for-each.js ***!
515
- \**********************************************************************/
516
-
517
- /*!**********************************************************************!*\
518
- !*** ./node_modules/core-js/modules/web.dom-collections.iterator.js ***!
519
- \**********************************************************************/
520
-
521
- /*!***********************************************************************!*\
522
- !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
523
- \***********************************************************************/
524
-
525
- /*!***********************************************************************!*\
526
- !*** ./node_modules/core-js/internals/create-iterator-constructor.js ***!
527
- \***********************************************************************/
528
-
529
- /*!*************************************************************************!*\
530
- !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
531
- \*************************************************************************/
532
-
533
- /*!*************************************************************************!*\
534
- !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
535
- \*************************************************************************/
536
-
537
- /*!**************************************************************************!*\
538
- !*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***!
539
- \**************************************************************************/
540
-
541
- /*!***************************************************************************!*\
542
- !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
543
- \***************************************************************************/
544
-
545
- /*!****************************************************************************!*\
546
- !*** ./node_modules/core-js/internals/array-method-has-species-support.js ***!
547
- \****************************************************************************/
548
-
549
- /*!****************************************************************************!*\
550
- !*** ./node_modules/core-js/internals/call-with-safe-iteration-closing.js ***!
551
- \****************************************************************************/
552
-
553
- /*!******************************************************************************!*\
554
- !*** ./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js ***!
555
- \******************************************************************************/
556
-
557
- /*!******************************************************************************!*\
558
- !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
559
- \******************************************************************************/
560
-
561
- /*!**********************************************************************************!*\
562
- !*** ./node_modules/core-js/internals/object-get-own-property-names-external.js ***!
563
- \**********************************************************************************/
1
+ /*!**********************************!*\
2
+ !*** ./src/plugin_webworker.mjs ***!
3
+ \**********************************/
@@ -0,0 +1 @@
1
+ !function(){"use strict";let e=window.THREE;const t={"初期化":{type:"func",josi:[],pure:!0,fn:function(t){if(!t._weykturtle3d){if(void 0===window.THREE)throw new Error("three.jsが読み込まれていません");e=window.THREE,t._weykturtle3d={containerid:"",camera:-1,target:-1,_renderer:null,_scene:null,_lines:new e.Group,_camera:null,_controls:null,_camerahelper:null,_axishelper:null,list:[],clearAll:function(){console.log("[TURTLE] clearAll"),this.disposeAllTurtle(),this.disposeAllLine();const e=this._scene;null!==e&&(e.remove(this._lines),e.add(this._lines),null!==this._camerahelper&&(this._camerahelper.visible=!1,e.remove(this._camerahelper),e.add(this._camerahelper)),null!==this._axishelper&&(this._axishelper.visible=!1,e.remove(this._axishelper),e.add(this._axishelper)),this.initTurtle())},disposeAllTurtle:function(){for(let e=0;e<this.list.length;e++){const t=this.list[e];t.mlist=[],this.disposeChildObject(t.obj)}this.list=[],this.target=-1,this.camera=-1,this.flagSetTimer=!1},disposeAllLine:function(){null!==this._lines&&this.disposeChildObject(this._lines)},createDefaultTurtle:function(){const t=new e.Group,n=new e.LineBasicMaterial({vertexColors:!0}),r=new Float32Array([0,1,0,-.6,-1,0,0,-.5,0,.6,-1,0,0,0,.5,0,1,0,-.6,-1,0,0,-.5,0,.6,-1,0,0,0,-.5,0,1,0,-.6,-1,0,0,-.5,0,.6,-1,0]),i=new Float32Array([0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1]),o=new e.BufferGeometry;o.setIndex([0,1,1,2,2,3,3,0,4,5,4,6,4,7,4,8,9,10,9,11,9,12,9,13]),o.setAttribute("position",new e.BufferAttribute(r,3)),o.setAttribute("color",new e.BufferAttribute(i,3)),o.computeBoundingSphere();const u=new e.LineSegments(o,n);return u.scale.set(30,30,30),t.add(u),t},createTurtle:function(t){const n=this.list.length,r={id:n,obj:new e.Group,home:{position:new e.Vector3(0,0,0),quaternion:new e.Quaternion},color:new e.Color(16777215),lineWidth:4,flagDown:!0,flagLoaded:!1,f_visible:!0,mlist:[]};this.list.push(r),this.target=n,r.home.position.copy(r.obj.position),r.home.quaternion.copy(r.obj.quaternion),this.loadTurtle(r,t);return this.getScene().add(r.obj),n},loadTurtle:function(t,n){const r=new e.ObjectLoader,i=this;if(n instanceof e.Object3D){console.log("turtle.object"),i.disposeChildObject(t.obj);const e=n;return t.obj.add(e),t.flagLoaded=!0,void i.doDraw()}if(0===n.length){console.log("turtle.default"),i.disposeChildObject(t.obj);const e=i.createDefaultTurtle();return t.obj.add(e),t.flagLoaded=!0,void i.doDraw()}r.load(n,(function(e){console.log("turtle.onload"),i.disposeChildObject(t.obj),t.obj.add(e),t.flagLoaded=!0,i.doDraw()}),(function(e){}),(function(e){console.log("turtle.onerror"),t.flagLoaded=!0,t.f_visible=!1,t.obj.visible=!1,i.disposeChildObject(t.obj),i.doDraw()}))},initTurtle:function(){if(0===this.list.length){const t=this.createTurtle(""),n=this.list[t];n.obj.position.set(0,0,1e3);const r=new e.Vector3(0,0,-1).normalize(),i=0;n.obj.quaternion.setFromAxisAngle(r,i),n.home.position.copy(n.obj.position),n.home.quaternion.copy(n.obj.quaternion),n.f_visible=!1,n.obj.visible=!1,this.camera=t,this.target=-1}},getCur:function(){if(0===this.list.length)throw Error("最初に『T3Dカメ作成』命令を呼び出してください。");if(this.target<0||this.target>=this.list.length)throw Error("指定された番号のカメはいません。");return this.list[this.target]},doDraw:function(){if(-1===this.camera)return;this.getRenderer();const e=this.list[this.camera];null!==this._controls||(this._camera.position.copy(e.obj.position),this._camera.quaternion.copy(e.obj.quaternion)),null!==this._camerahelper&&this._camerahelper.update(),this._renderer.clear(),null!==this._controls&&(this._controls.update(),e.obj.position.copy(this._camera.position),e.obj.quaternion.copy(this._camera.quaternion)),this._renderer.render(this._scene,this._camera)},setCameraHelper:function(t){if(t){if(null===this._camerahelper){if(void 0===e.CameraHelper)throw Error("カメラヘルパの機能が見当たりません。");const t=new e.CameraHelper(this._camera);this._camerahelper=t,this._scene.add(t)}this._camerahelper.visible=!0}else null!==this._camerahelper&&(this._camerahelper.visible=!1)},setAxisHelper:function(t){if(t){if(null===this._axishelper){if(void 0===e.AxisHelper)throw Error("AXISヘルパの機能が見当たりません。");const t=new e.AxisHelper(1e3);this._axishelper=t,this._scene.add(t)}this._axishelper.visible=!0}else null!==this._axishelper&&(this._axishelper.visible=!1)},getScene:function(){if(null===this._scene){const t=new e.Scene;if(null===t)throw new Error("シーンを作成できません");this._scene=t}return this._scene},getCamera:function(){if(null===this._camera){const t=new e.PerspectiveCamera(60,1,1,65e3);if(null===t)throw new Error("カメラを作成できません");this.resetCamera(t),this._camera=t}return this._camera},resetCamera:function(t){if(t.position.set(0,0,1e3),null!==this._renderer){const n=new e.Vector2;this._renderer.getSize(n),t.aspect=n.width/n.height}t.up=new e.Vector3(0,1,0),t.lookAt(new e.Vector3(0,0,0))},initTrutle3dEnv:function(e){e.setClearColor(0,1),e.autoClear=!1;const n=this.getScene();this.getCamera();n.add(t._weykturtle3d._lines),0===this.list.length&&this.initTurtle()},initRenderer:function(){let e=t.__v0["T3Dカメ描画先"];if("string"==typeof e&&(e=document.querySelector(e)||document.getElementById(e)),!e)throw new Error("[ERROR] T3Dカメ描画先が見当たりません。");this.setRenderer(e)},setRenderer:function(t){if(t instanceof e.WebGLRenderer)this._renderer=t;else{const n=new e.WebGLRenderer({antialias:!1,alpha:!0});if(null===n)throw new Error("レンダラを作成できません");n.setPixelRatio(window.devicePixelRatio),n.setSize(t.clientWidth,t.clientHeight),t.appendChild(n.domElement),this._renderer=n}return this._renderer},setupRenderer:function(){this.initTrutle3dEnv(this._renderer)},getRenderer:function(){return null===this._renderer&&(this.initRenderer(),this.setupRenderer()),this._renderer},setupControl:function(e){if(void 0===e)throw new Error("指定されたコンコントロールが見当たりません。");if(null!==this._controls){if(this._controls instanceof e)return this._controls;throw new Error("既にコントロールを適用しています。コントロールの変更はできません。")}const t=this.getRenderer(),n=new e(this.getCamera(t),t.domElement);return n.enabled=!0,this._controls=n,this._controls},line:function(t,n,r){if(t&&!t.flagDown)return;const i=new e.BufferGeometry,o=new e.Float32BufferAttribute(6,3);o.copyVector3sArray([n,r]);const u=new e.LineBasicMaterial({color:t.color,linewidth:t.lineWidth});i.setAttribute("position",o);const l=new e.Line(i,u);this._lines.add(l)},doMacro:function(t,n){const r=this;if(!t.flagLoaded&&n>0)return console.log("[TURTLE] waiting ..."),!0;const i=t.mlist.shift();switch(void 0!==i?i[0]:""){case"xyz":t.obj.position.copy(i[1]);break;case"mv":{const n=t.obj.position.clone(),r=i[1];this.line(t,n,r),t.obj.lookAt(r);const o=new e.Quaternion,u=new e.Vector3(1,0,0);o.setFromAxisAngle(u,Math.PI/2),t.obj.quaternion.multiply(o),t.obj.position.copy(r);break}case"fd":{const n=t.obj.position.clone(),r=new e.Vector3(0,i[1]*i[2],0);r.applyQuaternion(t.obj.quaternion),r.add(n),this.line(t,n,r),t.obj.position.copy(r);break}case"su":{const n=t.obj.position.clone(),r=new e.Vector3(0,i[1],0),o=new e.Quaternion,u=new e.Vector3(1,0,0);o.setFromAxisAngle(u,-90*Math.PI/180);const l=t.obj.quaternion.clone();l.multiply(o),r.applyQuaternion(l),r.add(n),this.line(t,n,r),t.obj.position.copy(r);break}case"sd":{const n=t.obj.position.clone(),r=new e.Vector3(0,i[1],0),o=new e.Quaternion,u=new e.Vector3(1,0,0);o.setFromAxisAngle(u,90*Math.PI/180);const l=t.obj.quaternion.clone();l.multiply(o),r.applyQuaternion(l),r.add(n),this.line(t,n,r),t.obj.position.copy(r);break}case"sl":{const n=t.obj.position.clone(),r=new e.Vector3(0,i[1],0),o=new e.Quaternion,u=new e.Vector3(0,0,1);o.setFromAxisAngle(u,90*Math.PI/180);const l=t.obj.quaternion.clone();l.multiply(o),r.applyQuaternion(l),r.add(n),this.line(t,n,r),t.obj.position.copy(r);break}case"sr":{const n=t.obj.position.clone(),r=new e.Vector3(0,i[1],0),o=new e.Quaternion,u=new e.Vector3(0,0,1);o.setFromAxisAngle(u,-90*Math.PI/180);const l=t.obj.quaternion.clone();l.multiply(o),r.applyQuaternion(l),r.add(n),this.line(t,n,r),t.obj.position.copy(r);break}case"angle":{const n=new e.Euler;n.fromArray(i[1]);new e.Quaternion;t.obj.quaternion.setFromEuler(n);break}case"rotr":{const n=i[1],r=new e.Quaternion,o=new e.Vector3(0,0,1);r.setFromAxisAngle(o,-n%360*Math.PI/180),t.obj.quaternion.multiply(r);break}case"rotl":{const n=i[1],r=new e.Quaternion,o=new e.Vector3(0,0,1);r.setFromAxisAngle(o,n%360*Math.PI/180),t.obj.quaternion.multiply(r);break}case"rotu":{const n=i[1],r=new e.Quaternion,o=new e.Vector3(1,0,0);r.setFromAxisAngle(o,-n%360*Math.PI/180),t.obj.quaternion.multiply(r);break}case"rotd":{const n=i[1],r=new e.Quaternion,o=new e.Vector3(1,0,0);r.setFromAxisAngle(o,n%360*Math.PI/180),t.obj.quaternion.multiply(r);break}case"rolr":{const n=i[1],r=new e.Quaternion,o=new e.Vector3(0,1,0);r.setFromAxisAngle(o,n%360*Math.PI/180),t.obj.quaternion.multiply(r);break}case"roll":{const n=i[1],r=new e.Quaternion,o=new e.Vector3(0,1,0);r.setFromAxisAngle(o,-n%360*Math.PI/180),t.obj.quaternion.multiply(r);break}case"color":t.color=new i[1];break;case"size":t.lineWidth=i[1];break;case"penOn":t.flagDown=i[1];break;case"visible":t.f_visible=i[1],t.f_visible?t.obj.visible=!0:t.obj.visible=!1;break;case"changeModel":t.flagLoaded=!1,r.loadTurtle(t,i[1]);break;case"changeCamera":r.camera=i[1];break;case"sethome":t.home.position.copy(t.obj.position),t.home.quaternion.copy(t.obj.quaternion);break;case"gohome":t.obj.position.copy(t.home.position),t.obj.quaternion.copy(t.home.quaternion)}return t.mlist.length>0},doMacroAll:function(e){let t=!1;for(let n=0;n<this.list.length;n++){const r=this.list[n];this.doMacro(r,e)&&(t=!0)}return t},flagSetTimer:!1,animationStart:function(){0!==this.getWait()?this.flagSetTimer||(this.flagSetTimer=!0,this.animationFrame(this.animation)):this.animation()},getWait:function(){return t.__v0["T3Dカメ速度"]},disposeChildObject:function(e){for(;e.children.length>0;)this.disposeChildObject(e.children[0]),e.remove(e.children[0]);e.geometry&&e.geometry.dispose(),e.material&&(Object.keys(e.material).forEach((t=>{e.material[t]&&"function"==typeof e.material[t].dispose&&e.material[t].dispose()})),e.material.dispose())},animation:function(){const e=t._weykturtle3d,n=Date.now(),r=n-e._prevUpdatedTime,i=e.getWait();if(i>0&&r<i)return e.doDraw(),void e.animationFrame(e.animation);let o=e.doMacroAll(i);if(i<=0)for(;o;)o=e.doMacroAll(i);else if(o||null!==e._controls)return e.doDraw(),e._prevUpdatedTime=n,void e.animationFrame(e.animation);e.doDraw(),e.flagSetTimer=!1}},t._weykturtle3d.animationFrame=function(e,t){window.setTimeout(e,1e3/60)}}}},"T3Dカメ作成":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.initTurtle();const t=e.__v0["T3DカメモデルURL"];return e._weykturtle3d.createTurtle(t)},return_none:!1},"T3Dカメ操作対象設定":{type:"func",josi:[["に","へ","の"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.target=e},return_none:!0},"T3Dカメ描画先":{type:"var",value:"turtle3d_div"},"T3DカメモデルURL":{type:"var",value:""},"T3Dカメモデル変更":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["changeModel",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ速度":{type:"const",value:100},"T3Dカメ速度設定":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){t.__varslist[0]["T3Dカメ速度"]=e},return_none:!0},"T3Dカメ移動":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(t,n){if(!n._weykturtle3d)return null;n._weykturtle3d.getCur().mlist.push(["mv",new e.Vector3(t[0],t[1],t[2])]),n._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ原点設定":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.getCur().mlist.push(["sethome"]),e._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ原点移動":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.getCur().mlist.push(["gohome"]),e._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ起点移動":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(t,n){if(!n._weykturtle3d)return null;n._weykturtle3d.getCur().mlist.push(["xyz",new e.Vector3(t[0],t[1],t[2])]),n._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ進":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["fd",e,1]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ戻":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["fd",e,-1]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ上平行移動":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["su",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ下平行移動":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["sd",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ左平行移動":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["sl",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ右平行移動":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["sr",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ動":{type:"func",josi:[["へ","に"],["だけ"]],pure:!0,fn:function(e,t,n){if(!n._weykturtle3d)return null;const r=n._weykturtle3d.getCur();let i="";if("前"===e||"後"===e)"前"===e?r.mlist.push(["fd",t,1]):r.mlist.push(["fd",t,-1]);else{if("上"===e||"UP"===e||"うえ"===e)i="su";else if("下"===e||"DOWN"===e||"した"===e)i="sd";else if("右"===e||"RIGHT"===e||"みぎ"===e)i="sr";else{if("左"!==e&&"LEFT"!==e&&"ひだり"!==e)throw Error("方向の指定が正しくありません。前後上下左右のいずれかで指定してください。");i="sl"}r.mlist.push([i,t])}n._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ角度設定":{type:"func",josi:[["に","へ","の"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["angle",parseFloat(e)]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ右回転":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["rotr",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ左回転":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["rotl",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ上回転":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["rotu",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ下回転":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["rotd",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ回転":{type:"func",josi:[["へ","に"],["だけ"]],pure:!0,fn:function(e,t,n){if(!n._weykturtle3d)return null;const r=n._weykturtle3d.getCur();let i="";if("上"===e||"UP"===e||"うえ"===e)i="rotu";else if("下"===e||"DOWN"===e||"した"===e)i="rotd";else if("右"===e||"RIGHT"===e||"みぎ"===e)i="rotr";else{if("左"!==e&&"LEFT"!==e&&"ひだり"!==e)throw Error("方向の指定が正しくありません。上下左右のいずれかで指定してください。");i="rotl"}r.mlist.push([i,t]),n._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ右ロール":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["rolr",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ左ロール":{type:"func",josi:[["だけ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["roll",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ傾":{type:"func",josi:[["に","へ"],["だけ"]],pure:!0,fn:function(e,t,n){if(!n._weykturtle3d)return null;const r=n._weykturtle3d.getCur();let i="";if("右"===e||"RIGHT"===e||"みぎ"===e)i="rolr";else{if("左"!==e&&"LEFT"!==e&&"ひだり"!==e)throw Error("向きの指定が正しくありません。左右のどちらかで指定してください。");i="roll"}r.mlist.push([i,t]),n._weykturtle3d.animationStart()},return_none:!0},"T3Dカメペン色設定":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["color",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメペンサイズ設定":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["size",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメペン設定":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;t._weykturtle3d.getCur().mlist.push(["penOn",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ全消去":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.clearAll()},return_none:!0},"T3Dカメ非表示":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.getCur().mlist.push(["visible",!1]),e._weykturtle3d.animationStart()},return_none:!0},"T3Dカメ表示":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.getCur().mlist.push(["visible",!0]),e._weykturtle3d.animationStart()},return_none:!0},"T3D視点カメ設定":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;if(e<0||e>=t._weykturtle3d.list.length)throw Error("指定された番号のカメはいません。");t._weykturtle3d.getCur().mlist.push(["changeCamera",e]),t._weykturtle3d.animationStart()},return_none:!0},"T3D描画準備":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(t,n){if(!n._weykturtle3d)return null;if(void 0===e)throw new Error("three.jsが読み込まれていません");if("string"==typeof t&&(t=document.querySelector(t)||document.getElementById(t)),!t)throw new Error("TJS描画準備に指定した描画先に誤りがあります");return n._weykturtle3d.setRenderer(t),n._weykturtle3d.setupRenderer(),n._weykturtle3d._renderer},return_none:!1},"T3D描画":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.doDraw()},return_none:!0},"T3D背景色設定":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;null===t._weykturtle3d._renderer&&t._weykturtle3d.setRenderTarget(),t._weykturtle3d._renderer.setClearColor(e),t._weykturtle3d.animationStart()},return_none:!0},"T3D背景透過設定":{type:"func",josi:[["に","へ"]],pure:!0,fn:function(e,t){if(!t._weykturtle3d)return null;null===t._weykturtle3d._renderer&&t._weykturtle3d.setRenderTarget(),t._weykturtle3d._renderer.setClearAlpha(e),t._weykturtle3d.animationStart()},return_none:!0},"T3DJSON取得":{type:"func",josi:[],pure:!0,fn:function(e){return e._weykturtle3d?JSON.stringify(e._weykturtle3d._lines.toJSON()):null},return_none:!1},"T3Dオービットコントロール設定":{type:"func",josi:[],pure:!0,fn:function(t){return t._weykturtle3d&&void 0!==e.OrbitControls?t._weykturtle3d.setupControl(e.OrbitControls):null},return_none:!1},"T3Dコントロール有効":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d._controls&&(e._weykturtle3d._controls.enabled=!0)},return_none:!0},"T3Dコントロール無効":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d._controls&&(e._weykturtle3d._controls.enabled=!1)},return_none:!0},"T3Dカメラヘルパ表示":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.setCameraHelper(!0)},return_none:!0},"T3Dカメラヘルパ非表示":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.setCameraHelper(!1)},return_none:!0},"T3D軸線ヘルパ表示":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.setAxisHelper(!0)},return_none:!0},"T3D軸線ヘルパ非表示":{type:"func",josi:[],pure:!0,fn:function(e){if(!e._weykturtle3d)return null;e._weykturtle3d.setAxisHelper(!1)},return_none:!0}};"object"==typeof navigator&&navigator.nako3.addPluginObject("PluginWeykTurtle3D",t)}();
@@ -0,0 +1,3 @@
1
+ /*!*************************************!*\
2
+ !*** ./src/plugin_weykturtle3d.mjs ***!
3
+ \*************************************/