tja-parser 0.2.2 → 0.2.4
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/class/Bar.d.ts +1 -0
- package/dist/class/Bar.d.ts.map +1 -1
- package/dist/class/Bar.js +5 -0
- package/dist/class/Bar.js.map +1 -1
- package/dist/class/Course.d.ts +1 -0
- package/dist/class/Course.d.ts.map +1 -1
- package/dist/class/Course.js +58 -6
- package/dist/class/Course.js.map +1 -1
- package/format.mediawiki +714 -714
- package/package.json +1 -1
- package/src/class/Bar.ts +72 -67
- package/src/class/Branch.ts +33 -33
- package/src/class/Command.ts +138 -138
- package/src/class/Course.ts +496 -437
- package/src/class/Item.ts +26 -26
- package/src/class/Note.ts +171 -171
- package/src/class/NoteGroup.ts +23 -23
- package/src/class/Song.ts +87 -87
- package/src/exception/ParseException.ts +12 -12
- package/src/index.ts +12 -12
- package/tsconfig.json +22 -22
- package/dist/class/BarLine.d.ts +0 -14
- package/dist/class/BarLine.d.ts.map +0 -1
- package/dist/class/BarLine.js +0 -26
- package/dist/class/BarLine.js.map +0 -1
package/tsconfig.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": [
|
|
3
|
-
"./src/**/*.ts"
|
|
4
|
-
],
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"target": "ESNext",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"removeComments": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"strict": true,
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"module": "NodeNext",
|
|
16
|
-
"moduleResolution": "NodeNext",
|
|
17
|
-
"outDir": "./dist"
|
|
18
|
-
},
|
|
19
|
-
"exclude": [
|
|
20
|
-
"./node_modules",
|
|
21
|
-
"**/node_modules/*"
|
|
22
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"./src/**/*.ts"
|
|
4
|
+
],
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"target": "ESNext",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"removeComments": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"module": "NodeNext",
|
|
16
|
+
"moduleResolution": "NodeNext",
|
|
17
|
+
"outDir": "./dist"
|
|
18
|
+
},
|
|
19
|
+
"exclude": [
|
|
20
|
+
"./node_modules",
|
|
21
|
+
"**/node_modules/*"
|
|
22
|
+
]
|
|
23
23
|
}
|
package/dist/class/BarLine.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Item } from "./Item";
|
|
2
|
-
export declare class BarLine extends Item {
|
|
3
|
-
type: string;
|
|
4
|
-
private hidden;
|
|
5
|
-
isHidden(): boolean;
|
|
6
|
-
hide(): void;
|
|
7
|
-
show(): void;
|
|
8
|
-
toJSON(): {
|
|
9
|
-
type: string;
|
|
10
|
-
hidden: boolean;
|
|
11
|
-
timing: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=BarLine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarLine.d.ts","sourceRoot":"","sources":["../../src/class/BarLine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qBAAa,OAAQ,SAAQ,IAAI;IAC7B,IAAI,SAAY;IAChB,OAAO,CAAC,MAAM,CAAkB;IAEhC,QAAQ;IAGR,IAAI;IAGJ,IAAI;IAIJ,MAAM;;;;;CAOT"}
|
package/dist/class/BarLine.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BarLine = void 0;
|
|
4
|
-
const Item_1 = require("./Item");
|
|
5
|
-
class BarLine extends Item_1.Item {
|
|
6
|
-
type = 'barline';
|
|
7
|
-
hidden = false;
|
|
8
|
-
isHidden() {
|
|
9
|
-
return this.hidden;
|
|
10
|
-
}
|
|
11
|
-
hide() {
|
|
12
|
-
this.hidden = true;
|
|
13
|
-
}
|
|
14
|
-
show() {
|
|
15
|
-
this.hidden = false;
|
|
16
|
-
}
|
|
17
|
-
toJSON() {
|
|
18
|
-
return {
|
|
19
|
-
...super.toJSON(),
|
|
20
|
-
type: this.type,
|
|
21
|
-
hidden: this.hidden
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.BarLine = BarLine;
|
|
26
|
-
//# sourceMappingURL=BarLine.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarLine.js","sourceRoot":"","sources":["../../src/class/BarLine.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAE9B,MAAa,OAAQ,SAAQ,WAAI;IAC7B,IAAI,GAAG,SAAS,CAAA;IACR,MAAM,GAAY,KAAK,CAAC;IAEhC,QAAQ;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACD,IAAI;QACA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IACD,IAAI;QACA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,MAAM;QACF,OAAO;YACH,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAA;IACL,CAAC;CACJ;AArBD,0BAqBC"}
|