@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.
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alisaitteke/seatmap-canvas",
3
- "version": "2.5.19",
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 --prod --bundleConfigAsCjs"
21
+ "build": "rollup -c --environment PRODUCTION --bundleConfigAsCjs"
22
22
  },
23
23
  "engines": {
24
24
  "node": ">=18.0.0"