@alisaitteke/seatmap-canvas 2.5.19 → 2.6.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 +148 -130
- package/dist/CLAUDE.md +11 -0
- package/dist/cjs/CLAUDE.md +11 -0
- package/dist/cjs/seatmap.canvas.css +4 -0
- package/dist/cjs/seatmap.canvas.js +2 -2
- package/dist/cjs/seatmap.canvas.js.map +1 -1
- package/dist/cjs/types/models/styles/seat.style.d.ts +5 -0
- package/dist/cjs/types/models/styles/tooltip.style.d.ts +8 -0
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.index.d.ts +7 -3
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.path-area.d.ts +7 -0
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.path.d.ts +13 -0
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.rect-area.d.ts +7 -0
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.rect.d.ts +11 -0
- package/dist/cjs/types/utils/svg-parser.d.ts +5 -0
- package/dist/dependencies.txt +0 -54
- package/dist/esm/CLAUDE.md +11 -0
- package/dist/esm/seatmap.canvas.css +4 -0
- package/dist/esm/seatmap.canvas.js +2 -2
- package/dist/esm/seatmap.canvas.js.map +1 -1
- package/dist/esm/types/models/styles/seat.style.d.ts +5 -0
- package/dist/esm/types/models/styles/tooltip.style.d.ts +8 -0
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.index.d.ts +7 -3
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.path-area.d.ts +7 -0
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.path.d.ts +13 -0
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.rect-area.d.ts +7 -0
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.rect.d.ts +11 -0
- package/dist/esm/types/utils/svg-parser.d.ts +5 -0
- package/package.json +2 -2
|
@@ -4,4 +4,12 @@ export declare class TooltipStyle {
|
|
|
4
4
|
height: number;
|
|
5
5
|
color: string;
|
|
6
6
|
bg: string;
|
|
7
|
+
border_color: string;
|
|
8
|
+
border_radius: number;
|
|
9
|
+
padding: number;
|
|
10
|
+
font_size: string;
|
|
11
|
+
font_weight: string;
|
|
12
|
+
line_height: number;
|
|
13
|
+
shadow: string;
|
|
14
|
+
text_align: string;
|
|
7
15
|
}
|
|
@@ -2,19 +2,22 @@ import SvgBase from "@svg/svg.base";
|
|
|
2
2
|
import SeatModel from "@model/seat.model";
|
|
3
3
|
import Seats from "../block-item.seats.index";
|
|
4
4
|
import { SeatItemCircle } from "./seat-item.circle";
|
|
5
|
+
import { SeatItemRect } from "./seat-item.rect";
|
|
6
|
+
import { SeatItemPath } from "./seat-item.path";
|
|
5
7
|
import { CoordinateModel } from "@model/coordinate.model";
|
|
6
8
|
import { SeatItemTitle } from "./seat-item.title";
|
|
7
9
|
import { SeatAction } from "@enum/global";
|
|
8
10
|
import { SeatItemCheck } from "./seat-item.check";
|
|
9
11
|
import { SeatItemCustomSvg } from "@svg/stage/blocks/block-item/seat/seat-item.custom";
|
|
12
|
+
import { SeatItemCustomSvgCheck } from "@svg/stage/blocks/block-item/seat/seat-item.custom-check";
|
|
10
13
|
export declare class SeatItem extends SvgBase {
|
|
11
14
|
parent: Seats;
|
|
12
15
|
item: SeatModel;
|
|
13
|
-
circle: SeatItemCircle;
|
|
14
|
-
seatCustomSvg: SeatItemCustomSvg;
|
|
16
|
+
circle: SeatItemCircle | SeatItemRect | SeatItemPath | SeatItemCustomSvg;
|
|
17
|
+
seatCustomSvg: SeatItemCustomSvg | null;
|
|
15
18
|
title: SeatItemTitle;
|
|
16
19
|
coordinates: CoordinateModel;
|
|
17
|
-
check: SeatItemCheck;
|
|
20
|
+
check: SeatItemCheck | SeatItemCustomSvgCheck;
|
|
18
21
|
constructor(parent: Seats, item: SeatModel, seatCustomSvg: any);
|
|
19
22
|
setColor(color: string, animation?: boolean): this;
|
|
20
23
|
updateColor(color?: string | null): this;
|
|
@@ -26,5 +29,6 @@ export declare class SeatItem extends SvgBase {
|
|
|
26
29
|
blur(): void;
|
|
27
30
|
getColor(action?: SeatAction | null): string;
|
|
28
31
|
update(): this;
|
|
32
|
+
private getShapeType;
|
|
29
33
|
afterGenerate(): void;
|
|
30
34
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import { SeatItem } from "./seat-item.index";
|
|
3
|
+
export declare class SeatItemPath extends SvgBase {
|
|
4
|
+
parent: SeatItem;
|
|
5
|
+
private pathElement;
|
|
6
|
+
private hitArea;
|
|
7
|
+
constructor(parent: SeatItem);
|
|
8
|
+
domGenerate(to: any, index?: number): this;
|
|
9
|
+
private getSize;
|
|
10
|
+
private parseViewBox;
|
|
11
|
+
private getScale;
|
|
12
|
+
update(): this;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import { SeatItem } from "./seat-item.index";
|
|
3
|
+
export declare class SeatItemRect extends SvgBase {
|
|
4
|
+
parent: SeatItem;
|
|
5
|
+
private rectElement;
|
|
6
|
+
private hitArea;
|
|
7
|
+
constructor(parent: SeatItem);
|
|
8
|
+
domGenerate(to: any, index?: number): this;
|
|
9
|
+
private getSize;
|
|
10
|
+
update(): this;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alisaitteke/seatmap-canvas",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"tags": "seating, seat, seatmap, seat-selection, seat-booking, booking, ticket, reservation",
|
|
5
5
|
"author": "Ali Sait TEKE <alisaitt@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/alisaitteke/seatmap-canvas",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"scripts": {
|
|
20
20
|
"start:dev": "rollup --config --watch --bundleConfigAsCjs",
|
|
21
|
-
"build": "rollup -c --
|
|
21
|
+
"build": "rollup -c --environment PRODUCTION --bundleConfigAsCjs"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=18.0.0"
|