@alisaitteke/seatmap-canvas 2.5.19 → 2.6.0

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.
Files changed (28) hide show
  1. package/README.md +148 -130
  2. package/dist/CLAUDE.md +11 -0
  3. package/dist/cjs/CLAUDE.md +11 -0
  4. package/dist/cjs/seatmap.canvas.css +4 -0
  5. package/dist/cjs/seatmap.canvas.js +2 -2
  6. package/dist/cjs/seatmap.canvas.js.map +1 -1
  7. package/dist/cjs/types/models/styles/seat.style.d.ts +5 -0
  8. package/dist/cjs/types/models/styles/tooltip.style.d.ts +8 -0
  9. package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.index.d.ts +7 -3
  10. package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.path-area.d.ts +7 -0
  11. package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.path.d.ts +13 -0
  12. package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.rect-area.d.ts +7 -0
  13. package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.rect.d.ts +11 -0
  14. package/dist/cjs/types/utils/svg-parser.d.ts +5 -0
  15. package/dist/dependencies.txt +0 -54
  16. package/dist/esm/CLAUDE.md +11 -0
  17. package/dist/esm/seatmap.canvas.css +4 -0
  18. package/dist/esm/seatmap.canvas.js +2 -2
  19. package/dist/esm/seatmap.canvas.js.map +1 -1
  20. package/dist/esm/types/models/styles/seat.style.d.ts +5 -0
  21. package/dist/esm/types/models/styles/tooltip.style.d.ts +8 -0
  22. package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.index.d.ts +7 -3
  23. package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.path-area.d.ts +7 -0
  24. package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.path.d.ts +13 -0
  25. package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.rect-area.d.ts +7 -0
  26. package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.rect.d.ts +11 -0
  27. package/dist/esm/types/utils/svg-parser.d.ts +5 -0
  28. package/package.json +2 -2
@@ -1,5 +1,10 @@
1
1
  export declare class SeatStyle {
2
+ shape: 'auto' | 'circle' | 'rect' | 'path' | 'svg';
2
3
  radius: number;
4
+ size: number | null;
5
+ corner_radius: number;
6
+ path: string | null;
7
+ path_box: string;
3
8
  color: string;
4
9
  not_salable: string;
5
10
  selected: string;
@@ -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,7 @@
1
+ import SvgBase from "@svg/svg.base";
2
+ import { SeatItemPath } from "./seat-item.path";
3
+ export declare class SeatItemPathArea extends SvgBase {
4
+ parent: SeatItemPath;
5
+ constructor(parent: SeatItemPath);
6
+ update(): this;
7
+ }
@@ -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,7 @@
1
+ import SvgBase from "@svg/svg.base";
2
+ import { SeatItemRect } from "./seat-item.rect";
3
+ export declare class SeatItemRectArea extends SvgBase {
4
+ parent: SeatItemRect;
5
+ constructor(parent: SeatItemRect);
6
+ update(): this;
7
+ }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ export interface SvgPathData {
2
+ path: string;
3
+ viewBox: string;
4
+ }
5
+ export declare function extractSvgPath(svgContent: string): SvgPathData | null;
@@ -174,60 +174,6 @@ THIS SOFTWARE.
174
174
 
175
175
  ---
176
176
 
177
- Name: d3-shape
178
- Version: 3.2.0
179
- License: ISC
180
- Private: false
181
- Description: Graphical primitives for visualization, such as lines and areas.
182
- Repository: https://github.com/d3/d3-shape.git
183
- Homepage: https://d3js.org/d3-shape/
184
- Author: Mike Bostock (http://bost.ocks.org/mike)
185
- License Copyright:
186
- ===
187
-
188
- Copyright 2010-2022 Mike Bostock
189
-
190
- Permission to use, copy, modify, and/or distribute this software for any purpose
191
- with or without fee is hereby granted, provided that the above copyright notice
192
- and this permission notice appear in all copies.
193
-
194
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
195
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
196
- FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
197
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
198
- OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
199
- TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
200
- THIS SOFTWARE.
201
-
202
- ---
203
-
204
- Name: d3-path
205
- Version: 3.1.0
206
- License: ISC
207
- Private: false
208
- Description: Serialize Canvas path commands to SVG.
209
- Repository: https://github.com/d3/d3-path.git
210
- Homepage: https://d3js.org/d3-path/
211
- Author: Mike Bostock (http://bost.ocks.org/mike)
212
- License Copyright:
213
- ===
214
-
215
- Copyright 2015-2022 Mike Bostock
216
-
217
- Permission to use, copy, modify, and/or distribute this software for any purpose
218
- with or without fee is hereby granted, provided that the above copyright notice
219
- and this permission notice appear in all copies.
220
-
221
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
222
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
223
- FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
224
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
225
- OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
226
- TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
227
- THIS SOFTWARE.
228
-
229
- ---
230
-
231
177
  Name: d3-dispatch
232
178
  Version: 3.0.1
233
179
  License: ISC
@@ -0,0 +1,11 @@
1
+ <claude-mem-context>
2
+ # Recent Activity
3
+
4
+ <!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
5
+
6
+ ### Jan 23, 2026
7
+
8
+ | ID | Time | T | Title | Read |
9
+ |----|------|---|-------|------|
10
+ | #72 | 2:45 PM | 🔵 | Successful Build with npm After Migration from Yarn | ~426 |
11
+ </claude-mem-context>
@@ -94,6 +94,10 @@
94
94
  .seatmap-svg .stage .blocks .block .seats .seat.selected {
95
95
  cursor: pointer;
96
96
  }
97
+ .seatmap-svg .stage .blocks .block .seats .seat.not-salable {
98
+ cursor: not-allowed;
99
+ opacity: 0.7;
100
+ }
97
101
  .seatmap-svg .stage .blocks .block .seats .seat .label-text {
98
102
  text-anchor: middle;
99
103
  dominant-baseline: central;