@vanduo-oss/vd3-cbun 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.
- package/CHANGELOG.md +50 -0
- package/LICENSE +22 -0
- package/README.md +160 -0
- package/SKILL.md +119 -0
- package/dist/charts/core.d.ts +273 -0
- package/dist/charts/index.cjs +1828 -0
- package/dist/charts/index.cjs.map +7 -0
- package/dist/charts/index.d.ts +65 -0
- package/dist/charts/index.js +1805 -0
- package/dist/charts/index.js.map +7 -0
- package/dist/charts/vd3-charts.css +51 -0
- package/dist/charts/vue.d.ts +86 -0
- package/dist/flowchart/core.d.ts +288 -0
- package/dist/flowchart/index.cjs +3447 -0
- package/dist/flowchart/index.cjs.map +7 -0
- package/dist/flowchart/index.d.ts +54 -0
- package/dist/flowchart/index.js +3424 -0
- package/dist/flowchart/index.js.map +7 -0
- package/dist/flowchart/vd3-flowchart.css +600 -0
- package/dist/flowchart/vue.d.ts +66 -0
- package/dist/hex-grid/core.d.ts +200 -0
- package/dist/hex-grid/hex-math.cjs +162 -0
- package/dist/hex-grid/hex-math.cjs.map +7 -0
- package/dist/hex-grid/hex-math.d.ts +119 -0
- package/dist/hex-grid/hex-math.js +141 -0
- package/dist/hex-grid/hex-math.js.map +7 -0
- package/dist/hex-grid/index.cjs +915 -0
- package/dist/hex-grid/index.cjs.map +7 -0
- package/dist/hex-grid/index.d.ts +15 -0
- package/dist/hex-grid/index.js +894 -0
- package/dist/hex-grid/index.js.map +7 -0
- package/dist/hex-grid/vue.d.ts +14 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +7 -0
- package/dist/meta.json +551 -0
- package/dist/music-player/core.d.ts +88 -0
- package/dist/music-player/index.cjs +1227 -0
- package/dist/music-player/index.cjs.map +7 -0
- package/dist/music-player/index.d.ts +12 -0
- package/dist/music-player/index.js +1204 -0
- package/dist/music-player/index.js.map +7 -0
- package/dist/music-player/vd3-music-player.css +829 -0
- package/dist/music-player/vue.d.ts +32 -0
- package/package.json +105 -0
package/dist/meta.json
ADDED
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
{
|
|
2
|
+
"inputs": {
|
|
3
|
+
"src/index.js": {
|
|
4
|
+
"bytes": 791,
|
|
5
|
+
"imports": [],
|
|
6
|
+
"format": "esm"
|
|
7
|
+
},
|
|
8
|
+
"src/charts/core.js": {
|
|
9
|
+
"bytes": 51976,
|
|
10
|
+
"imports": [],
|
|
11
|
+
"format": "esm"
|
|
12
|
+
},
|
|
13
|
+
"src/charts/vue.js": {
|
|
14
|
+
"bytes": 5821,
|
|
15
|
+
"imports": [
|
|
16
|
+
{
|
|
17
|
+
"path": "vue",
|
|
18
|
+
"kind": "import-statement",
|
|
19
|
+
"external": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "src/charts/core.js",
|
|
23
|
+
"kind": "import-statement",
|
|
24
|
+
"original": "./core.js"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"format": "esm"
|
|
28
|
+
},
|
|
29
|
+
"src/charts/index.js": {
|
|
30
|
+
"bytes": 629,
|
|
31
|
+
"imports": [
|
|
32
|
+
{
|
|
33
|
+
"path": "src/charts/vue.js",
|
|
34
|
+
"kind": "import-statement",
|
|
35
|
+
"original": "./vue.js"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "src/charts/core.js",
|
|
39
|
+
"kind": "import-statement",
|
|
40
|
+
"original": "./core.js"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"format": "esm"
|
|
44
|
+
},
|
|
45
|
+
"src/flowchart/layout.js": {
|
|
46
|
+
"bytes": 7394,
|
|
47
|
+
"imports": [],
|
|
48
|
+
"format": "esm"
|
|
49
|
+
},
|
|
50
|
+
"src/flowchart/core.js": {
|
|
51
|
+
"bytes": 124478,
|
|
52
|
+
"imports": [
|
|
53
|
+
{
|
|
54
|
+
"path": "src/flowchart/layout.js",
|
|
55
|
+
"kind": "import-statement",
|
|
56
|
+
"original": "./layout.js"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"path": "src/flowchart/layout.js",
|
|
60
|
+
"kind": "import-statement",
|
|
61
|
+
"original": "./layout.js"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"format": "esm"
|
|
65
|
+
},
|
|
66
|
+
"src/flowchart/vue.js": {
|
|
67
|
+
"bytes": 3283,
|
|
68
|
+
"imports": [
|
|
69
|
+
{
|
|
70
|
+
"path": "vue",
|
|
71
|
+
"kind": "import-statement",
|
|
72
|
+
"external": true
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "src/flowchart/core.js",
|
|
76
|
+
"kind": "import-statement",
|
|
77
|
+
"original": "./core.js"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"format": "esm"
|
|
81
|
+
},
|
|
82
|
+
"src/flowchart/index.js": {
|
|
83
|
+
"bytes": 484,
|
|
84
|
+
"imports": [
|
|
85
|
+
{
|
|
86
|
+
"path": "src/flowchart/vue.js",
|
|
87
|
+
"kind": "import-statement",
|
|
88
|
+
"original": "./vue.js"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "src/flowchart/core.js",
|
|
92
|
+
"kind": "import-statement",
|
|
93
|
+
"original": "./core.js"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"format": "esm"
|
|
97
|
+
},
|
|
98
|
+
"src/hex-grid/hex-math.js": {
|
|
99
|
+
"bytes": 6833,
|
|
100
|
+
"imports": [],
|
|
101
|
+
"format": "esm"
|
|
102
|
+
},
|
|
103
|
+
"src/hex-grid/core.js": {
|
|
104
|
+
"bytes": 24607,
|
|
105
|
+
"imports": [
|
|
106
|
+
{
|
|
107
|
+
"path": "src/hex-grid/hex-math.js",
|
|
108
|
+
"kind": "import-statement",
|
|
109
|
+
"original": "./hex-math.js"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"path": "<runtime>",
|
|
113
|
+
"kind": "import-statement",
|
|
114
|
+
"external": true
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"format": "esm"
|
|
118
|
+
},
|
|
119
|
+
"src/hex-grid/vue.js": {
|
|
120
|
+
"bytes": 2355,
|
|
121
|
+
"imports": [
|
|
122
|
+
{
|
|
123
|
+
"path": "vue",
|
|
124
|
+
"kind": "import-statement",
|
|
125
|
+
"external": true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"path": "src/hex-grid/core.js",
|
|
129
|
+
"kind": "import-statement",
|
|
130
|
+
"original": "./core.js"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"format": "esm"
|
|
134
|
+
},
|
|
135
|
+
"src/hex-grid/index.js": {
|
|
136
|
+
"bytes": 459,
|
|
137
|
+
"imports": [
|
|
138
|
+
{
|
|
139
|
+
"path": "src/hex-grid/vue.js",
|
|
140
|
+
"kind": "import-statement",
|
|
141
|
+
"original": "./vue.js"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"path": "src/hex-grid/core.js",
|
|
145
|
+
"kind": "import-statement",
|
|
146
|
+
"original": "./core.js"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"format": "esm"
|
|
150
|
+
},
|
|
151
|
+
"src/music-player/core.js": {
|
|
152
|
+
"bytes": 49138,
|
|
153
|
+
"imports": [],
|
|
154
|
+
"format": "esm"
|
|
155
|
+
},
|
|
156
|
+
"src/music-player/vue.js": {
|
|
157
|
+
"bytes": 2222,
|
|
158
|
+
"imports": [
|
|
159
|
+
{
|
|
160
|
+
"path": "vue",
|
|
161
|
+
"kind": "import-statement",
|
|
162
|
+
"external": true
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"path": "src/music-player/core.js",
|
|
166
|
+
"kind": "import-statement",
|
|
167
|
+
"original": "./core.js"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"format": "esm"
|
|
171
|
+
},
|
|
172
|
+
"src/music-player/index.js": {
|
|
173
|
+
"bytes": 319,
|
|
174
|
+
"imports": [
|
|
175
|
+
{
|
|
176
|
+
"path": "src/music-player/vue.js",
|
|
177
|
+
"kind": "import-statement",
|
|
178
|
+
"original": "./vue.js"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"path": "src/music-player/core.js",
|
|
182
|
+
"kind": "import-statement",
|
|
183
|
+
"original": "./core.js"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"format": "esm"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"outputs": {
|
|
190
|
+
"dist/index.js.map": {
|
|
191
|
+
"imports": [],
|
|
192
|
+
"exports": [],
|
|
193
|
+
"inputs": {},
|
|
194
|
+
"bytes": 1029
|
|
195
|
+
},
|
|
196
|
+
"dist/index.js": {
|
|
197
|
+
"imports": [],
|
|
198
|
+
"exports": [
|
|
199
|
+
"VD3_CBUN_VERSIONS"
|
|
200
|
+
],
|
|
201
|
+
"entryPoint": "src/index.js",
|
|
202
|
+
"inputs": {
|
|
203
|
+
"src/index.js": {
|
|
204
|
+
"bytesInOutput": 134
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"bytes": 216
|
|
208
|
+
},
|
|
209
|
+
"dist/charts/index.js.map": {
|
|
210
|
+
"imports": [],
|
|
211
|
+
"exports": [],
|
|
212
|
+
"inputs": {},
|
|
213
|
+
"bytes": 103317
|
|
214
|
+
},
|
|
215
|
+
"dist/charts/index.js": {
|
|
216
|
+
"imports": [
|
|
217
|
+
{
|
|
218
|
+
"path": "vue",
|
|
219
|
+
"kind": "import-statement",
|
|
220
|
+
"external": true
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"exports": [
|
|
224
|
+
"AreaChart",
|
|
225
|
+
"BarChart",
|
|
226
|
+
"DonutChart",
|
|
227
|
+
"LineChart",
|
|
228
|
+
"PieChart",
|
|
229
|
+
"ScatterChart",
|
|
230
|
+
"VD_CHARTS_VERSION",
|
|
231
|
+
"VdAreaChart",
|
|
232
|
+
"VdBarChart",
|
|
233
|
+
"VdChart",
|
|
234
|
+
"VdDonutChart",
|
|
235
|
+
"VdLineChart",
|
|
236
|
+
"VdPieChart",
|
|
237
|
+
"VdScatterChart",
|
|
238
|
+
"arcPath",
|
|
239
|
+
"areaPath",
|
|
240
|
+
"createAccessor",
|
|
241
|
+
"linePath",
|
|
242
|
+
"niceDomain",
|
|
243
|
+
"resolveTheme",
|
|
244
|
+
"scaleBand",
|
|
245
|
+
"scaleLinear",
|
|
246
|
+
"scaleOrdinal",
|
|
247
|
+
"scalePoint",
|
|
248
|
+
"scaleTime",
|
|
249
|
+
"ticks"
|
|
250
|
+
],
|
|
251
|
+
"entryPoint": "src/charts/index.js",
|
|
252
|
+
"inputs": {
|
|
253
|
+
"src/charts/vue.js": {
|
|
254
|
+
"bytesInOutput": 4985
|
|
255
|
+
},
|
|
256
|
+
"src/charts/core.js": {
|
|
257
|
+
"bytesInOutput": 50145
|
|
258
|
+
},
|
|
259
|
+
"src/charts/index.js": {
|
|
260
|
+
"bytesInOutput": 0
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"bytes": 55608
|
|
264
|
+
},
|
|
265
|
+
"dist/charts/index.cjs.map": {
|
|
266
|
+
"imports": [],
|
|
267
|
+
"exports": [],
|
|
268
|
+
"inputs": {},
|
|
269
|
+
"bytes": 104156
|
|
270
|
+
},
|
|
271
|
+
"dist/charts/index.cjs": {
|
|
272
|
+
"imports": [
|
|
273
|
+
{
|
|
274
|
+
"path": "vue",
|
|
275
|
+
"kind": "require-call",
|
|
276
|
+
"external": true
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"exports": [],
|
|
280
|
+
"entryPoint": "src/charts/index.js",
|
|
281
|
+
"inputs": {
|
|
282
|
+
"src/charts/index.js": {
|
|
283
|
+
"bytesInOutput": 937
|
|
284
|
+
},
|
|
285
|
+
"src/charts/vue.js": {
|
|
286
|
+
"bytesInOutput": 5064
|
|
287
|
+
},
|
|
288
|
+
"src/charts/core.js": {
|
|
289
|
+
"bytesInOutput": 50145
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"bytes": 57071
|
|
293
|
+
},
|
|
294
|
+
"dist/flowchart/index.js.map": {
|
|
295
|
+
"imports": [],
|
|
296
|
+
"exports": [],
|
|
297
|
+
"inputs": {},
|
|
298
|
+
"bytes": 230047
|
|
299
|
+
},
|
|
300
|
+
"dist/flowchart/index.js": {
|
|
301
|
+
"imports": [
|
|
302
|
+
{
|
|
303
|
+
"path": "vue",
|
|
304
|
+
"kind": "import-statement",
|
|
305
|
+
"external": true
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"exports": [
|
|
309
|
+
"FLOWCHART_EDGE_MARKERS",
|
|
310
|
+
"FLOWCHART_EDGE_ROUTES",
|
|
311
|
+
"FLOWCHART_NODE_TYPES",
|
|
312
|
+
"FLOWCHART_PORTS",
|
|
313
|
+
"LAYOUT_MODES",
|
|
314
|
+
"VD_FLOWCHART_VERSION",
|
|
315
|
+
"VdFlowchart",
|
|
316
|
+
"VdFlowchartCore",
|
|
317
|
+
"computeLayout"
|
|
318
|
+
],
|
|
319
|
+
"entryPoint": "src/flowchart/index.js",
|
|
320
|
+
"inputs": {
|
|
321
|
+
"src/flowchart/vue.js": {
|
|
322
|
+
"bytesInOutput": 2621
|
|
323
|
+
},
|
|
324
|
+
"src/flowchart/layout.js": {
|
|
325
|
+
"bytesInOutput": 6422
|
|
326
|
+
},
|
|
327
|
+
"src/flowchart/core.js": {
|
|
328
|
+
"bytesInOutput": 118967
|
|
329
|
+
},
|
|
330
|
+
"src/flowchart/index.js": {
|
|
331
|
+
"bytesInOutput": 0
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"bytes": 128374
|
|
335
|
+
},
|
|
336
|
+
"dist/flowchart/index.cjs.map": {
|
|
337
|
+
"imports": [],
|
|
338
|
+
"exports": [],
|
|
339
|
+
"inputs": {},
|
|
340
|
+
"bytes": 230671
|
|
341
|
+
},
|
|
342
|
+
"dist/flowchart/index.cjs": {
|
|
343
|
+
"imports": [
|
|
344
|
+
{
|
|
345
|
+
"path": "vue",
|
|
346
|
+
"kind": "require-call",
|
|
347
|
+
"external": true
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"exports": [],
|
|
351
|
+
"entryPoint": "src/flowchart/index.js",
|
|
352
|
+
"inputs": {
|
|
353
|
+
"src/flowchart/index.js": {
|
|
354
|
+
"bytesInOutput": 502
|
|
355
|
+
},
|
|
356
|
+
"src/flowchart/vue.js": {
|
|
357
|
+
"bytesInOutput": 2684
|
|
358
|
+
},
|
|
359
|
+
"src/flowchart/layout.js": {
|
|
360
|
+
"bytesInOutput": 6422
|
|
361
|
+
},
|
|
362
|
+
"src/flowchart/core.js": {
|
|
363
|
+
"bytesInOutput": 118967
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"bytes": 129540
|
|
367
|
+
},
|
|
368
|
+
"dist/hex-grid/index.js.map": {
|
|
369
|
+
"imports": [],
|
|
370
|
+
"exports": [],
|
|
371
|
+
"inputs": {},
|
|
372
|
+
"bytes": 55514
|
|
373
|
+
},
|
|
374
|
+
"dist/hex-grid/index.js": {
|
|
375
|
+
"imports": [
|
|
376
|
+
{
|
|
377
|
+
"path": "vue",
|
|
378
|
+
"kind": "import-statement",
|
|
379
|
+
"external": true
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"exports": [
|
|
383
|
+
"VD_HEX_VERSION",
|
|
384
|
+
"VdHexGrid",
|
|
385
|
+
"VdHexGridCore"
|
|
386
|
+
],
|
|
387
|
+
"entryPoint": "src/hex-grid/index.js",
|
|
388
|
+
"inputs": {
|
|
389
|
+
"src/hex-grid/vue.js": {
|
|
390
|
+
"bytesInOutput": 1808
|
|
391
|
+
},
|
|
392
|
+
"src/hex-grid/hex-math.js": {
|
|
393
|
+
"bytesInOutput": 3574
|
|
394
|
+
},
|
|
395
|
+
"src/hex-grid/core.js": {
|
|
396
|
+
"bytesInOutput": 22382
|
|
397
|
+
},
|
|
398
|
+
"src/hex-grid/index.js": {
|
|
399
|
+
"bytesInOutput": 0
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"bytes": 28298
|
|
403
|
+
},
|
|
404
|
+
"dist/hex-grid/index.cjs.map": {
|
|
405
|
+
"imports": [],
|
|
406
|
+
"exports": [],
|
|
407
|
+
"inputs": {},
|
|
408
|
+
"bytes": 56070
|
|
409
|
+
},
|
|
410
|
+
"dist/hex-grid/index.cjs": {
|
|
411
|
+
"imports": [
|
|
412
|
+
{
|
|
413
|
+
"path": "vue",
|
|
414
|
+
"kind": "require-call",
|
|
415
|
+
"external": true
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"exports": [],
|
|
419
|
+
"entryPoint": "src/hex-grid/index.js",
|
|
420
|
+
"inputs": {
|
|
421
|
+
"src/hex-grid/index.js": {
|
|
422
|
+
"bytesInOutput": 204
|
|
423
|
+
},
|
|
424
|
+
"src/hex-grid/vue.js": {
|
|
425
|
+
"bytesInOutput": 1903
|
|
426
|
+
},
|
|
427
|
+
"src/hex-grid/hex-math.js": {
|
|
428
|
+
"bytesInOutput": 3574
|
|
429
|
+
},
|
|
430
|
+
"src/hex-grid/core.js": {
|
|
431
|
+
"bytesInOutput": 22382
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"bytes": 29298
|
|
435
|
+
},
|
|
436
|
+
"dist/hex-grid/hex-math.js.map": {
|
|
437
|
+
"imports": [],
|
|
438
|
+
"exports": [],
|
|
439
|
+
"inputs": {},
|
|
440
|
+
"bytes": 10584
|
|
441
|
+
},
|
|
442
|
+
"dist/hex-grid/hex-math.js": {
|
|
443
|
+
"imports": [],
|
|
444
|
+
"exports": [
|
|
445
|
+
"DEFAULT_TERRAIN_COLOR",
|
|
446
|
+
"TERRAIN_COLORS",
|
|
447
|
+
"TERRAIN_MOVEMENT_COSTS",
|
|
448
|
+
"TERRAIN_YIELDS",
|
|
449
|
+
"TerrainType",
|
|
450
|
+
"axialRound",
|
|
451
|
+
"getAdjacentHexes",
|
|
452
|
+
"getHexCorners",
|
|
453
|
+
"getMovementCost",
|
|
454
|
+
"getTerrainColor",
|
|
455
|
+
"getTerrainYields",
|
|
456
|
+
"hexDistance",
|
|
457
|
+
"hexToPixel",
|
|
458
|
+
"isPassable",
|
|
459
|
+
"pixelToHex",
|
|
460
|
+
"rotatePoint",
|
|
461
|
+
"unrotatePoint"
|
|
462
|
+
],
|
|
463
|
+
"entryPoint": "src/hex-grid/hex-math.js",
|
|
464
|
+
"inputs": {
|
|
465
|
+
"src/hex-grid/hex-math.js": {
|
|
466
|
+
"bytesInOutput": 3574
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"bytes": 3950
|
|
470
|
+
},
|
|
471
|
+
"dist/hex-grid/hex-math.cjs.map": {
|
|
472
|
+
"imports": [],
|
|
473
|
+
"exports": [],
|
|
474
|
+
"inputs": {},
|
|
475
|
+
"bytes": 10708
|
|
476
|
+
},
|
|
477
|
+
"dist/hex-grid/hex-math.cjs": {
|
|
478
|
+
"imports": [],
|
|
479
|
+
"exports": [],
|
|
480
|
+
"entryPoint": "src/hex-grid/hex-math.js",
|
|
481
|
+
"inputs": {
|
|
482
|
+
"src/hex-grid/hex-math.js": {
|
|
483
|
+
"bytesInOutput": 4350
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"bytes": 5216
|
|
487
|
+
},
|
|
488
|
+
"dist/music-player/index.js.map": {
|
|
489
|
+
"imports": [],
|
|
490
|
+
"exports": [],
|
|
491
|
+
"inputs": {},
|
|
492
|
+
"bytes": 81578
|
|
493
|
+
},
|
|
494
|
+
"dist/music-player/index.js": {
|
|
495
|
+
"imports": [
|
|
496
|
+
{
|
|
497
|
+
"path": "vue",
|
|
498
|
+
"kind": "import-statement",
|
|
499
|
+
"external": true
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"exports": [
|
|
503
|
+
"MusicPlayer",
|
|
504
|
+
"VD_MUSIC_PLAYER_VERSION",
|
|
505
|
+
"VdMusicPlayer"
|
|
506
|
+
],
|
|
507
|
+
"entryPoint": "src/music-player/index.js",
|
|
508
|
+
"inputs": {
|
|
509
|
+
"src/music-player/vue.js": {
|
|
510
|
+
"bytesInOutput": 1694
|
|
511
|
+
},
|
|
512
|
+
"src/music-player/core.js": {
|
|
513
|
+
"bytesInOutput": 42631
|
|
514
|
+
},
|
|
515
|
+
"src/music-player/index.js": {
|
|
516
|
+
"bytesInOutput": 0
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"bytes": 44513
|
|
520
|
+
},
|
|
521
|
+
"dist/music-player/index.cjs.map": {
|
|
522
|
+
"imports": [],
|
|
523
|
+
"exports": [],
|
|
524
|
+
"inputs": {},
|
|
525
|
+
"bytes": 81971
|
|
526
|
+
},
|
|
527
|
+
"dist/music-player/index.cjs": {
|
|
528
|
+
"imports": [
|
|
529
|
+
{
|
|
530
|
+
"path": "vue",
|
|
531
|
+
"kind": "require-call",
|
|
532
|
+
"external": true
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"exports": [],
|
|
536
|
+
"entryPoint": "src/music-player/index.js",
|
|
537
|
+
"inputs": {
|
|
538
|
+
"src/music-player/index.js": {
|
|
539
|
+
"bytesInOutput": 229
|
|
540
|
+
},
|
|
541
|
+
"src/music-player/vue.js": {
|
|
542
|
+
"bytesInOutput": 1741
|
|
543
|
+
},
|
|
544
|
+
"src/music-player/core.js": {
|
|
545
|
+
"bytesInOutput": 42631
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
"bytes": 45550
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export const VD_MUSIC_PLAYER_VERSION: string;
|
|
2
|
+
|
|
3
|
+
export interface MusicPlayerTrack {
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type MusicPlayerRepeatMode = 'off' | 'one' | 'all';
|
|
9
|
+
|
|
10
|
+
export interface MusicPlayerOptions {
|
|
11
|
+
tracks?: MusicPlayerTrack[];
|
|
12
|
+
volume?: number;
|
|
13
|
+
shuffle?: boolean;
|
|
14
|
+
repeat?: MusicPlayerRepeatMode;
|
|
15
|
+
showProgress?: boolean;
|
|
16
|
+
showPlaylist?: boolean;
|
|
17
|
+
autoAdvance?: boolean;
|
|
18
|
+
glass?: boolean;
|
|
19
|
+
detachable?: boolean;
|
|
20
|
+
floatingPosition?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | null;
|
|
21
|
+
draggable?: boolean;
|
|
22
|
+
minimizable?: boolean;
|
|
23
|
+
startMinimized?: boolean;
|
|
24
|
+
persistPosition?: boolean;
|
|
25
|
+
persistKey?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface MusicPlayerState {
|
|
29
|
+
isPlaying: boolean;
|
|
30
|
+
currentIndex: number;
|
|
31
|
+
currentTrack: MusicPlayerTrack | null;
|
|
32
|
+
volume: number;
|
|
33
|
+
shuffle: boolean;
|
|
34
|
+
repeat: MusicPlayerRepeatMode;
|
|
35
|
+
tracks: MusicPlayerTrack[];
|
|
36
|
+
isDetached: boolean;
|
|
37
|
+
isMinimized: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type MusicPlayerCorner = 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
41
|
+
|
|
42
|
+
export type MusicPlayerPosition = MusicPlayerCorner | { x: number; y: number };
|
|
43
|
+
|
|
44
|
+
export interface MusicPlayerApi {
|
|
45
|
+
version: string;
|
|
46
|
+
instances: Map<HTMLElement, unknown>;
|
|
47
|
+
defaults: Required<
|
|
48
|
+
Pick<
|
|
49
|
+
MusicPlayerOptions,
|
|
50
|
+
| 'tracks'
|
|
51
|
+
| 'volume'
|
|
52
|
+
| 'shuffle'
|
|
53
|
+
| 'repeat'
|
|
54
|
+
| 'showProgress'
|
|
55
|
+
| 'showPlaylist'
|
|
56
|
+
| 'autoAdvance'
|
|
57
|
+
| 'glass'
|
|
58
|
+
| 'detachable'
|
|
59
|
+
| 'draggable'
|
|
60
|
+
| 'minimizable'
|
|
61
|
+
| 'startMinimized'
|
|
62
|
+
| 'persistPosition'
|
|
63
|
+
| 'persistKey'
|
|
64
|
+
>
|
|
65
|
+
> & { floatingPosition: string | null };
|
|
66
|
+
initPlayer(container: HTMLElement, options?: MusicPlayerOptions): void;
|
|
67
|
+
play(container: HTMLElement): void;
|
|
68
|
+
pause(container: HTMLElement): void;
|
|
69
|
+
toggle(container: HTMLElement): void;
|
|
70
|
+
next(container: HTMLElement): void;
|
|
71
|
+
previous(container: HTMLElement): void;
|
|
72
|
+
setVolume(container: HTMLElement, value: number): void;
|
|
73
|
+
setTrack(container: HTMLElement, index: number): void;
|
|
74
|
+
shuffle(container: HTMLElement): void;
|
|
75
|
+
repeat(container: HTMLElement): void;
|
|
76
|
+
setRepeat(container: HTMLElement, mode: MusicPlayerRepeatMode): void;
|
|
77
|
+
detach(container: HTMLElement, position?: MusicPlayerCorner): void;
|
|
78
|
+
attach(container: HTMLElement): void;
|
|
79
|
+
minimize(container: HTMLElement): void;
|
|
80
|
+
expand(container: HTMLElement): void;
|
|
81
|
+
toggleMinimize(container: HTMLElement): void;
|
|
82
|
+
setPosition(container: HTMLElement, position: MusicPlayerPosition): void;
|
|
83
|
+
getState(container: HTMLElement): MusicPlayerState | null;
|
|
84
|
+
destroy(container: HTMLElement): void;
|
|
85
|
+
destroyAll(): void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export const MusicPlayer: MusicPlayerApi;
|