@alisaitteke/seatmap-canvas 2.5.16 → 2.5.17
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/CHANGELOG.md +36 -0
- package/README.md +8 -6
- package/dist/cjs/seatmap.canvas.js +16 -2
- package/dist/cjs/seatmap.canvas.js.map +1 -1
- package/dist/cjs/types/canvas.index.d.ts +8 -8
- package/dist/cjs/types/models/block.model.d.ts +3 -3
- package/dist/cjs/types/models/data.model.d.ts +3 -3
- package/dist/cjs/types/models/defaults.model.d.ts +5 -5
- package/dist/cjs/types/models/global.model.d.ts +7 -7
- package/dist/cjs/types/models/label.model.d.ts +2 -2
- package/dist/cjs/types/models/legend.model.d.ts +1 -1
- package/dist/cjs/types/models/seat.model.d.ts +3 -3
- package/dist/cjs/types/svg/event.manager.d.ts +1 -1
- package/dist/cjs/types/svg/legend/legend.circle.d.ts +2 -2
- package/dist/cjs/types/svg/legend/legend.item.d.ts +5 -5
- package/dist/cjs/types/svg/legend/legend.title.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/block-item.bounds.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/block-item.index.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/block-item.info.index.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/block-item.labels.index.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/block-item.mask.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/block-item.seats.index.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/bound/bound-item.index.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/info/title.d.ts +1 -1
- package/dist/cjs/types/svg/stage/blocks/block-item/label/label-item.circle.d.ts +1 -1
- package/dist/cjs/types/svg/stage/blocks/block-item/label/label-item.index.d.ts +1 -1
- package/dist/cjs/types/svg/stage/blocks/block-item/label/label-item.title.d.ts +1 -1
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.check.d.ts +2 -2
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.circle.d.ts +1 -1
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.index.d.ts +4 -4
- package/dist/cjs/types/svg/stage/blocks/block-item/seat/seat-item.title.d.ts +1 -1
- package/dist/cjs/types/svg/stage/blocks/blocks.index.d.ts +1 -1
- package/dist/cjs/types/svg/stage/blocks.search-circle.d.ts +3 -3
- package/dist/cjs/types/svg/stage/multi-select/rect.d.ts +1 -1
- package/dist/cjs/types/svg/stage/multi-select.d.ts +2 -2
- package/dist/cjs/types/svg/stage/search-circle/circle.d.ts +1 -1
- package/dist/cjs/types/svg/stage/stage.index.d.ts +2 -2
- package/dist/cjs/types/svg/svg.base.d.ts +1 -1
- package/dist/cjs/types/svg/svg.index.d.ts +6 -6
- package/dist/cjs/types/svg/tooltip/rect.d.ts +2 -2
- package/dist/cjs/types/svg/tooltip/title.d.ts +2 -2
- package/dist/cjs/types/svg/tooltip.d.ts +5 -5
- package/dist/cjs/types/svg/zoom.manager.d.ts +3 -3
- package/dist/dependencies.txt +41 -53
- package/dist/esm/seatmap.canvas.js +16 -2
- package/dist/esm/seatmap.canvas.js.map +1 -1
- package/dist/esm/types/canvas.index.d.ts +8 -8
- package/dist/esm/types/models/block.model.d.ts +3 -3
- package/dist/esm/types/models/data.model.d.ts +3 -3
- package/dist/esm/types/models/defaults.model.d.ts +5 -5
- package/dist/esm/types/models/global.model.d.ts +7 -7
- package/dist/esm/types/models/label.model.d.ts +2 -2
- package/dist/esm/types/models/legend.model.d.ts +1 -1
- package/dist/esm/types/models/seat.model.d.ts +3 -3
- package/dist/esm/types/svg/event.manager.d.ts +1 -1
- package/dist/esm/types/svg/legend/legend.circle.d.ts +2 -2
- package/dist/esm/types/svg/legend/legend.item.d.ts +5 -5
- package/dist/esm/types/svg/legend/legend.title.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/block-item.bounds.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/block-item.index.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/block-item.info.index.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/block-item.labels.index.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/block-item.mask.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/block-item.seats.index.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/bound/bound-item.index.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/info/title.d.ts +1 -1
- package/dist/esm/types/svg/stage/blocks/block-item/label/label-item.circle.d.ts +1 -1
- package/dist/esm/types/svg/stage/blocks/block-item/label/label-item.index.d.ts +1 -1
- package/dist/esm/types/svg/stage/blocks/block-item/label/label-item.title.d.ts +1 -1
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.check.d.ts +2 -2
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.circle.d.ts +1 -1
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.index.d.ts +4 -4
- package/dist/esm/types/svg/stage/blocks/block-item/seat/seat-item.title.d.ts +1 -1
- package/dist/esm/types/svg/stage/blocks/blocks.index.d.ts +1 -1
- package/dist/esm/types/svg/stage/blocks.search-circle.d.ts +3 -3
- package/dist/esm/types/svg/stage/multi-select/rect.d.ts +1 -1
- package/dist/esm/types/svg/stage/multi-select.d.ts +2 -2
- package/dist/esm/types/svg/stage/search-circle/circle.d.ts +1 -1
- package/dist/esm/types/svg/stage/stage.index.d.ts +2 -2
- package/dist/esm/types/svg/svg.base.d.ts +1 -1
- package/dist/esm/types/svg/svg.index.d.ts +6 -6
- package/dist/esm/types/svg/tooltip/rect.d.ts +2 -2
- package/dist/esm/types/svg/tooltip/title.d.ts +2 -2
- package/dist/esm/types/svg/tooltip.d.ts +5 -5
- package/dist/esm/types/svg/zoom.manager.d.ts +3 -3
- package/dist/types.d.ts +8 -516
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../scss/style.scss";
|
|
2
|
-
import Svg from "
|
|
3
|
-
import SeatMapDevTools from "
|
|
4
|
-
import DataModel from "
|
|
5
|
-
import DefaultsModel from "
|
|
6
|
-
import { GlobalModel } from "
|
|
7
|
-
import ZoomManager from "
|
|
8
|
-
import EventManager from "
|
|
9
|
-
import WindowManager from "
|
|
2
|
+
import Svg from "@svg/svg.index";
|
|
3
|
+
import SeatMapDevTools from "@/dev.tools";
|
|
4
|
+
import DataModel from "@model/data.model";
|
|
5
|
+
import DefaultsModel from "@model/defaults.model";
|
|
6
|
+
import { GlobalModel } from "@model/global.model";
|
|
7
|
+
import ZoomManager from "@svg/zoom.manager";
|
|
8
|
+
import EventManager from "@svg/event.manager";
|
|
9
|
+
import WindowManager from "@/window.manager";
|
|
10
10
|
export declare class SeatMapCanvas {
|
|
11
11
|
container_selector: any;
|
|
12
12
|
node: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import SeatModel from "
|
|
2
|
-
import LabelModel from "
|
|
3
|
-
import ModelBase from "
|
|
1
|
+
import SeatModel from "@model/seat.model";
|
|
2
|
+
import LabelModel from "@model/label.model";
|
|
3
|
+
import ModelBase from "@model/model.base";
|
|
4
4
|
export default class BlockModel extends ModelBase {
|
|
5
5
|
id: string;
|
|
6
6
|
seats: Array<SeatModel>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import BlockModel from "
|
|
2
|
-
import { SeatMapCanvas } from "
|
|
3
|
-
import SeatModel from "
|
|
1
|
+
import BlockModel from "@model/block.model";
|
|
2
|
+
import { SeatMapCanvas } from "@/canvas.index";
|
|
3
|
+
import SeatModel from "@model/seat.model";
|
|
4
4
|
interface BlockQuery {
|
|
5
5
|
id?: number | string;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SeatStyle } from "
|
|
2
|
-
import { BLockStyle } from "
|
|
3
|
-
import { LegendStyle } from "
|
|
4
|
-
import { LabelStyle } from "
|
|
5
|
-
import { TooltipStyle } from "
|
|
1
|
+
import { SeatStyle } from "@model/styles/seat.style";
|
|
2
|
+
import { BLockStyle } from "@model/styles/block.style";
|
|
3
|
+
import { LegendStyle } from "@model/styles/legend.style";
|
|
4
|
+
import { LabelStyle } from "@model/styles/label.style";
|
|
5
|
+
import { TooltipStyle } from "@model/styles/tooltip.style";
|
|
6
6
|
export declare class StyleConfig {
|
|
7
7
|
seat: SeatStyle;
|
|
8
8
|
block: BLockStyle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import DefaultsModel from "
|
|
2
|
-
import DataModel from "
|
|
3
|
-
import { SeatMapCanvas } from "
|
|
4
|
-
import ZoomManager from "
|
|
5
|
-
import EventManager from "
|
|
6
|
-
import Svg from "
|
|
7
|
-
import WindowManager from "
|
|
1
|
+
import DefaultsModel from "@model/defaults.model";
|
|
2
|
+
import DataModel from "@model/data.model";
|
|
3
|
+
import { SeatMapCanvas } from "@/canvas.index";
|
|
4
|
+
import ZoomManager from "@svg/zoom.manager";
|
|
5
|
+
import EventManager from "@svg/event.manager";
|
|
6
|
+
import Svg from "@svg/svg.index";
|
|
7
|
+
import WindowManager from "@/window.manager";
|
|
8
8
|
export interface GlobalModel {
|
|
9
9
|
config: DefaultsModel;
|
|
10
10
|
eventManager: EventManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import BlockModel from "
|
|
2
|
-
import ModelBase from "
|
|
3
|
-
import { SeatItem } from "
|
|
1
|
+
import BlockModel from "@model/block.model";
|
|
2
|
+
import ModelBase from "@model/model.base";
|
|
3
|
+
import { SeatItem } from "@svg/stage/blocks/block-item/seat/seat-item.index";
|
|
4
4
|
export default class SeatModel extends ModelBase {
|
|
5
5
|
id: any;
|
|
6
6
|
x: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import LegendItem from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import LegendItem from "@svg/legend/legend.item";
|
|
3
3
|
export default class LegendCircle extends SvgBase {
|
|
4
4
|
parent: LegendItem;
|
|
5
5
|
constructor(parent: LegendItem);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import Legend from "
|
|
3
|
-
import LegendCircle from "
|
|
4
|
-
import LegendTitle from "
|
|
5
|
-
import LegendModel from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import Legend from "@svg/legend";
|
|
3
|
+
import LegendCircle from "@svg/legend/legend.circle";
|
|
4
|
+
import LegendTitle from "@svg/legend/legend.title";
|
|
5
|
+
import LegendModel from "@model/legend.model";
|
|
6
6
|
export default class LegendItem extends SvgBase {
|
|
7
7
|
parent: Legend;
|
|
8
8
|
legend_data: LegendModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import LegendItem from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import LegendItem from "@svg/legend/legend.item";
|
|
3
3
|
export default class LegendTitle extends SvgBase {
|
|
4
4
|
parent: LegendItem;
|
|
5
5
|
constructor(parent: LegendItem);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import BlockModel from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import BlockModel from "@model/block.model";
|
|
3
3
|
import Block from "./block-item.index";
|
|
4
4
|
import { BoundItem } from "./bound/bound-item.index";
|
|
5
5
|
export default class BlockBounds extends SvgBase {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import BlocksManager from "../blocks.index";
|
|
2
|
-
import SvgBase from "
|
|
3
|
-
import BlockModel from "../../../../models/block.model";
|
|
2
|
+
import SvgBase from "@svg/svg.base";
|
|
4
3
|
import Seats from "./block-item.seats.index";
|
|
5
4
|
import BlockInfo from "./block-item.info.index";
|
|
6
5
|
import BlockBounds from "./block-item.bounds";
|
|
7
6
|
import BlockMask from "./block-item.mask";
|
|
8
7
|
import Labels from "./block-item.labels.index";
|
|
8
|
+
import BlockModel from "@model/block.model";
|
|
9
9
|
export default class Block extends SvgBase {
|
|
10
10
|
parent: BlocksManager;
|
|
11
11
|
item: BlockModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import BlockModel from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import BlockModel from "@model/block.model";
|
|
3
3
|
import Block from "./block-item.index";
|
|
4
4
|
import { BlockTitle } from "./info/title";
|
|
5
5
|
export default class BlockInfo extends SvgBase {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import SvgBase from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
2
|
import Block from "./block-item.index";
|
|
3
|
-
import BlockModel from "
|
|
3
|
+
import BlockModel from "@model/block.model";
|
|
4
4
|
import { LabelItem } from "./label/label-item.index";
|
|
5
5
|
export default class Labels extends SvgBase {
|
|
6
6
|
parent: Block;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import BlockModel from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import BlockModel from "@model/block.model";
|
|
3
3
|
import Block from "./block-item.index";
|
|
4
4
|
import { BoundItem } from "./bound/bound-item.index";
|
|
5
5
|
export default class BlockMask extends SvgBase {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import SvgBase from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import BlockModel from "@model/block.model";
|
|
2
3
|
import Block from "./block-item.index";
|
|
3
4
|
import { SeatItem } from "./seat/seat-item.index";
|
|
4
|
-
import BlockModel from "../../../../models/block.model";
|
|
5
5
|
export default class Seats extends SvgBase {
|
|
6
6
|
parent: Block;
|
|
7
7
|
item: BlockModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import SvgBase from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
2
|
import BlockBounds from "../block-item.bounds";
|
|
3
|
-
import BlockModel from "
|
|
3
|
+
import BlockModel from "@model/block.model";
|
|
4
4
|
import BlockMask from "../block-item.mask";
|
|
5
5
|
export declare class BoundItem extends SvgBase {
|
|
6
6
|
parent: BlockBounds | BlockMask;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import { SeatItem } from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import { SeatItem } from "@svg/stage/blocks/block-item/seat/seat-item.index";
|
|
3
3
|
export declare class SeatItemCheck extends SvgBase {
|
|
4
4
|
parent: SeatItem;
|
|
5
5
|
constructor(parent: SeatItem);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import SeatModel from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
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 { CoordinateModel } from "
|
|
5
|
+
import { CoordinateModel } from "@model/coordinate.model";
|
|
6
6
|
import { SeatItemTitle } from "./seat-item.title";
|
|
7
|
-
import { SeatAction } from "
|
|
7
|
+
import { SeatAction } from "@enum/global";
|
|
8
8
|
import { SeatItemCheck } from "./seat-item.check";
|
|
9
9
|
export declare class SeatItem extends SvgBase {
|
|
10
10
|
parent: Seats;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import StageManager from "../stage.index";
|
|
2
2
|
import Block from "./block-item/block-item.index";
|
|
3
|
-
import SvgBase from "
|
|
3
|
+
import SvgBase from "@svg/svg.base";
|
|
4
4
|
import { SeatItem } from "./block-item/seat/seat-item.index";
|
|
5
5
|
export default class Blocks extends SvgBase {
|
|
6
6
|
parent: StageManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import Circle from "
|
|
3
|
-
import Stage from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import Circle from "@svg/stage/search-circle/circle";
|
|
3
|
+
import Stage from "@svg/stage/stage.index";
|
|
4
4
|
export default class BlocksSearchCircle extends SvgBase {
|
|
5
5
|
parent: Stage;
|
|
6
6
|
circle: Circle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Blocks from "./blocks/blocks.index";
|
|
2
|
-
import Svg from "
|
|
3
|
-
import SvgBase from "
|
|
2
|
+
import Svg from "@svg/svg.index";
|
|
3
|
+
import SvgBase from "@svg/svg.base";
|
|
4
4
|
import BlocksSearchCircle from "./blocks.search-circle";
|
|
5
5
|
export default class Stage extends SvgBase {
|
|
6
6
|
parent: Svg;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Stage from "./stage/stage.index";
|
|
2
1
|
import "reflect-metadata";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import Stage from "@svg/stage/stage.index";
|
|
3
|
+
import { SeatMapCanvas } from "@/canvas.index";
|
|
4
|
+
import SvgBase from "@svg/svg.base";
|
|
5
|
+
import ZoomOutBg from "@svg/zoom-out.bg";
|
|
6
|
+
import Legend from "@svg/legend";
|
|
7
|
+
import Tooltip from "@svg/tooltip";
|
|
8
8
|
export default class Svg extends SvgBase {
|
|
9
9
|
parent: SeatMapCanvas;
|
|
10
10
|
stage: Stage;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import SvgBase from "
|
|
2
|
-
import TooltipRect from "
|
|
3
|
-
import Svg from "
|
|
4
|
-
import { SeatItem } from "
|
|
5
|
-
import TooltipTitle from "
|
|
1
|
+
import SvgBase from "@svg/svg.base";
|
|
2
|
+
import TooltipRect from "@svg/tooltip/rect";
|
|
3
|
+
import Svg from "@svg/svg.index";
|
|
4
|
+
import { SeatItem } from "@svg/stage/blocks/block-item/seat/seat-item.index";
|
|
5
|
+
import TooltipTitle from "@svg/tooltip/title";
|
|
6
6
|
export default class Tooltip extends SvgBase {
|
|
7
7
|
parent: Svg;
|
|
8
8
|
rect: TooltipRect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SeatMapCanvas } from "
|
|
2
|
-
import { ZoomLevel } from "
|
|
3
|
-
import BlockModel from "
|
|
1
|
+
import { SeatMapCanvas } from "@/canvas.index";
|
|
2
|
+
import { ZoomLevel } from "@enum/global";
|
|
3
|
+
import BlockModel from "@model/block.model";
|
|
4
4
|
export interface ZoomLevelObject {
|
|
5
5
|
level: string;
|
|
6
6
|
values: {
|