nadesiko3 3.7.13 → 3.7.15

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 (133) hide show
  1. package/batch/command.txt +384 -388
  2. package/batch/jsplugin2text.nako3 +2 -0
  3. package/batch/pickup_command.nako3 +1 -1
  4. package/core/package.json +1 -1
  5. package/core/src/nako3.mjs +2 -5
  6. package/core/src/nako3.mts +57 -56
  7. package/core/src/nako_ast.mjs +0 -1
  8. package/core/src/nako_ast.mts +1 -1
  9. package/core/src/nako_colors.mjs +0 -1
  10. package/core/src/nako_colors.mts +1 -1
  11. package/core/src/nako_core_version.mjs +2 -2
  12. package/core/src/nako_core_version.mts +2 -2
  13. package/core/src/nako_csv.mjs +0 -1
  14. package/core/src/nako_csv.mts +9 -9
  15. package/core/src/nako_errors.mts +8 -8
  16. package/core/src/nako_from_dncl.mts +5 -5
  17. package/core/src/nako_from_dncl2.mjs +0 -1
  18. package/core/src/nako_from_dncl2.mts +5 -5
  19. package/core/src/nako_gen.mjs +16 -17
  20. package/core/src/nako_gen.mts +230 -223
  21. package/core/src/nako_global.mts +11 -11
  22. package/core/src/nako_indent.mts +92 -92
  23. package/core/src/nako_indent_chars.mts +1 -1
  24. package/core/src/nako_indent_inline.mjs +11 -11
  25. package/core/src/nako_indent_inline.mts +20 -20
  26. package/core/src/nako_lex_rules.mjs +0 -1
  27. package/core/src/nako_lex_rules.mts +8 -8
  28. package/core/src/nako_lexer.mjs +0 -1
  29. package/core/src/nako_lexer.mts +23 -23
  30. package/core/src/nako_logger.mjs +1 -1
  31. package/core/src/nako_logger.mts +38 -38
  32. package/core/src/nako_parser3.mjs +4 -5
  33. package/core/src/nako_parser3.mts +79 -79
  34. package/core/src/nako_parser_base.mjs +1 -1
  35. package/core/src/nako_parser_base.mts +68 -68
  36. package/core/src/nako_parser_const.mjs +0 -1
  37. package/core/src/nako_parser_const.mts +1 -1
  38. package/core/src/nako_prepare.mts +12 -12
  39. package/core/src/nako_source_mapping.mts +9 -9
  40. package/core/src/nako_token.mjs +0 -1
  41. package/core/src/nako_token.mts +2 -2
  42. package/core/src/nako_tools.mjs +0 -1
  43. package/core/src/nako_tools.mts +4 -4
  44. package/core/src/nako_types.mjs +0 -1
  45. package/core/src/nako_types.mts +3 -3
  46. package/core/src/plugin_api.mjs +0 -1
  47. package/core/src/plugin_api.mts +1 -1
  48. package/core/src/plugin_csv.mjs +0 -1
  49. package/core/src/plugin_csv.mts +7 -7
  50. package/core/src/plugin_math.mjs +0 -1
  51. package/core/src/plugin_math.mts +39 -40
  52. package/core/src/plugin_promise.mjs +1 -1
  53. package/core/src/plugin_promise.mts +9 -9
  54. package/core/src/plugin_system.mjs +43 -21
  55. package/core/src/plugin_system.mts +366 -336
  56. package/core/src/plugin_test.mjs +0 -2
  57. package/core/src/plugin_test.mts +6 -6
  58. package/core/src/plugin_toml.mjs +1 -1
  59. package/core/src/plugin_toml.mts +4 -4
  60. package/core/test/flow_test.mjs +22 -0
  61. package/core/test/plugin_system_test.mjs +11 -7
  62. package/core/test/side_effects_test.mjs +1 -1
  63. package/package.json +32 -35
  64. package/release/_hash.txt +28 -28
  65. package/release/_script-tags.txt +16 -16
  66. package/release/command.json +1 -1
  67. package/release/command.json.js +1 -1
  68. package/release/command_cnako3.json +1 -1
  69. package/release/command_list.json +1 -1
  70. package/release/edit_main.js +33 -21
  71. package/release/edit_main.js.map +4 -4
  72. package/release/editor.js +33 -21
  73. package/release/plugin_keigo.js.map +2 -2
  74. package/release/plugin_turtle.js.map +2 -2
  75. package/release/plugin_weykturtle3d.js.map +2 -2
  76. package/release/version.js +29 -17
  77. package/release/version_main.js +29 -17
  78. package/release/version_main.js.map +4 -4
  79. package/release/wnako3.js +64 -57
  80. package/release/wnako3.js.map +3 -3
  81. package/release/wnako3webworker.js +50 -43
  82. package/release/wnako3webworker.js.map +3 -3
  83. package/src/cnako3.mts +1 -1
  84. package/src/cnako3mod.mjs +4 -7
  85. package/src/cnako3mod.mts +24 -24
  86. package/src/commander_ja.mts +8 -8
  87. package/src/deno_wrapper.mjs +0 -1
  88. package/src/deno_wrapper.mts +5 -5
  89. package/src/nako_version.mjs +2 -2
  90. package/src/nako_version.mts +2 -2
  91. package/src/plugin_browser.mjs +21 -29
  92. package/src/plugin_browser.mts +30 -35
  93. package/src/plugin_browser_ajax.mts +27 -27
  94. package/src/plugin_browser_audio.mjs +0 -1
  95. package/src/plugin_browser_audio.mts +11 -11
  96. package/src/plugin_browser_camera.mts +8 -8
  97. package/src/plugin_browser_canvas.mjs +0 -2
  98. package/src/plugin_browser_canvas.mts +34 -34
  99. package/src/plugin_browser_chart.mjs +0 -1
  100. package/src/plugin_browser_chart.mts +13 -13
  101. package/src/plugin_browser_color.mts +2 -2
  102. package/src/plugin_browser_crypto.mts +5 -5
  103. package/src/plugin_browser_dialog.mts +4 -4
  104. package/src/plugin_browser_dom_basic.mts +42 -42
  105. package/src/plugin_browser_dom_event.mjs +0 -1
  106. package/src/plugin_browser_dom_event.mts +27 -28
  107. package/src/plugin_browser_dom_parts.mjs +0 -2
  108. package/src/plugin_browser_dom_parts.mts +31 -31
  109. package/src/plugin_browser_geolocation.mts +3 -3
  110. package/src/plugin_browser_hotkey.mts +3 -3
  111. package/src/plugin_browser_html.mts +4 -4
  112. package/src/plugin_browser_in_worker.mts +1 -1
  113. package/src/plugin_browser_location.mts +2 -2
  114. package/src/plugin_browser_speech.mts +7 -7
  115. package/src/plugin_browser_storage.mts +11 -11
  116. package/src/plugin_browser_system.mts +2 -2
  117. package/src/plugin_browser_websocket.mts +6 -6
  118. package/src/plugin_httpserver.mts +17 -17
  119. package/src/plugin_keigo.mts +5 -5
  120. package/src/plugin_node.mjs +7 -48
  121. package/src/plugin_node.mts +114 -145
  122. package/src/plugin_turtle.mts +143 -143
  123. package/src/plugin_weykturtle3d.mjs +0 -3
  124. package/src/plugin_weykturtle3d.mts +135 -135
  125. package/src/plugin_weykturtle3d_three.mjs +0 -1
  126. package/src/plugin_weykturtle3d_three.mts +1 -1
  127. package/src/plugin_weykturtle3d_threeutil.mts +3 -3
  128. package/src/wnako3.mjs +0 -1
  129. package/src/wnako3.mts +1 -1
  130. package/src/wnako3_editor.mjs +0 -2
  131. package/src/wnako3_editor.mts +132 -132
  132. package/src/wnako3mod.mjs +0 -5
  133. package/src/wnako3mod.mts +19 -19
@@ -5,7 +5,7 @@ export default {
5
5
  josi: [['の', 'から', 'を']],
6
6
  pure: true,
7
7
  asyncFn: true,
8
- fn: async function (url: any, sys: any) {
8
+ fn: async function(url: any, sys: any) {
9
9
  return sys.__exec('AJAXテキスト取得', [url, sys])
10
10
  }
11
11
  },
@@ -14,7 +14,7 @@ export default {
14
14
  josi: [['から', 'を']],
15
15
  pure: true,
16
16
  asyncFn: true,
17
- fn: async function (url: any, sys: any) {
17
+ fn: async function(url: any, sys: any) {
18
18
  return sys.__exec('AJAXテキスト取得', [url, sys])
19
19
  }
20
20
  },
@@ -22,7 +22,7 @@ export default {
22
22
  type: 'func',
23
23
  josi: [['で'], ['から', 'を']],
24
24
  pure: true,
25
- fn: function (callback: any, url: any, sys: any) {
25
+ fn: function(callback: any, url: any, sys: any) {
26
26
  sys.__exec('AJAX送信時', [callback, url, sys])
27
27
  },
28
28
  return_none: true
@@ -32,7 +32,7 @@ export default {
32
32
  josi: [['まで', 'へ', 'に']],
33
33
  pure: true,
34
34
  asyncFn: true,
35
- fn: async function (url: any, sys: any) {
35
+ fn: async function(url: any, sys: any) {
36
36
  return sys.__exec('AJAXテキスト取得', [url, sys])
37
37
  }
38
38
  },
@@ -40,7 +40,7 @@ export default {
40
40
  type: 'func',
41
41
  josi: [['の'], ['まで', 'へ', 'に']],
42
42
  pure: true,
43
- fn: function (callback: any, url: any, sys: any) {
43
+ fn: function(callback: any, url: any, sys: any) {
44
44
  let options = sys.__getSysVar('AJAXオプション')
45
45
  if (options === '') { options = { method: 'GET' } }
46
46
  fetch(url, options).then(res => {
@@ -63,7 +63,7 @@ export default {
63
63
  type: 'func',
64
64
  josi: [['に', 'へ', 'と']],
65
65
  pure: true,
66
- fn: function (option: any, sys: any) {
66
+ fn: function(option: any, sys: any) {
67
67
  sys.__setSysVar('AJAXオプション', option)
68
68
  },
69
69
  return_none: true
@@ -72,7 +72,7 @@ export default {
72
72
  type: 'func',
73
73
  josi: [['を', 'で']],
74
74
  pure: true,
75
- fn: function (params: any, sys: any) {
75
+ fn: function(params: any, sys: any) {
76
76
  const bodyData = sys.__exec('POSTデータ生成', [params, sys])
77
77
  const options = {
78
78
  method: 'POST',
@@ -89,7 +89,7 @@ export default {
89
89
  type: 'func',
90
90
  josi: [['の']],
91
91
  pure: true,
92
- fn: function (callback: any, sys: any) {
92
+ fn: function(callback: any, sys: any) {
93
93
  sys.__setSysVar('AJAX:ONERROR', callback)
94
94
  }
95
95
  },
@@ -98,7 +98,7 @@ export default {
98
98
  josi: [['から', 'を']],
99
99
  pure: true,
100
100
  asyncFn: true,
101
- fn: async function (url: any, sys: any) {
101
+ fn: async function(url: any, sys: any) {
102
102
  let options = sys.__getSysVar('AJAXオプション')
103
103
  if (options === '') { options = { method: 'GET' } }
104
104
  const res = await fetch(url, options)
@@ -112,7 +112,7 @@ export default {
112
112
  josi: [['から']],
113
113
  pure: true,
114
114
  asyncFn: true,
115
- fn: async function (url: any, sys: any) {
115
+ fn: async function(url: any, sys: any) {
116
116
  let options = sys.__getSysVar('AJAXオプション')
117
117
  if (options === '') { options = { method: 'GET' } }
118
118
  const res = await fetch(url, options)
@@ -126,7 +126,7 @@ export default {
126
126
  josi: [['から']],
127
127
  pure: true,
128
128
  asyncFn: true,
129
- fn: async function (url: any, sys: any) {
129
+ fn: async function(url: any, sys: any) {
130
130
  let options = sys.__getSysVar('AJAXオプション')
131
131
  if (options === '') { options = { method: 'GET' } }
132
132
  const res = await fetch(url, options)
@@ -140,7 +140,7 @@ export default {
140
140
  type: 'func',
141
141
  josi: [['の'], ['まで', 'へ', 'に']],
142
142
  pure: true,
143
- fn: function (callback: any, url: any, sys: any) {
143
+ fn: function(callback: any, url: any, sys: any) {
144
144
  sys.__exec('AJAX送信時', [callback, url, sys])
145
145
  },
146
146
  return_none: true
@@ -149,7 +149,7 @@ export default {
149
149
  type: 'func',
150
150
  josi: [['の'], ['まで', 'へ', 'に'], ['を']],
151
151
  pure: true,
152
- fn: function (callback: any, url: any, params: any, sys: any) {
152
+ fn: function(callback: any, url: any, params: any, sys: any) {
153
153
  const bodyData = sys.__exec('POSTデータ生成', [params, sys])
154
154
  const options = {
155
155
  method: 'POST',
@@ -172,7 +172,7 @@ export default {
172
172
  type: 'func',
173
173
  josi: [['の'], ['まで', 'へ', 'に'], ['を']],
174
174
  pure: true,
175
- fn: function (callback: any, url: any, params: any, sys: any) {
175
+ fn: function(callback: any, url: any, params: any, sys: any) {
176
176
  const fd = new FormData()
177
177
  for (const key in params) { fd.set(key, params[key]) }
178
178
 
@@ -194,7 +194,7 @@ export default {
194
194
  type: 'func',
195
195
  josi: [['の', 'を']],
196
196
  pure: true,
197
- fn: function (params: any, sys: any) {
197
+ fn: function(params: any, sys: any) {
198
198
  const flist: string[] = []
199
199
  for (const key in params) {
200
200
  const v = params[key]
@@ -209,7 +209,7 @@ export default {
209
209
  josi: [['まで', 'へ', 'に'], ['を']],
210
210
  pure: true,
211
211
  asyncFn: true,
212
- fn: function (url: any, params: any, sys: any) {
212
+ fn: function(url: any, params: any, sys: any) {
213
213
  return new Promise((resolve, reject) => {
214
214
  const bodyData = sys.__exec('POSTデータ生成', [params, sys])
215
215
  const options = {
@@ -234,7 +234,7 @@ export default {
234
234
  josi: [['まで', 'へ', 'に'], ['を']],
235
235
  pure: true,
236
236
  asyncFn: true,
237
- fn: function (url: any, params: any, sys: any) {
237
+ fn: function(url: any, params: any, sys: any) {
238
238
  return new Promise((resolve, reject) => {
239
239
  const fd = new FormData()
240
240
  for (const key in params) { fd.set(key, params[key]) }
@@ -257,7 +257,7 @@ export default {
257
257
  type: 'func',
258
258
  josi: [['まで', 'へ', 'に']],
259
259
  pure: true,
260
- fn: function (url: any, sys: any) {
260
+ fn: function(url: any, sys: any) {
261
261
  let options = sys.__getSysVar('AJAXオプション')
262
262
  if (options === '') { options = { method: 'GET' } }
263
263
  return fetch(url, options)
@@ -268,7 +268,7 @@ export default {
268
268
  type: 'func',
269
269
  josi: [['の', 'から', 'を']],
270
270
  pure: true,
271
- fn: function (url: any, sys: any) {
271
+ fn: function(url: any, sys: any) {
272
272
  return sys.__exec('AJAX保障送信', [url, sys])
273
273
  },
274
274
  return_none: false
@@ -277,7 +277,7 @@ export default {
277
277
  type: 'func',
278
278
  josi: [['まで', 'へ', 'に'], ['を']],
279
279
  pure: true,
280
- fn: function (url: any, params: any, sys: any) {
280
+ fn: function(url: any, params: any, sys: any) {
281
281
  const bodyData = sys.__exec('POSTデータ生成', [params, sys])
282
282
  const options = {
283
283
  method: 'POST',
@@ -294,7 +294,7 @@ export default {
294
294
  type: 'func',
295
295
  josi: [['まで', 'へ', 'に'], ['を']],
296
296
  pure: true,
297
- fn: function (url: any, params: any, sys: any) {
297
+ fn: function(url: any, params: any, sys: any) {
298
298
  const fd = new FormData()
299
299
  for (const key in params) { fd.set(key, params[key]) }
300
300
 
@@ -310,7 +310,7 @@ export default {
310
310
  type: 'func',
311
311
  josi: [['から'], ['で']],
312
312
  pure: true,
313
- fn: function (res: any, type: any, sys: any) {
313
+ fn: function(res: any, type: any, sys: any) {
314
314
  type = type.toString().toUpperCase()
315
315
  if (type === 'TEXT' || type === 'テキスト') {
316
316
  return res.text()
@@ -336,7 +336,7 @@ export default {
336
336
  type: 'func',
337
337
  josi: [['を', 'から'], ['で']],
338
338
  pure: true,
339
- fn: function (data: any, options: any) {
339
+ fn: function(data: any, options: any) {
340
340
  if (!(data instanceof Array)) { data = [data] }
341
341
  return new Blob(data, options)
342
342
  }
@@ -346,7 +346,7 @@ export default {
346
346
  type: 'func',
347
347
  josi: [['まで', 'へ', 'に']],
348
348
  pure: true,
349
- fn: function (url: any, sys: any) {
349
+ fn: function(url: any, sys: any) {
350
350
  if (!sys.resolve) { throw new Error('『AJAX逐次送信』は『逐次実行』構文内で利用する必要があります。') }
351
351
  sys.resolveCount++
352
352
  const resolve = sys.resolve
@@ -368,7 +368,7 @@ export default {
368
368
  type: 'func',
369
369
  josi: [['の', 'から', 'を']],
370
370
  pure: true,
371
- fn: function (url: any, sys: any) {
371
+ fn: function(url: any, sys: any) {
372
372
  if (!sys.resolve) { throw new Error('『HTTP逐次取得』は『逐次実行』構文内で利用する必要があります。') }
373
373
  sys.__exec('AJAX逐次送信', [url, sys])
374
374
  },
@@ -378,7 +378,7 @@ export default {
378
378
  type: 'func',
379
379
  josi: [['まで', 'へ', 'に'], ['を']],
380
380
  pure: true,
381
- fn: function (url: any, params: any, sys: any) {
381
+ fn: function(url: any, params: any, sys: any) {
382
382
  if (!sys.resolve) { throw new Error('『POST送信』は『逐次実行』構文内で利用する必要があります。') }
383
383
  sys.resolveCount++
384
384
  const resolve = sys.resolve
@@ -406,7 +406,7 @@ export default {
406
406
  type: 'func',
407
407
  josi: [['まで', 'へ', 'に'], ['を']],
408
408
  pure: true,
409
- fn: function (url: any, params: any, sys: any) {
409
+ fn: function(url: any, params: any, sys: any) {
410
410
  if (!sys.resolve) { throw new Error('『POSTフォーム逐次送信』は『逐次実行』構文内で利用する必要があります。') }
411
411
  sys.resolveCount++
412
412
  const resolve = sys.resolve
@@ -1,4 +1,3 @@
1
- /* eslint-disable quote-props */
2
1
  export default {
3
2
  // @オーディオ
4
3
  'オーディオ開': {
@@ -1,11 +1,11 @@
1
- /* eslint-disable quote-props */
1
+
2
2
  export default {
3
3
  // @オーディオ
4
4
  'オーディオ開': { // @オーディオファイルのURLを指定して、オーディオを読み込み、Audioオブジェクトを返す // @おーでぃおひらく
5
5
  type: 'func',
6
6
  josi: [['を', 'の']],
7
7
  pure: true,
8
- fn: function (url: any, sys: any) {
8
+ fn: function(url: any, sys: any) {
9
9
  const a = new Audio()
10
10
  a.src = url
11
11
  return a
@@ -16,7 +16,7 @@ export default {
16
16
  type: 'func',
17
17
  josi: [['を']],
18
18
  pure: true,
19
- fn: function (obj: any, sys: any) {
19
+ fn: function(obj: any, sys: any) {
20
20
  if (!obj) { throw new Error('オーディオ再生する前に、オーディオ開くで音声ファイルを読み込んでください') }
21
21
  obj.loop = false
22
22
  obj.play()
@@ -27,7 +27,7 @@ export default {
27
27
  type: 'func',
28
28
  josi: [['を']],
29
29
  pure: true,
30
- fn: function (obj: any, sys: any) {
30
+ fn: function(obj: any, sys: any) {
31
31
  if (!obj) { throw new Error('オーディオループ再生する前に、オーディオ開くで音声ファイルを読み込んでください') }
32
32
  obj.loop = true
33
33
  obj.play()
@@ -38,7 +38,7 @@ export default {
38
38
  type: 'func',
39
39
  josi: [['を']],
40
40
  pure: true,
41
- fn: function (obj: any, sys: any) {
41
+ fn: function(obj: any, sys: any) {
42
42
  if (!obj) { throw new Error('オーディオ停止する前に、オーディオ開くで音声ファイルを読み込んでください') }
43
43
  obj.pause()
44
44
  obj.currentTime = 0 // 暫定
@@ -53,7 +53,7 @@ export default {
53
53
  type: 'func',
54
54
  josi: [['を']],
55
55
  pure: true,
56
- fn: function (obj: any, sys: any) {
56
+ fn: function(obj: any, sys: any) {
57
57
  if (!obj) { throw new Error('オーディオ一時停止する前に、オーディオ開くで音声ファイルを読み込んでください') }
58
58
  obj.pause()
59
59
  },
@@ -63,7 +63,7 @@ export default {
63
63
  type: 'func',
64
64
  josi: [['の', 'から']],
65
65
  pure: true,
66
- fn: function (obj: any, sys: any) {
66
+ fn: function(obj: any, sys: any) {
67
67
  if (!obj) { throw new Error('オーディオ音量取得する前に、オーディオ開くで音声ファイルを読み込んでください') }
68
68
  return obj.volume
69
69
  }
@@ -72,7 +72,7 @@ export default {
72
72
  type: 'func',
73
73
  josi: [['を'], ['に', 'へ']],
74
74
  pure: true,
75
- fn: function (obj: any, v: any, sys: any) {
75
+ fn: function(obj: any, v: any, sys: any) {
76
76
  if (!obj) { throw new Error('オーディオ音量設定する前に、オーディオ開くで音声ファイルを読み込んでください') }
77
77
  obj.volume = v
78
78
  },
@@ -82,7 +82,7 @@ export default {
82
82
  type: 'func',
83
83
  josi: [['の', 'から']],
84
84
  pure: true,
85
- fn: function (obj: any, sys: any) {
85
+ fn: function(obj: any, sys: any) {
86
86
  if (!obj) { throw new Error('オーディオ長取得する前に、オーディオ開くで音声ファイルを読み込んでください') }
87
87
  return obj.duration
88
88
  }
@@ -91,7 +91,7 @@ export default {
91
91
  type: 'func',
92
92
  josi: [['の', 'から']],
93
93
  pure: true,
94
- fn: function (obj: any, sys: any) {
94
+ fn: function(obj: any, sys: any) {
95
95
  if (!obj) { throw new Error('オーディオ再生位置取得する前に、オーディオ開くで音声ファイルを読み込んでください') }
96
96
  return obj.currentTime
97
97
  }
@@ -100,7 +100,7 @@ export default {
100
100
  type: 'func',
101
101
  josi: [['を'], ['に', 'へ']],
102
102
  pure: true,
103
- fn: function (obj: any, v: any, sys: any) {
103
+ fn: function(obj: any, v: any, sys: any) {
104
104
  if (!obj) { throw new Error('オーディオ再生位置設定する前に、オーディオ開くで音声ファイルを読み込んでください') }
105
105
  obj.currentTime = v
106
106
  },
@@ -9,7 +9,7 @@ export default {
9
9
  josi: [['の', 'に', 'へ', 'で']],
10
10
  pure: true,
11
11
  asyncFn: true,
12
- fn: async function (v: any, sys: NakoSystem) {
12
+ fn: async function(v: any, sys: NakoSystem) {
13
13
  const options = sys.__getSysVar('カメラオプション')
14
14
  const stream = await navigator.mediaDevices.getUserMedia(options)
15
15
  v.srcObject = stream
@@ -18,7 +18,7 @@ export default {
18
18
  v.width = settings.width
19
19
  v.height = settings.height
20
20
  }
21
- v.onloadedmetadata = function () {
21
+ v.onloadedmetadata = function() {
22
22
  v.play()
23
23
  }
24
24
  sys.tags.usingCamera = true
@@ -30,7 +30,7 @@ export default {
30
30
  type: 'func',
31
31
  josi: [['の']],
32
32
  pure: true,
33
- fn: function (v: any, sys: NakoSystem) {
33
+ fn: function(v: any, sys: NakoSystem) {
34
34
  if (v) {
35
35
  sys.__exec('メディアストリーム停止', [v, sys])
36
36
  v.srcObject = null
@@ -44,7 +44,7 @@ export default {
44
44
  type: 'func',
45
45
  josi: [['の']],
46
46
  pure: true,
47
- fn: function (v: any, sys: NakoSystem) {
47
+ fn: function(v: any, sys: NakoSystem) {
48
48
  if (v && v.play) {
49
49
  v.play()
50
50
  }
@@ -55,7 +55,7 @@ export default {
55
55
  type: 'func',
56
56
  josi: [['の']],
57
57
  pure: true,
58
- fn: function (v: any, sys: NakoSystem) {
58
+ fn: function(v: any, sys: NakoSystem) {
59
59
  if (v && v.pause) {
60
60
  v.pause()
61
61
  }
@@ -66,7 +66,7 @@ export default {
66
66
  type: 'func',
67
67
  josi: [['の']],
68
68
  pure: true,
69
- fn: function (v: any, sys: NakoSystem) {
69
+ fn: function(v: any, sys: NakoSystem) {
70
70
  if (v && v.srcObject && v.srcObject.getVideoTracks) {
71
71
  const tracks = v.srcObject.getVideoTracks()
72
72
  if (tracks.length > 0) {
@@ -84,7 +84,7 @@ export default {
84
84
  josi: [],
85
85
  pure: true,
86
86
  asyncFn: true,
87
- fn: async function (sys: NakoSystem) {
87
+ fn: async function(sys: NakoSystem) {
88
88
  const options = sys.__getSysVar('カメラオプション')
89
89
  const stream = await navigator.mediaDevices.getUserMedia(options)
90
90
  return stream
@@ -95,7 +95,7 @@ export default {
95
95
  type: 'func',
96
96
  josi: [['の']],
97
97
  pure: true,
98
- fn: function (v:any, sys: NakoSystem) {
98
+ fn: function(v:any, sys: NakoSystem) {
99
99
  if (v && v.srcObject && v.srcObject.getVideoTracks) {
100
100
  const tracks = v.srcObject.getVideoTracks()
101
101
  for (const track of tracks) {
@@ -1,4 +1,3 @@
1
- /* eslint-disable quote-props */
2
1
  const errMsgCanvasInit = '描画を行うためには、HTML内にcanvasを配置し、idを振って『描画開始』命令に指定します。';
3
2
  export default {
4
3
  // @描画
@@ -374,7 +373,6 @@ export default {
374
373
  '描画する座標とその位置の4つか、使用する座標と使用する位置と描画する座標と大きさの8つだけです。';
375
374
  if (img && sxy) {
376
375
  if (!Array.isArray(sxy) && Array.isArray(img)) { // 逆になっていれば入れ替える
377
- // eslint-disable-next-line no-proto
378
376
  if (typeof sxy === 'string' || String(sxy.__proto__) === '[object HTMLImageElement]') {
379
377
  const sw = img;
380
378
  img = sxy;