@mapcreator/sdk 0.0.0-fonts.3 → 0.0.0-label-collision.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.
- package/dist/mapcreator-sdk.js +2798 -2788
- package/dist/mapcreator-sdk.umd.cjs +62 -62
- package/dist/report.html +1 -1
- package/dist/types/jobObject.d.ts +8 -5
- package/dist/utils/helpers.d.ts +1 -0
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ export type JobObject = {
|
|
|
31
31
|
layerInfo?: Optional<Array<{
|
|
32
32
|
id: string;
|
|
33
33
|
visibility: boolean;
|
|
34
|
-
opacity
|
|
34
|
+
opacity?: Optional<number>;
|
|
35
35
|
}>>;
|
|
36
36
|
overlays?: Optional<number[]>;
|
|
37
37
|
projection?: Optional<'mercator' | 'globe'>;
|
|
@@ -70,6 +70,7 @@ export type JobObjectModels = {
|
|
|
70
70
|
marker?: Optional<JobObjectMarkerGroup[]>;
|
|
71
71
|
polygon?: Optional<JobObjectPolygonGroup[]>;
|
|
72
72
|
};
|
|
73
|
+
export type JobObjectJustify = 'left' | 'center' | 'right';
|
|
73
74
|
export type PopupPosition = 'bottomLeft' | 'mapElement';
|
|
74
75
|
type Optional<T> = T | undefined;
|
|
75
76
|
type JobObjectGroupType = JobObjectArea | JobObjectCircle | JobObjectDot | JobObjectLine | JobObjectMarker | JobObjectPolygon;
|
|
@@ -100,6 +101,7 @@ export type JobObjectMarkerGroup = JobObjectGroupBase<JobObjectMarker> & {
|
|
|
100
101
|
textColor?: Optional<string>;
|
|
101
102
|
textHaloColor?: Optional<string>;
|
|
102
103
|
collisionDetection?: Optional<boolean>;
|
|
104
|
+
labelCollisionDetection?: Optional<boolean>;
|
|
103
105
|
clustering?: Optional<boolean>;
|
|
104
106
|
clusterMaxZoom?: Optional<number>;
|
|
105
107
|
clusterRadius?: Optional<number>;
|
|
@@ -140,6 +142,7 @@ export type JobObjectNorthArrow = {
|
|
|
140
142
|
position: AdornmentPosition;
|
|
141
143
|
stacking?: Optional<Orientation>;
|
|
142
144
|
scale?: Optional<number>;
|
|
145
|
+
svgString?: Optional<string>;
|
|
143
146
|
};
|
|
144
147
|
export type JobObjectScalebar = {
|
|
145
148
|
type: 'scalebar';
|
|
@@ -152,6 +155,7 @@ export type JobObjectScalebar = {
|
|
|
152
155
|
fontSize?: Optional<number>;
|
|
153
156
|
maxWidth?: Optional<number>;
|
|
154
157
|
unit?: Optional<ScalebarUnit>;
|
|
158
|
+
svgString?: Optional<string>;
|
|
155
159
|
};
|
|
156
160
|
export type JobObjectWebControls = {
|
|
157
161
|
type: 'webControls';
|
|
@@ -194,12 +198,12 @@ export type JobObjectHeading = {
|
|
|
194
198
|
titleColor?: Optional<string>;
|
|
195
199
|
titleFont?: Optional<string>;
|
|
196
200
|
titleFontSize?: Optional<number>;
|
|
197
|
-
titleJustify?: Optional<
|
|
201
|
+
titleJustify?: Optional<JobObjectJustify>;
|
|
198
202
|
subtitle: string;
|
|
199
203
|
subtitleColor?: Optional<string>;
|
|
200
204
|
subtitleFont?: Optional<string>;
|
|
201
205
|
subtitleFontSize?: Optional<number>;
|
|
202
|
-
subtitleJustify?: Optional<
|
|
206
|
+
subtitleJustify?: Optional<JobObjectJustify>;
|
|
203
207
|
background?: Optional<string>;
|
|
204
208
|
showBackground?: Optional<boolean>;
|
|
205
209
|
};
|
|
@@ -261,7 +265,6 @@ export type JobObjectLine = {
|
|
|
261
265
|
lineColor?: Optional<string>;
|
|
262
266
|
lineStyle?: Optional<'solid' | 'dashed' | 'dotted'>;
|
|
263
267
|
lineType?: Optional<'line' | 'route'>;
|
|
264
|
-
lineDashArray?: Optional<number[]>;
|
|
265
268
|
transportType?: Optional<'car' | 'bicycle' | 'pedestrian'>;
|
|
266
269
|
smoothness?: Optional<number>;
|
|
267
270
|
svg?: Optional<string>;
|
|
@@ -351,7 +354,7 @@ export type JobObjectMarker = {
|
|
|
351
354
|
textAnchor?: Optional<Anchor>;
|
|
352
355
|
textLineHeight?: Optional<number>;
|
|
353
356
|
textLetterSpacing?: Optional<number>;
|
|
354
|
-
textJustify?: Optional<
|
|
357
|
+
textJustify?: Optional<JobObjectJustify>;
|
|
355
358
|
textRotation?: Optional<number>;
|
|
356
359
|
textOffset?: Optional<[number, number]>;
|
|
357
360
|
textColor?: Optional<string>;
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -28,4 +28,5 @@ export declare function stripQuotes(s: string): string;
|
|
|
28
28
|
export declare function fnv32b(str: string): string;
|
|
29
29
|
export declare function calculateScaleCorrection(jobObject: JobObject, container: HTMLElement): number;
|
|
30
30
|
export declare function almostEqual(a: number, b: number, delta?: number): boolean;
|
|
31
|
+
export declare function isInIframe(): boolean;
|
|
31
32
|
export {};
|