w-dwdata-tweq 1.0.0

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 (58) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.js +55 -0
  4. package/.jsdoc +25 -0
  5. package/LICENSE +21 -0
  6. package/README.md +48 -0
  7. package/SECURITY.md +5 -0
  8. package/babel.config.js +16 -0
  9. package/dist/w-dwdata-tweq.umd.js +8 -0
  10. package/dist/w-dwdata-tweq.umd.js.map +1 -0
  11. package/docs/WDwdataTweq.mjs.html +318 -0
  12. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  17. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  18. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  19. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  27. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  28. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  29. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  30. package/docs/global.html +781 -0
  31. package/docs/index.html +84 -0
  32. package/docs/scripts/collapse.js +39 -0
  33. package/docs/scripts/commonNav.js +28 -0
  34. package/docs/scripts/linenumber.js +25 -0
  35. package/docs/scripts/nav.js +12 -0
  36. package/docs/scripts/polyfill.js +4 -0
  37. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  38. package/docs/scripts/prettify/lang-css.js +2 -0
  39. package/docs/scripts/prettify/prettify.js +28 -0
  40. package/docs/scripts/search.js +99 -0
  41. package/docs/styles/jsdoc.css +776 -0
  42. package/docs/styles/prettify.css +80 -0
  43. package/g.downloadEqs.mjs +16 -0
  44. package/g.mjs +53 -0
  45. package/g.parseData.mjs +26 -0
  46. package/package.json +34 -0
  47. package/script.txt +17 -0
  48. package/src/WDwdataTweq.mjs +246 -0
  49. package/src/cropPic.mjs +15 -0
  50. package/src/downloadEqs.mjs +124 -0
  51. package/src/downloadFile.mjs +77 -0
  52. package/src/downloadPics.mjs +57 -0
  53. package/src/parseData.mjs +152 -0
  54. package/test/WDwdataTweq.test.mjs +150 -0
  55. package/toolg/addVersion.mjs +4 -0
  56. package/toolg/cleanFolder.mjs +4 -0
  57. package/toolg/gDistRollup.mjs +26 -0
  58. package/toolg/modifyReadme.mjs +4 -0
@@ -0,0 +1,781 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Global - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#WDwdataTweq">WDwdataTweq</a></li></ul>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">Global</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+ <h2>
51
+
52
+
53
+
54
+ </h2>
55
+
56
+
57
+ </header>
58
+
59
+ <article>
60
+
61
+ <div class="container-overview">
62
+
63
+
64
+
65
+ <dl class="details">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ </dl>
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ </div>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ <h3 class="subsection-title">Methods</h3>
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <h4 class="name" id="WDwdataTweq"><span class="type-signature type-signature-async">(async) </span>WDwdataTweq<span class="signature">(yearStart, yearEnd, opt<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4>
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <dl class="details">
141
+
142
+ <dt class="tag-description">Description:</dt>
143
+ <dd class="tag-description"><ul class="dummy"><li><p>下載台灣氣象署地震資料</p></li></ul></dd>
144
+
145
+
146
+
147
+ <dt class="tag-source">Source:</dt>
148
+ <dd class="tag-source"><ul class="dummy"><li>
149
+ <a href="WDwdataTweq.mjs.html">WDwdataTweq.mjs</a>, <a href="WDwdataTweq.mjs.html#line65">line 65</a>
150
+ </li></ul></dd>
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ </dl>
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <h5 class="h5-examples">Example</h5>
195
+
196
+ <pre class="prettyprint"><code>import WDwdataTweq from './src/WDwdataTweq.mjs'
197
  .catch((err) => {
1
198
  console.log(err)
2
199
  })
3
200
  delete msg.type
4
201
  console.log('change', msg)
202
+
203
+
204
+
205
+
206
+ <h5 class="h5-parameters">Parameters:</h5>
207
+
208
+
209
+ <table class="params">
210
+ <thead>
211
+ <tr>
212
+
213
+ <th>Name</th>
214
+
215
+
216
+ <th>Type</th>
217
+
218
+
219
+ <th>Attributes</th>
220
+
221
+
222
+
223
+ <th>Default</th>
224
+
225
+
226
+ <th class="last">Description</th>
227
+ </tr>
228
+ </thead>
229
+
230
+ <tbody>
231
+
232
+
233
+ <tr>
234
+
235
+ <td class="name"><code>yearStart</code></td>
236
+
237
+
238
+ <td class="type">
239
+
240
+
241
+ <span class="param-type">Integer</span>
242
+
243
+
244
+
245
+
246
+ </td>
247
+
248
+
249
+ <td class="attributes">
250
+
251
+
252
+
253
+
254
+
255
+ </td>
256
+
257
+
258
+
259
+ <td class="default">
260
+
261
+ </td>
262
+
263
+
264
+ <td class="description last"><p>輸入數據開始年整數</p></td>
265
+ </tr>
266
+
267
+
268
+
269
+ <tr>
270
+
271
+ <td class="name"><code>yearEnd</code></td>
272
+
273
+
274
+ <td class="type">
275
+
276
+
277
+ <span class="param-type">Integer</span>
278
+
279
+
280
+
281
+
282
+ </td>
283
+
284
+
285
+ <td class="attributes">
286
+
287
+
288
+
289
+
290
+
291
+ </td>
292
+
293
+
294
+
295
+ <td class="default">
296
+
297
+ </td>
298
+
299
+
300
+ <td class="description last"><p>輸入數據結束年整數</p></td>
301
+ </tr>
302
+
303
+
304
+
305
+ <tr>
306
+
307
+ <td class="name"><code>opt</code></td>
308
+
309
+
310
+ <td class="type">
311
+
312
+
313
+ <span class="param-type">Object</span>
314
+
315
+
316
+
317
+
318
+ </td>
319
+
320
+
321
+ <td class="attributes">
322
+
323
+ &lt;optional><br>
324
+
325
+
326
+
327
+
328
+
329
+ </td>
330
+
331
+
332
+
333
+ <td class="default">
334
+
335
+ <code>{}</code>
336
+
337
+ </td>
338
+
339
+
340
+ <td class="description last"><p>輸入設定物件,預設{}</p>
341
+ <h6>Properties</h6>
342
+
343
+
344
+ <table class="params">
345
+ <thead>
346
+ <tr>
347
+
348
+ <th>Name</th>
349
+
350
+
351
+ <th>Type</th>
352
+
353
+
354
+ <th>Attributes</th>
355
+
356
+
357
+
358
+
359
+ <th class="last">Description</th>
360
+ </tr>
361
+ </thead>
362
+
363
+ <tbody>
364
+
365
+
366
+ <tr>
367
+
368
+ <td class="name"><code>keyId</code></td>
369
+
370
+
371
+ <td class="type">
372
+
373
+
374
+ <span class="param-type">String</span>
375
+
376
+
377
+
378
+
379
+ </td>
380
+
381
+
382
+ <td class="attributes">
383
+
384
+ &lt;optional><br>
385
+
386
+
387
+
388
+
389
+
390
+ </td>
391
+
392
+
393
+
394
+
395
+ <td class="description last"><p>輸入各筆數據之主鍵字串,預設keyId</p></td>
396
+ </tr>
397
+
398
+
399
+
400
+ <tr>
401
+
402
+ <td class="name"><code>fdDwAttime</code></td>
403
+
404
+
405
+ <td class="type">
406
+
407
+
408
+ <span class="param-type">String</span>
409
+
410
+
411
+
412
+
413
+ </td>
414
+
415
+
416
+ <td class="attributes">
417
+
418
+ &lt;optional><br>
419
+
420
+
421
+
422
+
423
+
424
+ </td>
425
+
426
+
427
+
428
+
429
+ <td class="description last"><p>輸入當前下載數據資料夾字串,預設'./_dwAttime'</p></td>
430
+ </tr>
431
+
432
+
433
+
434
+ <tr>
435
+
436
+ <td class="name"><code>fdDwCurrent</code></td>
437
+
438
+
439
+ <td class="type">
440
+
441
+
442
+ <span class="param-type">String</span>
443
+
444
+
445
+
446
+
447
+ </td>
448
+
449
+
450
+ <td class="attributes">
451
+
452
+ &lt;optional><br>
453
+
454
+
455
+
456
+
457
+
458
+ </td>
459
+
460
+
461
+
462
+
463
+ <td class="description last"><p>輸入已下載數據資料夾字串,預設'./_dwCurrent'</p></td>
464
+ </tr>
465
+
466
+
467
+
468
+ <tr>
469
+
470
+ <td class="name"><code>fdResult</code></td>
471
+
472
+
473
+ <td class="type">
474
+
475
+
476
+ <span class="param-type">String</span>
477
+
478
+
479
+
480
+
481
+ </td>
482
+
483
+
484
+ <td class="attributes">
485
+
486
+ &lt;optional><br>
487
+
488
+
489
+
490
+
491
+
492
+ </td>
493
+
494
+
495
+
496
+
497
+ <td class="description last"><p>輸入已下載數據所連動生成數據資料夾字串,預設'./_result'</p></td>
498
+ </tr>
499
+
500
+
501
+
502
+ <tr>
503
+
504
+ <td class="name"><code>fdTaskCpSrc</code></td>
505
+
506
+
507
+ <td class="type">
508
+
509
+
510
+ <span class="param-type">String</span>
511
+
512
+
513
+
514
+
515
+ </td>
516
+
517
+
518
+ <td class="attributes">
519
+
520
+ &lt;optional><br>
521
+
522
+
523
+
524
+
525
+
526
+ </td>
527
+
528
+
529
+
530
+
531
+ <td class="description last"><p>輸入任務狀態之來源端資料夾字串,預設'./_taskCpSrc'</p></td>
532
+ </tr>
533
+
534
+
535
+
536
+ <tr>
537
+
538
+ <td class="name"><code>funDownload</code></td>
539
+
540
+
541
+ <td class="type">
542
+
543
+
544
+ <span class="param-type">function</span>
545
+
546
+
547
+
548
+
549
+ </td>
550
+
551
+
552
+ <td class="attributes">
553
+
554
+ &lt;optional><br>
555
+
556
+
557
+
558
+
559
+
560
+ </td>
561
+
562
+
563
+
564
+
565
+ <td class="description last"><p>輸入自定義下載函數,回傳資料陣列</p></td>
566
+ </tr>
567
+
568
+
569
+
570
+ <tr>
571
+
572
+ <td class="name"><code>funGetCurrent</code></td>
573
+
574
+
575
+ <td class="type">
576
+
577
+
578
+ <span class="param-type">function</span>
579
+
580
+
581
+
582
+
583
+ </td>
584
+
585
+
586
+ <td class="attributes">
587
+
588
+ &lt;optional><br>
589
+
590
+
591
+
592
+
593
+
594
+ </td>
595
+
596
+
597
+
598
+
599
+ <td class="description last"><p>輸入自定義取得當前資料函數,回傳資料陣列</p></td>
600
+ </tr>
601
+
602
+
603
+
604
+ <tr>
605
+
606
+ <td class="name"><code>funAdd</code></td>
607
+
608
+
609
+ <td class="type">
610
+
611
+
612
+ <span class="param-type">function</span>
613
+
614
+
615
+
616
+
617
+ </td>
618
+
619
+
620
+ <td class="attributes">
621
+
622
+ &lt;optional><br>
623
+
624
+
625
+
626
+
627
+
628
+ </td>
629
+
630
+
631
+
632
+
633
+ <td class="description last"><p>輸入當有新資料時,需要連動處理之函數</p></td>
634
+ </tr>
635
+
636
+
637
+
638
+ <tr>
639
+
640
+ <td class="name"><code>funModify</code></td>
641
+
642
+
643
+ <td class="type">
644
+
645
+
646
+ <span class="param-type">function</span>
647
+
648
+
649
+
650
+
651
+ </td>
652
+
653
+
654
+ <td class="attributes">
655
+
656
+ &lt;optional><br>
657
+
658
+
659
+
660
+
661
+
662
+ </td>
663
+
664
+
665
+
666
+
667
+ <td class="description last"><p>輸入當有資料需更新時,需要連動處理之函數</p></td>
668
+ </tr>
669
+
670
+
671
+
672
+ <tr>
673
+
674
+ <td class="name"><code>funRemove</code></td>
675
+
676
+
677
+ <td class="type">
678
+
679
+
680
+ <span class="param-type">function</span>
681
+
682
+
683
+
684
+
685
+ </td>
686
+
687
+
688
+ <td class="attributes">
689
+
690
+ &lt;optional><br>
691
+
692
+
693
+
694
+
695
+
696
+ </td>
697
+
698
+
699
+
700
+
701
+ <td class="description last"><p>輸入當有資料需刪除時,需要連動處理之函數</p></td>
702
+ </tr>
703
+
704
+
705
+ </tbody>
706
+ </table>
707
+
708
+ </td>
709
+ </tr>
710
+
711
+
712
+ </tbody>
713
+ </table>
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+ <h5 class="h5-returns">Returns:</h5>
731
+
732
+
733
+ <div class="param-desc">
734
+ <p>回傳事件物件,可呼叫函數on監聽change事件</p>
735
+ </div>
736
+
737
+
738
+
739
+ <dl class="param-type">
740
+ <dt>
741
+ Type
742
+ </dt>
743
+ <dd>
744
+
745
+ <span class="param-type">Object</span>
746
+
747
+
748
+
749
+ </dd>
750
+ </dl>
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+ </article>
763
+
764
+ </section>
765
+
766
+
767
+
768
+
769
+
770
+
771
+ </div>
772
+
773
+ <br class="clear">
774
+
775
+ <footer>
776
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Sat Aug 23 2025 22:29:56 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
777
+ </footer>
778
+
779
+ <script>prettyPrint();</script>
780
+ <script src="scripts/polyfill.js"></script>
781
+ <script src="scripts/linenumber.js"></script>
782
+
783
+
784
+
785
+ </body>
786
+ </html>