@dan-uni/dan-any 0.2.6 → 0.4.7
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/README.md +9 -2
- package/dist/index.js +1130 -431
- package/dist/index.umd.min.js +5562 -5211
- package/dist/src/ass-gen/ass/create.d.ts +2 -1
- package/dist/src/ass-gen/ass/raw.d.ts +6 -2
- package/dist/src/ass-gen/index.d.ts +2 -0
- package/dist/src/index.d.ts +71 -13
- package/dist/src/proto/gen/bili/dm_pb.d.ts +1 -1
- package/dist/src/proto/gen/danuni_pb.d.ts +35 -8
- package/dist/src/utils/dm-gen.d.ts +22 -40
- package/dist/src/utils/id-gen.d.ts +8 -32
- package/dist/src/utils/platform.d.ts +24 -0
- package/package.json +10 -9
- package/src/ass-gen/__tests__/898651903.xml.ass +1 -1
- package/src/ass-gen/ass/create.ts +12 -2
- package/src/ass-gen/ass/raw.ts +14 -5
- package/src/ass-gen/index.ts +12 -4
- package/src/ass-gen/util/danconvert.ts +2 -2
- package/src/index.ts +173 -40
- package/src/proto/gen/bili/dm_pb.ts +3 -3
- package/src/proto/gen/danuni_pb.ts +46 -14
- package/src/proto/src/danuni.proto +11 -3
- package/src/utils/dm-gen.test.ts +12 -3
- package/src/utils/dm-gen.ts +54 -59
- package/src/utils/id-gen.ts +15 -62
- package/src/utils/platform.ts +38 -0
- package/tsconfig.json +12 -16
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
- 获取一组弹幕中的共通值
|
|
10
10
|
- 对弹幕按一定key值进行分组
|
|
11
11
|
- 合并较短时间内出现的重复弹幕
|
|
12
|
+
- 管道式插件系统
|
|
12
13
|
|
|
13
14
|
## Formats 支持转换的格式
|
|
14
15
|
|
|
@@ -23,6 +24,12 @@
|
|
|
23
24
|
- [x] 弹弹Play
|
|
24
25
|
- [x] ASS `双向(部分支持,见下)`
|
|
25
26
|
|
|
27
|
+
## Plguins 插件
|
|
28
|
+
|
|
29
|
+
插件的使用方法参见对应路径下README.md
|
|
30
|
+
|
|
31
|
+
- [dan-any-plugin-detalu](https://github.com/ani-uni/danuni/tree/master/packages/dan-any-plugin-detalu): 基于pakku.js的弹幕过滤器
|
|
32
|
+
|
|
26
33
|
### ASS Raw 字段
|
|
27
34
|
|
|
28
35
|
为便于由ASS格式还原,由本工具生成的ASS弹幕格式中,包含以下字段:`RawCompressType` `RawBaseType` `Raw`
|
|
@@ -36,6 +43,6 @@
|
|
|
36
43
|
## License 许可证
|
|
37
44
|
|
|
38
45
|
Released under the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) 3.0.
|
|
39
|
-
本库采用 LGPL 3.0 许可证发布。
|
|
46
|
+
本库采用 LGPL 3.0 or later 许可证发布。
|
|
40
47
|
|
|
41
|
-
[^1]: 对于`src/ass-gen`内的文件,使用了[justorez/biliy](https://github.com/justorez/biliy)的代码(MIT LICENSE),并使用了AI进行修改与修复,同时支持了更优的Raw还原功能。
|
|
48
|
+
[^1]: 对于`src/ass-gen`内的文件,使用了[justorez/biliy](https://github.com/justorez/biliy)的代码(MIT LICENSE),并使用了AI进行修改与修复,同时支持了更优的Raw还原功能。
|