kipphi 2.1.0 → 2.1.1

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 CHANGED
@@ -1,7 +1,14 @@
1
+ # 用“奇谱”谱面内核将谱面解析为编辑器友好的格式!
2
+ 这是一个Phigros KPA、RPE谱面的解析器兼谱面操作系统。它是[KPA(奇谱发生器)](https://github.com/TeamZincs/KPA)的子项目。
3
+
4
+ “奇谱”来自荷兰化学家启普,他发明了“启普发生器”,用于生产气体并随时停止反应。
5
+
6
+ 在(Phigros 自制谱Wiki)[https://pgrfm.miraheze.org/wiki]了解更多。
7
+
1
8
  # Parse your chart into an editor-friendly format with Kipphi!
2
9
 
3
- This is a Phigros KipphiApparatus/Re:PhiEdit ChartJSON Parser. It is a subproject of [KPA](https://github.com/TeamZincs/KPA).
10
+ This is a Phigros KipphiApparatus/Re:PhiEdit ChartJSON Parser and Chart Operating System. It is a subproject of [KPA](https://github.com/TeamZincs/KPA).
4
11
 
5
12
  "Kipphi" comes from the Dutch chemist Kipp, who invented Kipp's Apparatus, which was used to produce gas and stop the reaction at any time.
6
13
 
7
- 警告:KPA 2.1版本发布以前均为实验性代码,可能会出现API兼容性问题,当前不建议将此代码用于生产!
14
+ Learn more at [Phigros Custom Chart Wiki](https://pgrfm.miraheze.org/wiki).
package/index.d.ts CHANGED
@@ -533,7 +533,7 @@ declare module "chartTypes" {
533
533
  export type ExtendedEventTypeName = "scaleX" | "scaleY" | "text" | "color";
534
534
  }
535
535
  declare module "version" {
536
- export const VERSION = 210;
536
+ export const VERSION = 211;
537
537
  export const SCHEMA = "https://cdn.jsdelivr.net/npm/kipphi@2.1.0/chartType2.schema.json";
538
538
  }
539
539
  declare module "util" {
package/index.js CHANGED
@@ -2007,7 +2007,7 @@ class Note {
2007
2007
  return note;
2008
2008
  }
2009
2009
  computeVisibleBeats(timeCalculator) {
2010
- if (!this.visibleTime || this.visibleTime >= 90000) {
2010
+ if (this.visibleTime === undefined || this.visibleTime === null || this.visibleTime >= 90000) {
2011
2011
  this.visibleBeats = Infinity;
2012
2012
  return;
2013
2013
  }
@@ -3167,7 +3167,7 @@ class TimeCalculator {
3167
3167
  }
3168
3168
  }
3169
3169
  // src/version.ts
3170
- var VERSION = 210;
3170
+ var VERSION = 211;
3171
3171
  var SCHEMA = "https://cdn.jsdelivr.net/npm/kipphi@2.1.0/chartType2.schema.json";
3172
3172
 
3173
3173
  // src/chart.ts
package/note.ts CHANGED
@@ -120,7 +120,7 @@ export class Note {
120
120
  return note;
121
121
  }
122
122
  computeVisibleBeats(timeCalculator: TimeCalculator) {
123
- if (!this.visibleTime || this.visibleTime >= 90000) {
123
+ if (this.visibleTime === undefined || this.visibleTime === null || this.visibleTime >= 90000) {
124
124
  this.visibleBeats = Infinity;
125
125
  return;
126
126
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kipphi",
3
3
  "description": "Parse your Phigros Chart(.rpe.json or .kpa.json) into an editor-friendly format.",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "author": "Team Zincs (https://github.com/TeamZincs)",
6
6
  "license": "MIT",
7
7
  "repository": {
package/version.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  /// #declaration:global
4
4
 
5
- export const VERSION = 210;
5
+ export const VERSION = 211;
6
6
  export const SCHEMA = "https://cdn.jsdelivr.net/npm/kipphi@2.1.0/chartType2.schema.json"
7
7
 
8
8