@dan-uni/dan-any 0.2.0 → 0.2.3

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.
@@ -22,8 +22,8 @@ export default (overrides = {}): SubtitleStyle => {
22
22
  shadow: 0,
23
23
  bold: false,
24
24
  padding: [2, 2, 2, 2],
25
- playResX: 1280,
26
- playResY: 720,
25
+ playResX: 1920,
26
+ playResY: 1080,
27
27
  scrollTime: 8,
28
28
  fixTime: 4,
29
29
  opacity: 0.6,
package/src/index.ts CHANGED
@@ -237,6 +237,8 @@ export class UniPool {
237
237
  return this.toArtplayer()
238
238
  case 'ddplay.json':
239
239
  return this.toDDplay()
240
+ case 'common.ass':
241
+ return this.toASS()
240
242
  default:
241
243
  throw new Error('unknown format or unsupported now!')
242
244
  }
@@ -451,7 +453,8 @@ export class UniPool {
451
453
  return parseAssRawField(ass)
452
454
  }
453
455
  toASS(options: AssGenOptions = { substyle: {} }): string {
454
- return generateASS(this, options)
456
+ const fn = this.shared.FCID
457
+ return generateASS(this, { filename: fn, title: fn, ...options })
455
458
  }
456
459
  }
457
460