@dan-uni/dan-any 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -3
- package/dist/index.umd.min.js +10 -3
- package/package.json +3 -4
- package/src/ass-gen/__tests__/898651903.xml.ass +1498 -1374
- package/src/ass-gen/config.ts +2 -2
- package/src/index.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -5628,8 +5628,8 @@ const ass_gen_config = (overrides = {})=>{
|
|
|
5628
5628
|
2,
|
|
5629
5629
|
2
|
|
5630
5630
|
],
|
|
5631
|
-
playResX:
|
|
5632
|
-
playResY:
|
|
5631
|
+
playResX: 1920,
|
|
5632
|
+
playResY: 1080,
|
|
5633
5633
|
scrollTime: 8,
|
|
5634
5634
|
fixTime: 4,
|
|
5635
5635
|
opacity: 0.6,
|
|
@@ -5815,6 +5815,8 @@ class UniPool {
|
|
|
5815
5815
|
return this.toArtplayer();
|
|
5816
5816
|
case 'ddplay.json':
|
|
5817
5817
|
return this.toDDplay();
|
|
5818
|
+
case 'common.ass':
|
|
5819
|
+
return this.toASS();
|
|
5818
5820
|
default:
|
|
5819
5821
|
throw new Error('unknown format or unsupported now!');
|
|
5820
5822
|
}
|
|
@@ -5950,7 +5952,12 @@ class UniPool {
|
|
|
5950
5952
|
toASS(options = {
|
|
5951
5953
|
substyle: {}
|
|
5952
5954
|
}) {
|
|
5953
|
-
|
|
5955
|
+
const fn = this.shared.FCID;
|
|
5956
|
+
return generateASS(this, {
|
|
5957
|
+
filename: fn,
|
|
5958
|
+
title: fn,
|
|
5959
|
+
...options
|
|
5960
|
+
});
|
|
5954
5961
|
}
|
|
5955
5962
|
}
|
|
5956
5963
|
export { UniDM, dm_gen_namespaceObject as UniDMTools, id_gen_namespaceObject as UniIDTools, UniPool };
|
package/dist/index.umd.min.js
CHANGED
|
@@ -19621,8 +19621,8 @@
|
|
|
19621
19621
|
2,
|
|
19622
19622
|
2
|
|
19623
19623
|
],
|
|
19624
|
-
playResX:
|
|
19625
|
-
playResY:
|
|
19624
|
+
playResX: 1920,
|
|
19625
|
+
playResY: 1080,
|
|
19626
19626
|
scrollTime: 8,
|
|
19627
19627
|
fixTime: 4,
|
|
19628
19628
|
opacity: 0.6,
|
|
@@ -19808,6 +19808,8 @@
|
|
|
19808
19808
|
return this.toArtplayer();
|
|
19809
19809
|
case 'ddplay.json':
|
|
19810
19810
|
return this.toDDplay();
|
|
19811
|
+
case 'common.ass':
|
|
19812
|
+
return this.toASS();
|
|
19811
19813
|
default:
|
|
19812
19814
|
throw new Error('unknown format or unsupported now!');
|
|
19813
19815
|
}
|
|
@@ -19943,7 +19945,12 @@
|
|
|
19943
19945
|
toASS(options = {
|
|
19944
19946
|
substyle: {}
|
|
19945
19947
|
}) {
|
|
19946
|
-
|
|
19948
|
+
const fn = this.shared.FCID;
|
|
19949
|
+
return generateASS(this, {
|
|
19950
|
+
filename: fn,
|
|
19951
|
+
title: fn,
|
|
19952
|
+
...options
|
|
19953
|
+
});
|
|
19947
19954
|
}
|
|
19948
19955
|
}
|
|
19949
19956
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dan-uni/dan-any",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A danmaku transformer lib, supporting danmaku from different platforms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bangumi",
|
|
@@ -34,8 +34,7 @@
|
|
|
34
34
|
"base16384": "^1.0.0",
|
|
35
35
|
"canvas": "^3.1.0",
|
|
36
36
|
"fast-xml-parser": "^4.5.1",
|
|
37
|
-
"jssha": "^3.3.1"
|
|
38
|
-
"pako": "^2.1.0"
|
|
37
|
+
"jssha": "^3.3.1"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@bufbuild/buf": "^1.50.0",
|
|
@@ -44,4 +43,4 @@
|
|
|
44
43
|
"@types/pako": "^2.0.3",
|
|
45
44
|
"protobufjs": "^7.4.0"
|
|
46
45
|
}
|
|
47
|
-
}
|
|
46
|
+
}
|