@seatmap.pro/renderer 0.0.2 → 0.0.4
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 +5 -5
- package/lib/index.d.mts +1 -20
- package/lib/index.d.ts +1 -20
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -45,8 +45,8 @@ const renderer = new SeatmapBookingRenderer({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// Load
|
|
49
|
-
renderer.
|
|
48
|
+
// Load event data
|
|
49
|
+
renderer.loadEvent(eventId);
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
## Documentation
|
|
@@ -55,11 +55,11 @@ For detailed documentation, visit our:
|
|
|
55
55
|
|
|
56
56
|
- [Knowledge Base](https://seatmap.pro/knowledge-base/) - Complete documentation for all Seatmap.pro components
|
|
57
57
|
- [Renderer Specification](https://seatmap.pro/knowledge-base/renderer/spec/) - Detailed API reference for the renderer
|
|
58
|
-
- [API Documentation](https://
|
|
58
|
+
- [API Documentation](https://seatmap.pro/knowledge-base/api/v2/) - Additional API documentation
|
|
59
59
|
|
|
60
60
|
## Examples
|
|
61
61
|
|
|
62
|
-
Check out our [examples page](https://seatmap.pro/
|
|
62
|
+
Check out our [examples page](https://seatmap.pro/knowledge-base/renderer/sdk/) for implementation samples.
|
|
63
63
|
|
|
64
64
|
## Product Website
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ For more information, pricing, and demos, visit [https://seatmap.pro](https://se
|
|
|
67
67
|
|
|
68
68
|
## License
|
|
69
69
|
|
|
70
|
-
This package is licensed under a commercial license. Please contact [
|
|
70
|
+
This package is licensed under a commercial license. Please contact [support@seatmap.pro](mailto:support@seatmap.pro) for licensing information.
|
|
71
71
|
|
|
72
72
|
## Support
|
|
73
73
|
|
package/lib/index.d.mts
CHANGED
|
@@ -6,9 +6,6 @@ interface IPoint {
|
|
|
6
6
|
readonly y: number;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
type ById$1<T> = {
|
|
10
|
-
[id: number]: T;
|
|
11
|
-
};
|
|
12
9
|
interface IPrice {
|
|
13
10
|
id: IPriceId;
|
|
14
11
|
name: string;
|
|
@@ -16,22 +13,6 @@ interface IPrice {
|
|
|
16
13
|
interface IColoredPrice extends IPrice {
|
|
17
14
|
color: string;
|
|
18
15
|
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
type ColorSequenceSettings = string[][];
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
declare const sortPrices: <T extends IPrice>(prices: T[]) => T[];
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
declare const convertPricesToColored: (prices: IPrice[], colorSettings: ColorSequenceSettings) => IColoredPrice[];
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
declare const convertPricesToColoredById: (prices: IPrice[], colorSettings: ColorSequenceSettings) => ById$1<IColoredPrice>;
|
|
35
16
|
|
|
36
17
|
/**
|
|
37
18
|
* @hidden
|
|
@@ -2224,4 +2205,4 @@ declare class SeatmapBookingRenderer extends Renderer {
|
|
|
2224
2205
|
|
|
2225
2206
|
declare const mergeSettings: <TSettings extends IRendererSettings>(defaults: IRendererSettings, settings?: TSettings | undefined) => IRendererSettings & TSettings;
|
|
2226
2207
|
|
|
2227
|
-
export { BookingApiClient, type ById, type
|
|
2208
|
+
export { BookingApiClient, type ById, type DestEvent, DestEventType, type IAdminRendererSettings, type IBaseSeat, type IBaseSector, type IBeforeSeatDrawEvent, type IBookingRendererSettings, type ICart, type ICartGa, type ICartSeat, type IClickSrcEvent, type IDragEndSrcEvent, type IDragMoveSrcEvent, type IDragStartSrcEvent, type IExtendedSeat, type IMouseMoveSrcEvent, type IPoint, type IPriceId, type IPriceListDTO, type IRemovedCartGa, type IRenderer, type IRendererMachineContext, type IRendererSeatStyleSettings, type IRendererSettings, type IRendererSvgSectionStylesSetting, type IRendererTheme, type IRowDTO, type ISchemaDTO, type ISeat, type ISeatDTO, type ISeatPriceScheme, type ISeatStyle, type ISection, type ISectionRect, type ISectionWithCoords, type ISector, type ISectorDTO, type ISpecialState, type ISvgSectionStyle, Renderer, type RendererMachine, type RendererMachineReducer, type RendererMachineService, RendererSelectMode, RendererTargetType, type SeatFilter, type SeatInteractionState, SeatmapAdminRenderer, SeatmapBookingRenderer, type SrcEvent, SrcEventType, type TransformArray, mergeSettings };
|
package/lib/index.d.ts
CHANGED
|
@@ -6,9 +6,6 @@ interface IPoint {
|
|
|
6
6
|
readonly y: number;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
type ById$1<T> = {
|
|
10
|
-
[id: number]: T;
|
|
11
|
-
};
|
|
12
9
|
interface IPrice {
|
|
13
10
|
id: IPriceId;
|
|
14
11
|
name: string;
|
|
@@ -16,22 +13,6 @@ interface IPrice {
|
|
|
16
13
|
interface IColoredPrice extends IPrice {
|
|
17
14
|
color: string;
|
|
18
15
|
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
type ColorSequenceSettings = string[][];
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
declare const sortPrices: <T extends IPrice>(prices: T[]) => T[];
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
declare const convertPricesToColored: (prices: IPrice[], colorSettings: ColorSequenceSettings) => IColoredPrice[];
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
declare const convertPricesToColoredById: (prices: IPrice[], colorSettings: ColorSequenceSettings) => ById$1<IColoredPrice>;
|
|
35
16
|
|
|
36
17
|
/**
|
|
37
18
|
* @hidden
|
|
@@ -2224,4 +2205,4 @@ declare class SeatmapBookingRenderer extends Renderer {
|
|
|
2224
2205
|
|
|
2225
2206
|
declare const mergeSettings: <TSettings extends IRendererSettings>(defaults: IRendererSettings, settings?: TSettings | undefined) => IRendererSettings & TSettings;
|
|
2226
2207
|
|
|
2227
|
-
export { BookingApiClient, type ById, type
|
|
2208
|
+
export { BookingApiClient, type ById, type DestEvent, DestEventType, type IAdminRendererSettings, type IBaseSeat, type IBaseSector, type IBeforeSeatDrawEvent, type IBookingRendererSettings, type ICart, type ICartGa, type ICartSeat, type IClickSrcEvent, type IDragEndSrcEvent, type IDragMoveSrcEvent, type IDragStartSrcEvent, type IExtendedSeat, type IMouseMoveSrcEvent, type IPoint, type IPriceId, type IPriceListDTO, type IRemovedCartGa, type IRenderer, type IRendererMachineContext, type IRendererSeatStyleSettings, type IRendererSettings, type IRendererSvgSectionStylesSetting, type IRendererTheme, type IRowDTO, type ISchemaDTO, type ISeat, type ISeatDTO, type ISeatPriceScheme, type ISeatStyle, type ISection, type ISectionRect, type ISectionWithCoords, type ISector, type ISectorDTO, type ISpecialState, type ISvgSectionStyle, Renderer, type RendererMachine, type RendererMachineReducer, type RendererMachineService, RendererSelectMode, RendererTargetType, type SeatFilter, type SeatInteractionState, SeatmapAdminRenderer, SeatmapBookingRenderer, type SrcEvent, SrcEventType, type TransformArray, mergeSettings };
|