venue-js 1.2.0-next.13 → 1.2.0-next.14
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/dist/index.d.mts +4 -37
- package/dist/index.d.ts +4 -37
- package/dist/index.js +1059 -605
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1055 -601
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -150,7 +150,8 @@ type LevelFeature = ImdfFeature<LevelGeometry, LevelProperties>;
|
|
|
150
150
|
type OccupantGeometry = null;
|
|
151
151
|
type OccupantProperties = EntityTimestamps & {
|
|
152
152
|
anchor_id: Id;
|
|
153
|
-
category: string;
|
|
153
|
+
category: string | null;
|
|
154
|
+
category_group: string | null;
|
|
154
155
|
cover_image: Media | null;
|
|
155
156
|
description: TransalatableString;
|
|
156
157
|
featured_image: Media | null;
|
|
@@ -328,10 +329,7 @@ type PrivilegeProperties = {
|
|
|
328
329
|
venue_id: Id;
|
|
329
330
|
};
|
|
330
331
|
type PrivilegeFeature = ImdfFeature<PrivilegeGeometry, PrivilegeProperties>;
|
|
331
|
-
type LabelGeometry =
|
|
332
|
-
geometry_type: string;
|
|
333
|
-
cooordinates: Position[][];
|
|
334
|
-
};
|
|
332
|
+
type LabelGeometry = Polygon;
|
|
335
333
|
type LabelProperties = {
|
|
336
334
|
name: string;
|
|
337
335
|
ordinal: number;
|
|
@@ -339,12 +337,7 @@ type LabelProperties = {
|
|
|
339
337
|
angle: number;
|
|
340
338
|
fontSize: number;
|
|
341
339
|
};
|
|
342
|
-
type LabelFeature =
|
|
343
|
-
type: "Feature";
|
|
344
|
-
geometry: LabelGeometry;
|
|
345
|
-
id: Id;
|
|
346
|
-
properties: LabelProperties;
|
|
347
|
-
};
|
|
340
|
+
type LabelFeature = ImdfFeature<LabelGeometry, LabelProperties>;
|
|
348
341
|
type ElementGeometry = null;
|
|
349
342
|
type ElementProperties = EntityTimestamps & {
|
|
350
343
|
geometries: Array<{
|
|
@@ -1033,7 +1026,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1033
1026
|
set detectVenueInView(value: any);
|
|
1034
1027
|
set billboards(value: any);
|
|
1035
1028
|
set mapDecorations(value: any);
|
|
1036
|
-
set groundLabels(value: any);
|
|
1037
1029
|
set pixelRatio(value: number);
|
|
1038
1030
|
set onClickElement(func: any);
|
|
1039
1031
|
set locale(value: string);
|
|
@@ -1116,29 +1108,6 @@ declare class Billboard extends BaseObject {
|
|
|
1116
1108
|
#private;
|
|
1117
1109
|
}
|
|
1118
1110
|
|
|
1119
|
-
declare class GroundLabel extends BaseObject {
|
|
1120
|
-
#private;
|
|
1121
|
-
constructor(bound: any, options: any, layer: any);
|
|
1122
|
-
set bearing(value: any);
|
|
1123
|
-
get angle(): number;
|
|
1124
|
-
get currentAngle(): number;
|
|
1125
|
-
get text(): string;
|
|
1126
|
-
get offsetX(): number;
|
|
1127
|
-
get offsetY(): number;
|
|
1128
|
-
get offset(): {
|
|
1129
|
-
x: number;
|
|
1130
|
-
y: number;
|
|
1131
|
-
};
|
|
1132
|
-
set offsetX(value: number);
|
|
1133
|
-
set offsetY(value: number);
|
|
1134
|
-
set angle(newAngle: number);
|
|
1135
|
-
setOffset(offsetX: any, offsetY: any): void;
|
|
1136
|
-
addOffset(deltaX: any, deltaY: any): void;
|
|
1137
|
-
resetOffset(): void;
|
|
1138
|
-
moveToPosition(targetX: any, targetY: any): void;
|
|
1139
|
-
updateText(newText: any, options?: Record<string, unknown>): void;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
1111
|
interface IOptions {
|
|
1143
1112
|
scale: number;
|
|
1144
1113
|
altitude: number;
|
|
@@ -1202,8 +1171,6 @@ declare function styledFeatureGenerator(mapTheme: any): {
|
|
|
1202
1171
|
createDecoration: (decoration: any, options: any) => LineString$1 | Polygon$1 | MultiPolygon$1 | MultiLineString;
|
|
1203
1172
|
/** Three JS */
|
|
1204
1173
|
create3DFootprint: (feature: any, threeLayer: any, options: any) => Promise<any[]>;
|
|
1205
|
-
create3DGroundLabel: (label: any, threeLayer: any) => GroundLabel;
|
|
1206
|
-
createOccupantGroundLabel: (feature: any, location: any, mapConfig: any, threeLayer: any) => GroundLabel;
|
|
1207
1174
|
create3DBillboard: (billboard: any, threeLayer: any) => Billboard;
|
|
1208
1175
|
create3DAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|
|
1209
1176
|
create3DOccupantAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|
package/dist/index.d.ts
CHANGED
|
@@ -150,7 +150,8 @@ type LevelFeature = ImdfFeature<LevelGeometry, LevelProperties>;
|
|
|
150
150
|
type OccupantGeometry = null;
|
|
151
151
|
type OccupantProperties = EntityTimestamps & {
|
|
152
152
|
anchor_id: Id;
|
|
153
|
-
category: string;
|
|
153
|
+
category: string | null;
|
|
154
|
+
category_group: string | null;
|
|
154
155
|
cover_image: Media | null;
|
|
155
156
|
description: TransalatableString;
|
|
156
157
|
featured_image: Media | null;
|
|
@@ -328,10 +329,7 @@ type PrivilegeProperties = {
|
|
|
328
329
|
venue_id: Id;
|
|
329
330
|
};
|
|
330
331
|
type PrivilegeFeature = ImdfFeature<PrivilegeGeometry, PrivilegeProperties>;
|
|
331
|
-
type LabelGeometry =
|
|
332
|
-
geometry_type: string;
|
|
333
|
-
cooordinates: Position[][];
|
|
334
|
-
};
|
|
332
|
+
type LabelGeometry = Polygon;
|
|
335
333
|
type LabelProperties = {
|
|
336
334
|
name: string;
|
|
337
335
|
ordinal: number;
|
|
@@ -339,12 +337,7 @@ type LabelProperties = {
|
|
|
339
337
|
angle: number;
|
|
340
338
|
fontSize: number;
|
|
341
339
|
};
|
|
342
|
-
type LabelFeature =
|
|
343
|
-
type: "Feature";
|
|
344
|
-
geometry: LabelGeometry;
|
|
345
|
-
id: Id;
|
|
346
|
-
properties: LabelProperties;
|
|
347
|
-
};
|
|
340
|
+
type LabelFeature = ImdfFeature<LabelGeometry, LabelProperties>;
|
|
348
341
|
type ElementGeometry = null;
|
|
349
342
|
type ElementProperties = EntityTimestamps & {
|
|
350
343
|
geometries: Array<{
|
|
@@ -1033,7 +1026,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1033
1026
|
set detectVenueInView(value: any);
|
|
1034
1027
|
set billboards(value: any);
|
|
1035
1028
|
set mapDecorations(value: any);
|
|
1036
|
-
set groundLabels(value: any);
|
|
1037
1029
|
set pixelRatio(value: number);
|
|
1038
1030
|
set onClickElement(func: any);
|
|
1039
1031
|
set locale(value: string);
|
|
@@ -1116,29 +1108,6 @@ declare class Billboard extends BaseObject {
|
|
|
1116
1108
|
#private;
|
|
1117
1109
|
}
|
|
1118
1110
|
|
|
1119
|
-
declare class GroundLabel extends BaseObject {
|
|
1120
|
-
#private;
|
|
1121
|
-
constructor(bound: any, options: any, layer: any);
|
|
1122
|
-
set bearing(value: any);
|
|
1123
|
-
get angle(): number;
|
|
1124
|
-
get currentAngle(): number;
|
|
1125
|
-
get text(): string;
|
|
1126
|
-
get offsetX(): number;
|
|
1127
|
-
get offsetY(): number;
|
|
1128
|
-
get offset(): {
|
|
1129
|
-
x: number;
|
|
1130
|
-
y: number;
|
|
1131
|
-
};
|
|
1132
|
-
set offsetX(value: number);
|
|
1133
|
-
set offsetY(value: number);
|
|
1134
|
-
set angle(newAngle: number);
|
|
1135
|
-
setOffset(offsetX: any, offsetY: any): void;
|
|
1136
|
-
addOffset(deltaX: any, deltaY: any): void;
|
|
1137
|
-
resetOffset(): void;
|
|
1138
|
-
moveToPosition(targetX: any, targetY: any): void;
|
|
1139
|
-
updateText(newText: any, options?: Record<string, unknown>): void;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
1111
|
interface IOptions {
|
|
1143
1112
|
scale: number;
|
|
1144
1113
|
altitude: number;
|
|
@@ -1202,8 +1171,6 @@ declare function styledFeatureGenerator(mapTheme: any): {
|
|
|
1202
1171
|
createDecoration: (decoration: any, options: any) => LineString$1 | Polygon$1 | MultiPolygon$1 | MultiLineString;
|
|
1203
1172
|
/** Three JS */
|
|
1204
1173
|
create3DFootprint: (feature: any, threeLayer: any, options: any) => Promise<any[]>;
|
|
1205
|
-
create3DGroundLabel: (label: any, threeLayer: any) => GroundLabel;
|
|
1206
|
-
createOccupantGroundLabel: (feature: any, location: any, mapConfig: any, threeLayer: any) => GroundLabel;
|
|
1207
1174
|
create3DBillboard: (billboard: any, threeLayer: any) => Billboard;
|
|
1208
1175
|
create3DAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|
|
1209
1176
|
create3DOccupantAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|