@konoui/mjimage 0.0.48 → 0.0.49
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.cjs +12 -12
- package/dist/index.d.cts +16 -15
- package/dist/index.d.ts +16 -15
- package/dist/index.js +3756 -3735
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -183,6 +183,7 @@ export declare class BlockRun extends Block {
|
|
|
183
183
|
export declare class BlockShoKan extends Block {
|
|
184
184
|
constructor(tiles: readonly Tile[]);
|
|
185
185
|
static from(s: string): BlockShoKan;
|
|
186
|
+
static fromPon(b: BlockPon, t: Tile): BlockShoKan;
|
|
186
187
|
toString(): string;
|
|
187
188
|
}
|
|
188
189
|
|
|
@@ -1093,35 +1094,35 @@ export declare class Parser {
|
|
|
1093
1094
|
}
|
|
1094
1095
|
|
|
1095
1096
|
export declare const parseTableInput: (s: string) => {
|
|
1097
|
+
board: {
|
|
1098
|
+
round: "1w1" | "1w2" | "1w3" | "1w4" | "2w1" | "2w2" | "2w3" | "2w4" | "3w1" | "3w2" | "3w3" | "3w4" | "4w1" | "4w2" | "4w3" | "4w4";
|
|
1099
|
+
sticks: {
|
|
1100
|
+
reach: number;
|
|
1101
|
+
dead: number;
|
|
1102
|
+
};
|
|
1103
|
+
doras: string;
|
|
1104
|
+
front: "1w" | "2w" | "3w" | "4w";
|
|
1105
|
+
};
|
|
1096
1106
|
"1w": {
|
|
1097
|
-
hand: string;
|
|
1098
1107
|
discard: string;
|
|
1108
|
+
hand: string;
|
|
1099
1109
|
score: number;
|
|
1100
1110
|
};
|
|
1101
1111
|
"2w": {
|
|
1102
|
-
hand: string;
|
|
1103
1112
|
discard: string;
|
|
1113
|
+
hand: string;
|
|
1104
1114
|
score: number;
|
|
1105
1115
|
};
|
|
1106
1116
|
"3w": {
|
|
1107
|
-
hand: string;
|
|
1108
1117
|
discard: string;
|
|
1118
|
+
hand: string;
|
|
1109
1119
|
score: number;
|
|
1110
1120
|
};
|
|
1111
1121
|
"4w": {
|
|
1112
|
-
hand: string;
|
|
1113
1122
|
discard: string;
|
|
1123
|
+
hand: string;
|
|
1114
1124
|
score: number;
|
|
1115
1125
|
};
|
|
1116
|
-
board: {
|
|
1117
|
-
round: Round;
|
|
1118
|
-
sticks: {
|
|
1119
|
-
reach: number;
|
|
1120
|
-
dead: number;
|
|
1121
|
-
};
|
|
1122
|
-
doras: string;
|
|
1123
|
-
front: Wind;
|
|
1124
|
-
};
|
|
1125
1126
|
};
|
|
1126
1127
|
|
|
1127
1128
|
export declare class PlaceManager {
|
|
@@ -1431,8 +1432,8 @@ declare const tableInputSchema: StrictObjectSchema< {
|
|
|
1431
1432
|
readonly board: OptionalSchema<StrictObjectSchema< {
|
|
1432
1433
|
readonly round: OptionalSchema<PicklistSchema<Round[], undefined>, "1w1">;
|
|
1433
1434
|
readonly sticks: OptionalSchema<StrictObjectSchema< {
|
|
1434
|
-
readonly reach: OptionalSchema<SchemaWithPipe<[NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1435
|
-
readonly dead: OptionalSchema<SchemaWithPipe<[NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1435
|
+
readonly reach: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1436
|
+
readonly dead: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1436
1437
|
}, undefined>, {
|
|
1437
1438
|
reach: number;
|
|
1438
1439
|
dead: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -183,6 +183,7 @@ export declare class BlockRun extends Block {
|
|
|
183
183
|
export declare class BlockShoKan extends Block {
|
|
184
184
|
constructor(tiles: readonly Tile[]);
|
|
185
185
|
static from(s: string): BlockShoKan;
|
|
186
|
+
static fromPon(b: BlockPon, t: Tile): BlockShoKan;
|
|
186
187
|
toString(): string;
|
|
187
188
|
}
|
|
188
189
|
|
|
@@ -1093,35 +1094,35 @@ export declare class Parser {
|
|
|
1093
1094
|
}
|
|
1094
1095
|
|
|
1095
1096
|
export declare const parseTableInput: (s: string) => {
|
|
1097
|
+
board: {
|
|
1098
|
+
round: "1w1" | "1w2" | "1w3" | "1w4" | "2w1" | "2w2" | "2w3" | "2w4" | "3w1" | "3w2" | "3w3" | "3w4" | "4w1" | "4w2" | "4w3" | "4w4";
|
|
1099
|
+
sticks: {
|
|
1100
|
+
reach: number;
|
|
1101
|
+
dead: number;
|
|
1102
|
+
};
|
|
1103
|
+
doras: string;
|
|
1104
|
+
front: "1w" | "2w" | "3w" | "4w";
|
|
1105
|
+
};
|
|
1096
1106
|
"1w": {
|
|
1097
|
-
hand: string;
|
|
1098
1107
|
discard: string;
|
|
1108
|
+
hand: string;
|
|
1099
1109
|
score: number;
|
|
1100
1110
|
};
|
|
1101
1111
|
"2w": {
|
|
1102
|
-
hand: string;
|
|
1103
1112
|
discard: string;
|
|
1113
|
+
hand: string;
|
|
1104
1114
|
score: number;
|
|
1105
1115
|
};
|
|
1106
1116
|
"3w": {
|
|
1107
|
-
hand: string;
|
|
1108
1117
|
discard: string;
|
|
1118
|
+
hand: string;
|
|
1109
1119
|
score: number;
|
|
1110
1120
|
};
|
|
1111
1121
|
"4w": {
|
|
1112
|
-
hand: string;
|
|
1113
1122
|
discard: string;
|
|
1123
|
+
hand: string;
|
|
1114
1124
|
score: number;
|
|
1115
1125
|
};
|
|
1116
|
-
board: {
|
|
1117
|
-
round: Round;
|
|
1118
|
-
sticks: {
|
|
1119
|
-
reach: number;
|
|
1120
|
-
dead: number;
|
|
1121
|
-
};
|
|
1122
|
-
doras: string;
|
|
1123
|
-
front: Wind;
|
|
1124
|
-
};
|
|
1125
1126
|
};
|
|
1126
1127
|
|
|
1127
1128
|
export declare class PlaceManager {
|
|
@@ -1431,8 +1432,8 @@ declare const tableInputSchema: StrictObjectSchema< {
|
|
|
1431
1432
|
readonly board: OptionalSchema<StrictObjectSchema< {
|
|
1432
1433
|
readonly round: OptionalSchema<PicklistSchema<Round[], undefined>, "1w1">;
|
|
1433
1434
|
readonly sticks: OptionalSchema<StrictObjectSchema< {
|
|
1434
|
-
readonly reach: OptionalSchema<SchemaWithPipe<[NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1435
|
-
readonly dead: OptionalSchema<SchemaWithPipe<[NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1435
|
+
readonly reach: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1436
|
+
readonly dead: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1436
1437
|
}, undefined>, {
|
|
1437
1438
|
reach: number;
|
|
1438
1439
|
dead: number;
|