@itwin/map-layers-formats 4.0.0-dev.8 → 4.0.0-dev.80
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/.rush/temp/operation/build/all.log +3 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/operation/cover/all.log +98 -0
- package/.rush/temp/operation/cover/state.json +1 -1
- package/.rush/temp/operation/docs/all.log +30 -0
- package/.rush/temp/operation/docs/state.json +1 -1
- package/.rush/temp/{package-deps_build_ci.json → package-deps_build.json} +11 -11
- package/.rush/temp/package-deps_cover.json +10 -10
- package/.rush/temp/package-deps_docs.json +10 -10
- package/.rush/temp/shrinkwrap-deps.json +190 -44
- package/CHANGELOG.json +57 -0
- package/CHANGELOG.md +44 -1
- package/config/rush-project.json +1 -2
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js +132 -134
- package/lib/cjs/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js +200 -202
- package/lib/cjs/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js +421 -422
- package/lib/cjs/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureQuery.js +82 -82
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
- package/lib/cjs/ArcGisFeature/ArcGisFeatureReader.js +33 -33
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
- package/lib/cjs/ArcGisFeature/ArcGisFeatureRenderer.js +142 -142
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js +42 -43
- package/lib/cjs/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js +189 -192
- package/lib/cjs/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js +2267 -2270
- package/lib/cjs/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/cjs/map-layers-formats.d.ts +8 -8
- package/lib/cjs/map-layers-formats.js +28 -24
- package/lib/cjs/map-layers-formats.js.map +1 -1
- package/lib/cjs/mapLayersFormats.d.ts +10 -10
- package/lib/cjs/mapLayersFormats.js +28 -28
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +34 -34
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureJSON.test.js +161 -161
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeaturePBF.test.js +167 -167
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js +679 -680
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureQuery.test.js +103 -103
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +214 -214
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js +94 -94
- package/lib/cjs/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
- package/lib/cjs/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +59 -59
- package/lib/cjs/test/ArcGisFeature/Mocks.d.ts +6 -6
- package/lib/cjs/test/ArcGisFeature/Mocks.js +18 -18
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js +419 -419
- package/lib/cjs/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js +426 -426
- package/lib/cjs/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
- package/lib/cjs/test/coverage/.nyc_output/965fc94c-e7e4-4e85-bf72-aecce4f5ac8c.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/4935e330-732e-4dc9-9cc7-6639c02bf614.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/965fc94c-e7e4-4e85-bf72-aecce4f5ac8c.json +1 -0
- package/lib/cjs/test/coverage/.nyc_output/processinfo/index.json +1 -1
- package/lib/cjs/test/coverage/cobertura-coverage.xml +72 -72
- package/lib/cjs/test/coverage/lcov-report/index.html +5 -5
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureFormat.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureJSON.ts.html +10 -10
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeaturePBF.ts.html +7 -7
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureProvider.ts.html +10 -10
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureQuery.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureReader.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureRenderer.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisFeatureResponse.ts.html +4 -4
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/ArcGisSymbologyRenderer.ts.html +8 -8
- package/lib/cjs/test/coverage/lcov-report/src/ArcGisFeature/index.html +13 -13
- package/lib/cjs/test/coverage/lcov-report/src/index.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/map-layers-formats.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov-report/src/mapLayersFormats.ts.html +1 -1
- package/lib/cjs/test/coverage/lcov.info +355 -531
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.d.ts +8 -8
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js +11 -10
- package/lib/esm/ArcGisFeature/ArcGisFeatureFormat.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.d.ts +14 -14
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js +128 -130
- package/lib/esm/ArcGisFeature/ArcGisFeatureJSON.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.d.ts +14 -14
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js +196 -198
- package/lib/esm/ArcGisFeature/ArcGisFeaturePBF.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.d.ts +44 -44
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js +418 -418
- package/lib/esm/ArcGisFeature/ArcGisFeatureProvider.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts +92 -92
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureQuery.js +78 -78
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.d.ts +17 -17
- package/lib/esm/ArcGisFeature/ArcGisFeatureReader.js +29 -29
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.d.ts +32 -32
- package/lib/esm/ArcGisFeature/ArcGisFeatureRenderer.js +138 -138
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts +16 -16
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js +38 -39
- package/lib/esm/ArcGisFeature/ArcGisFeatureResponse.js.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts +85 -85
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js +183 -185
- package/lib/esm/ArcGisFeature/ArcGisSymbologyRenderer.js.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts +1063 -1063
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.d.ts.map +1 -1
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js +2264 -2267
- package/lib/esm/ArcGisFeature/esriPBuffer.gen.js.map +1 -1
- package/lib/esm/map-layers-formats.d.ts +8 -8
- package/lib/esm/map-layers-formats.js +12 -12
- package/lib/esm/mapLayersFormats.d.ts +10 -10
- package/lib/esm/mapLayersFormats.js +24 -24
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureFeatureFormats.test.js +32 -32
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureJSON.test.js +159 -159
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeaturePBF.test.js +165 -165
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js +677 -678
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureProvider.test.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureQuery.test.js +101 -101
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureRenderer.test.js +212 -212
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js +92 -92
- package/lib/esm/test/ArcGisFeature/ArcGisFeatureResponse.test.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.d.ts +1 -1
- package/lib/esm/test/ArcGisFeature/ArcGisSymbologyRenderer.test.js +57 -57
- package/lib/esm/test/ArcGisFeature/Mocks.d.ts +6 -6
- package/lib/esm/test/ArcGisFeature/Mocks.js +15 -15
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts +55 -55
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.d.ts.map +1 -1
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js +416 -415
- package/lib/esm/test/ArcGisFeature/NewYorkDataset.js.map +1 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts +1042 -1042
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.d.ts.map +1 -1
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js +423 -422
- package/lib/esm/test/ArcGisFeature/PhillyLandmarksDataset.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/test/junit_results.xml +48 -48
- package/map-layers-formats.build.log +2 -2
- package/package.json +17 -17
- package/src/ArcGisFeature/esriPBuffer.gen.ts +1 -4
- package/src/test/ArcGisFeature/ArcGisFeatureProvider.test.ts +21 -21
- package/src/test/ArcGisFeature/NewYorkDataset.ts +187 -187
- package/src/test/ArcGisFeature/PhillyLandmarksDataset.ts +4 -4
- package/tsconfig.json +1 -2
- package/.rush/temp/operation/build_ci/state.json +0 -3
- package/lib/cjs/test/coverage/.nyc_output/bb9e12be-ea3c-4cee-99d0-c7a34bd2c47a.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/5901bdfe-760d-4ca3-9674-876be7ed11b1.json +0 -1
- package/lib/cjs/test/coverage/.nyc_output/processinfo/bb9e12be-ea3c-4cee-99d0-c7a34bd2c47a.json +0 -1
- /package/lib/cjs/test/coverage/.nyc_output/{5901bdfe-760d-4ca3-9674-876be7ed11b1.json → 4935e330-732e-4dc9-9cc7-6639c02bf614.json} +0 -0
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { ColorDef } from "@itwin/core-common";
|
|
2
|
-
import { ArcGisFeatureGeometryType } from "./ArcGisFeatureQuery";
|
|
3
|
-
/** @internal */
|
|
4
|
-
export
|
|
5
|
-
interface EsriSymbol {
|
|
6
|
-
type: EsriSymbolType;
|
|
7
|
-
}
|
|
8
|
-
/** @internal */
|
|
9
|
-
export
|
|
10
|
-
interface EsriSLSProps {
|
|
11
|
-
color: number[];
|
|
12
|
-
type: EsriSymbolType;
|
|
13
|
-
width: number;
|
|
14
|
-
style: EsriSLSStyle;
|
|
15
|
-
}
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare class EsriSLS implements EsriSymbol {
|
|
18
|
-
readonly props: EsriSLSProps;
|
|
19
|
-
get color(): ColorDef | undefined;
|
|
20
|
-
get type(): EsriSymbolType;
|
|
21
|
-
get width(): number;
|
|
22
|
-
get style(): EsriSLSStyle;
|
|
23
|
-
constructor(json: EsriSLSProps);
|
|
24
|
-
static fromJSON(json: EsriSLSProps): EsriSLS;
|
|
25
|
-
}
|
|
26
|
-
interface EsriPMSProps {
|
|
27
|
-
type: EsriSymbolType;
|
|
28
|
-
url: string;
|
|
29
|
-
imageData: string;
|
|
30
|
-
contentType: string;
|
|
31
|
-
width?: number;
|
|
32
|
-
height?: number;
|
|
33
|
-
xoffset?: number;
|
|
34
|
-
yoffset?: number;
|
|
35
|
-
angle?: number;
|
|
36
|
-
}
|
|
37
|
-
/** @internal */
|
|
38
|
-
export declare class EsriPMS implements EsriSymbol {
|
|
39
|
-
readonly props: EsriPMSProps;
|
|
40
|
-
private _image;
|
|
41
|
-
get type(): EsriSymbolType;
|
|
42
|
-
get url(): string;
|
|
43
|
-
get imageData(): string;
|
|
44
|
-
get imageUrl(): string;
|
|
45
|
-
get image(): HTMLImageElement;
|
|
46
|
-
get contentType(): string;
|
|
47
|
-
get width(): number | undefined;
|
|
48
|
-
get height(): number | undefined;
|
|
49
|
-
get xoffset(): number | undefined;
|
|
50
|
-
get yoffset(): number | undefined;
|
|
51
|
-
get angle(): number | undefined;
|
|
52
|
-
constructor(json: EsriPMSProps);
|
|
53
|
-
static fromJSON(json: EsriPMSProps): EsriPMS;
|
|
54
|
-
}
|
|
55
|
-
/** @internal */
|
|
56
|
-
export
|
|
57
|
-
interface EsriSFSProps {
|
|
58
|
-
color?: number[];
|
|
59
|
-
type: EsriSymbolType;
|
|
60
|
-
style: EsriSFSStyleProps;
|
|
61
|
-
outline?: EsriSLSProps;
|
|
62
|
-
}
|
|
63
|
-
/** @internal */
|
|
64
|
-
export declare class EsriSFS implements EsriSymbol {
|
|
65
|
-
readonly props: EsriSFSProps;
|
|
66
|
-
private _outline;
|
|
67
|
-
get color(): ColorDef | undefined;
|
|
68
|
-
get type(): EsriSymbolType;
|
|
69
|
-
get style(): EsriSFSStyleProps;
|
|
70
|
-
get outline(): EsriSLS | undefined;
|
|
71
|
-
constructor(json: EsriSFSProps);
|
|
72
|
-
static fromJSON(json: EsriSFSProps): EsriSFS;
|
|
73
|
-
}
|
|
74
|
-
/** @internal */
|
|
75
|
-
export declare class ArcGisSymbologyRenderer {
|
|
76
|
-
private _symbol;
|
|
77
|
-
private static readonly defaultPMS;
|
|
78
|
-
private static readonly defaultSLS;
|
|
79
|
-
private static readonly defaultSFS;
|
|
80
|
-
constructor(geometryType: ArcGisFeatureGeometryType, rendererDefinition: any);
|
|
81
|
-
applyFillStyle(context: CanvasRenderingContext2D): void;
|
|
82
|
-
applyStrokeStyle(context: CanvasRenderingContext2D): void;
|
|
83
|
-
drawPoint(context: CanvasRenderingContext2D, ptX: number, ptY: number): void;
|
|
84
|
-
}
|
|
85
|
-
export {};
|
|
1
|
+
import { ColorDef } from "@itwin/core-common";
|
|
2
|
+
import { ArcGisFeatureGeometryType } from "./ArcGisFeatureQuery";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export type EsriSymbolType = "esriSFS" | "esriPMS" | "esriSLS" | "esriSMS" | "esriTS" | "CIMSymbolReference";
|
|
5
|
+
interface EsriSymbol {
|
|
6
|
+
type: EsriSymbolType;
|
|
7
|
+
}
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type EsriSLSStyle = "esriSLSDash" | "esriSLSDashDot" | "esriSLSDashDotDot" | "esriSLSDot" | "esriSLSLongDash" | "esriSLSLongDashDot" | "esriSLSNull" | "esriSLSShortDash" | "esriSLSShortDashDot" | "esriSLSShortDashDotDot" | "esriSLSShortDot" | "esriSLSSolid";
|
|
10
|
+
interface EsriSLSProps {
|
|
11
|
+
color: number[];
|
|
12
|
+
type: EsriSymbolType;
|
|
13
|
+
width: number;
|
|
14
|
+
style: EsriSLSStyle;
|
|
15
|
+
}
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare class EsriSLS implements EsriSymbol {
|
|
18
|
+
readonly props: EsriSLSProps;
|
|
19
|
+
get color(): ColorDef | undefined;
|
|
20
|
+
get type(): EsriSymbolType;
|
|
21
|
+
get width(): number;
|
|
22
|
+
get style(): EsriSLSStyle;
|
|
23
|
+
constructor(json: EsriSLSProps);
|
|
24
|
+
static fromJSON(json: EsriSLSProps): EsriSLS;
|
|
25
|
+
}
|
|
26
|
+
interface EsriPMSProps {
|
|
27
|
+
type: EsriSymbolType;
|
|
28
|
+
url: string;
|
|
29
|
+
imageData: string;
|
|
30
|
+
contentType: string;
|
|
31
|
+
width?: number;
|
|
32
|
+
height?: number;
|
|
33
|
+
xoffset?: number;
|
|
34
|
+
yoffset?: number;
|
|
35
|
+
angle?: number;
|
|
36
|
+
}
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare class EsriPMS implements EsriSymbol {
|
|
39
|
+
readonly props: EsriPMSProps;
|
|
40
|
+
private _image;
|
|
41
|
+
get type(): EsriSymbolType;
|
|
42
|
+
get url(): string;
|
|
43
|
+
get imageData(): string;
|
|
44
|
+
get imageUrl(): string;
|
|
45
|
+
get image(): HTMLImageElement;
|
|
46
|
+
get contentType(): string;
|
|
47
|
+
get width(): number | undefined;
|
|
48
|
+
get height(): number | undefined;
|
|
49
|
+
get xoffset(): number | undefined;
|
|
50
|
+
get yoffset(): number | undefined;
|
|
51
|
+
get angle(): number | undefined;
|
|
52
|
+
constructor(json: EsriPMSProps);
|
|
53
|
+
static fromJSON(json: EsriPMSProps): EsriPMS;
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type EsriSFSStyleProps = "esriSFSBackwardDiagonal" | "esriSFSCross" | "esriSFSDiagonalCross" | "esriSFSForwardDiagonal" | "esriSFSHorizontal" | "esriSFSNull" | "esriSFSSolid" | "esriSFSVertical";
|
|
57
|
+
interface EsriSFSProps {
|
|
58
|
+
color?: number[];
|
|
59
|
+
type: EsriSymbolType;
|
|
60
|
+
style: EsriSFSStyleProps;
|
|
61
|
+
outline?: EsriSLSProps;
|
|
62
|
+
}
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare class EsriSFS implements EsriSymbol {
|
|
65
|
+
readonly props: EsriSFSProps;
|
|
66
|
+
private _outline;
|
|
67
|
+
get color(): ColorDef | undefined;
|
|
68
|
+
get type(): EsriSymbolType;
|
|
69
|
+
get style(): EsriSFSStyleProps;
|
|
70
|
+
get outline(): EsriSLS | undefined;
|
|
71
|
+
constructor(json: EsriSFSProps);
|
|
72
|
+
static fromJSON(json: EsriSFSProps): EsriSFS;
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare class ArcGisSymbologyRenderer {
|
|
76
|
+
private _symbol;
|
|
77
|
+
private static readonly defaultPMS;
|
|
78
|
+
private static readonly defaultSLS;
|
|
79
|
+
private static readonly defaultSFS;
|
|
80
|
+
constructor(geometryType: ArcGisFeatureGeometryType, rendererDefinition: any);
|
|
81
|
+
applyFillStyle(context: CanvasRenderingContext2D): void;
|
|
82
|
+
applyStrokeStyle(context: CanvasRenderingContext2D): void;
|
|
83
|
+
drawPoint(context: CanvasRenderingContext2D, ptX: number, ptY: number): void;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
86
86
|
//# sourceMappingURL=ArcGisSymbologyRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArcGisSymbologyRenderer.d.ts","sourceRoot":"","sources":["../../../src/ArcGisFeature/ArcGisSymbologyRenderer.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAajE,gBAAgB;AAChB,
|
|
1
|
+
{"version":3,"file":"ArcGisSymbologyRenderer.d.ts","sourceRoot":"","sources":["../../../src/ArcGisFeature/ArcGisSymbologyRenderer.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,186 +1,184 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Logger } from "@itwin/core-bentley";
|
|
6
|
-
import { ColorDef } from "@itwin/core-common";
|
|
7
|
-
// Convert a channel array [r, g, b, a] to ColorDef
|
|
8
|
-
function colorFromArray(channels) {
|
|
9
|
-
if (channels && channels.length === 4) {
|
|
10
|
-
// Alpha channel is reversed, 255 = opaque
|
|
11
|
-
return ColorDef.from(channels[0], channels[1], channels[2], 255 - channels[3]);
|
|
12
|
-
}
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
const loggerCategory = "MapLayersFormats.ArcGISFeature";
|
|
16
|
-
/** @internal */
|
|
17
|
-
export class EsriSLS {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
get
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static fromJSON(json) {
|
|
26
|
-
return new EsriSLS(json);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/** @internal */
|
|
30
|
-
export class EsriPMS {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
get
|
|
37
|
-
get
|
|
38
|
-
get
|
|
39
|
-
get
|
|
40
|
-
get
|
|
41
|
-
get
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
static fromJSON(json) {
|
|
48
|
-
return new EsriPMS(json);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
/** @internal */
|
|
52
|
-
export class EsriSFS {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
static fromJSON(json) {
|
|
63
|
-
return new EsriSFS(json);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/** @internal */
|
|
67
|
-
|
|
68
|
-
constructor(geometryType, rendererDefinition) {
|
|
69
|
-
let symbol;
|
|
70
|
-
if (
|
|
71
|
-
symbol = rendererDefinition.symbol;
|
|
72
|
-
}
|
|
73
|
-
else if (
|
|
74
|
-
symbol = rendererDefinition
|
|
75
|
-
}
|
|
76
|
-
if (symbol !== undefined) {
|
|
77
|
-
if (symbol.type === "esriSFS") {
|
|
78
|
-
this._symbol = EsriSFS.fromJSON(symbol);
|
|
79
|
-
}
|
|
80
|
-
else if (symbol.type === "esriSLS") {
|
|
81
|
-
this._symbol = EsriSLS.fromJSON(symbol);
|
|
82
|
-
}
|
|
83
|
-
else if (symbol.type === "esriPMS") {
|
|
84
|
-
this._symbol = EsriPMS.fromJSON(symbol);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// If '_symbol' is still undefined at this point, that means we could not find
|
|
88
|
-
// any symbology definition from the metadata, let's use some default symbology
|
|
89
|
-
// so that we display at least something.
|
|
90
|
-
if (this._symbol === undefined) {
|
|
91
|
-
Logger.logWarning(loggerCategory, "Symbology definition not supported, using default symbology");
|
|
92
|
-
if (geometryType === "esriGeometryPoint" || geometryType === "esriGeometryMultipoint") {
|
|
93
|
-
this._symbol = EsriPMS.fromJSON(ArcGisSymbologyRenderer.defaultPMS);
|
|
94
|
-
}
|
|
95
|
-
else if (geometryType === "esriGeometryLine" || geometryType === "esriGeometryPolyline") {
|
|
96
|
-
this._symbol = EsriSLS.fromJSON(ArcGisSymbologyRenderer.defaultSLS);
|
|
97
|
-
}
|
|
98
|
-
else if (geometryType === "esriGeometryPolygon") {
|
|
99
|
-
this._symbol = EsriSFS.fromJSON(ArcGisSymbologyRenderer.defaultSFS);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
Logger.logError(loggerCategory, "Could not determine default symbology: geometry type not supported");
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
applyFillStyle(context) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
context.drawImage(pms.image, ptX + xOffset, ptY + yOffset
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
style: "esriSFSSolid",
|
|
185
|
-
};
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Logger } from "@itwin/core-bentley";
|
|
6
|
+
import { ColorDef } from "@itwin/core-common";
|
|
7
|
+
// Convert a channel array [r, g, b, a] to ColorDef
|
|
8
|
+
function colorFromArray(channels) {
|
|
9
|
+
if (channels && channels.length === 4) {
|
|
10
|
+
// Alpha channel is reversed, 255 = opaque
|
|
11
|
+
return ColorDef.from(channels[0], channels[1], channels[2], 255 - channels[3]);
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
const loggerCategory = "MapLayersFormats.ArcGISFeature";
|
|
16
|
+
/** @internal */
|
|
17
|
+
export class EsriSLS {
|
|
18
|
+
get color() { return colorFromArray(this.props.color); }
|
|
19
|
+
get type() { return this.props.type; }
|
|
20
|
+
get width() { return this.props.width; }
|
|
21
|
+
get style() { return this.props.style; }
|
|
22
|
+
constructor(json) {
|
|
23
|
+
this.props = json;
|
|
24
|
+
}
|
|
25
|
+
static fromJSON(json) {
|
|
26
|
+
return new EsriSLS(json);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export class EsriPMS {
|
|
31
|
+
get type() { return this.props.type; }
|
|
32
|
+
get url() { return this.props.url; }
|
|
33
|
+
get imageData() { return this.props.imageData; }
|
|
34
|
+
get imageUrl() { return `data:${this.contentType};base64,${this.imageData}`; }
|
|
35
|
+
get image() { return this._image; }
|
|
36
|
+
get contentType() { return this.props.contentType; }
|
|
37
|
+
get width() { return this.props.width; }
|
|
38
|
+
get height() { return this.props.height; }
|
|
39
|
+
get xoffset() { return this.props.xoffset; }
|
|
40
|
+
get yoffset() { return this.props.yoffset; }
|
|
41
|
+
get angle() { return this.props.angle; }
|
|
42
|
+
constructor(json) {
|
|
43
|
+
this.props = json;
|
|
44
|
+
this._image = new Image();
|
|
45
|
+
this._image.src = this.imageUrl;
|
|
46
|
+
}
|
|
47
|
+
static fromJSON(json) {
|
|
48
|
+
return new EsriPMS(json);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/** @internal */
|
|
52
|
+
export class EsriSFS {
|
|
53
|
+
get color() { return colorFromArray(this.props.color); }
|
|
54
|
+
get type() { return this.props.type; }
|
|
55
|
+
get style() { return this.props.style; }
|
|
56
|
+
get outline() { return this._outline; }
|
|
57
|
+
constructor(json) {
|
|
58
|
+
this.props = json;
|
|
59
|
+
if (json.outline)
|
|
60
|
+
this._outline = EsriSLS.fromJSON(json.outline);
|
|
61
|
+
}
|
|
62
|
+
static fromJSON(json) {
|
|
63
|
+
return new EsriSFS(json);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/** @internal */
|
|
67
|
+
class ArcGisSymbologyRenderer {
|
|
68
|
+
constructor(geometryType, rendererDefinition) {
|
|
69
|
+
let symbol;
|
|
70
|
+
if (rendererDefinition?.symbol !== undefined) {
|
|
71
|
+
symbol = rendererDefinition.symbol;
|
|
72
|
+
}
|
|
73
|
+
else if (rendererDefinition?.defaultSymbol !== undefined) {
|
|
74
|
+
symbol = rendererDefinition?.defaultSymbol;
|
|
75
|
+
}
|
|
76
|
+
if (symbol !== undefined) {
|
|
77
|
+
if (symbol.type === "esriSFS") {
|
|
78
|
+
this._symbol = EsriSFS.fromJSON(symbol);
|
|
79
|
+
}
|
|
80
|
+
else if (symbol.type === "esriSLS") {
|
|
81
|
+
this._symbol = EsriSLS.fromJSON(symbol);
|
|
82
|
+
}
|
|
83
|
+
else if (symbol.type === "esriPMS") {
|
|
84
|
+
this._symbol = EsriPMS.fromJSON(symbol);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// If '_symbol' is still undefined at this point, that means we could not find
|
|
88
|
+
// any symbology definition from the metadata, let's use some default symbology
|
|
89
|
+
// so that we display at least something.
|
|
90
|
+
if (this._symbol === undefined) {
|
|
91
|
+
Logger.logWarning(loggerCategory, "Symbology definition not supported, using default symbology");
|
|
92
|
+
if (geometryType === "esriGeometryPoint" || geometryType === "esriGeometryMultipoint") {
|
|
93
|
+
this._symbol = EsriPMS.fromJSON(ArcGisSymbologyRenderer.defaultPMS);
|
|
94
|
+
}
|
|
95
|
+
else if (geometryType === "esriGeometryLine" || geometryType === "esriGeometryPolyline") {
|
|
96
|
+
this._symbol = EsriSLS.fromJSON(ArcGisSymbologyRenderer.defaultSLS);
|
|
97
|
+
}
|
|
98
|
+
else if (geometryType === "esriGeometryPolygon") {
|
|
99
|
+
this._symbol = EsriSFS.fromJSON(ArcGisSymbologyRenderer.defaultSFS);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
Logger.logError(loggerCategory, "Could not determine default symbology: geometry type not supported");
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
applyFillStyle(context) {
|
|
107
|
+
if (!context)
|
|
108
|
+
return;
|
|
109
|
+
if (this._symbol?.type === "esriSFS") {
|
|
110
|
+
const sfs = this._symbol;
|
|
111
|
+
if (sfs.style === "esriSFSSolid" && sfs.color) {
|
|
112
|
+
context.fillStyle = sfs.color.toRgbaString();
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
context.fillStyle = ColorDef.from(200, 0, 0, 100).toRgbaString(); // default color is red?
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
applyStrokeStyle(context) {
|
|
120
|
+
if (!context)
|
|
121
|
+
return;
|
|
122
|
+
let sls;
|
|
123
|
+
if (this._symbol?.type === "esriSFS") {
|
|
124
|
+
const sfs = this._symbol;
|
|
125
|
+
if (sfs.outline && sfs.outline.style === "esriSLSSolid") {
|
|
126
|
+
sls = sfs.outline;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if (this._symbol?.type === "esriSLS") {
|
|
130
|
+
sls = this._symbol;
|
|
131
|
+
}
|
|
132
|
+
if (sls) {
|
|
133
|
+
if (sls.color)
|
|
134
|
+
context.strokeStyle = sls.color.toRgbaString();
|
|
135
|
+
context.lineWidth = sls.width; // TODO: Should we scale this value here?
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
drawPoint(context, ptX, ptY) {
|
|
139
|
+
if (!context)
|
|
140
|
+
return;
|
|
141
|
+
if (this._symbol?.type === "esriPMS") {
|
|
142
|
+
const pms = this._symbol;
|
|
143
|
+
let xOffset = 0, yOffset = 0;
|
|
144
|
+
if (pms.xoffset)
|
|
145
|
+
xOffset = pms.xoffset;
|
|
146
|
+
else if (pms.width)
|
|
147
|
+
xOffset = pms.width * -0.5; // if no offset center in the middle
|
|
148
|
+
if (pms.yoffset)
|
|
149
|
+
yOffset = pms.yoffset;
|
|
150
|
+
else if (pms.height)
|
|
151
|
+
yOffset = pms.height * -0.5; // if no offset center in the middle
|
|
152
|
+
if (pms.width && pms.height) {
|
|
153
|
+
context.drawImage(pms.image, ptX + xOffset, ptY + yOffset, pms.width, pms.height);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
context.drawImage(pms.image, ptX + xOffset, ptY + yOffset);
|
|
157
|
+
}
|
|
158
|
+
// TODO: marker rotation angle
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
ArcGisSymbologyRenderer.defaultPMS = {
|
|
163
|
+
type: "esriPMS",
|
|
164
|
+
url: "",
|
|
165
|
+
contentType: "image/png",
|
|
166
|
+
imageData: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAmBJREFUOE+Nk01IVFEUx//n3jfvOZOaJkMtiiJ7o9RG3LgoqKhFSFJBTS1ahFBBi0ijfJXCIyQr+hBbSIsoW7iQoKKFCw2CkAI3tZAgy8Ei+xhoTCbnje/NPfHGnA816KzuPR+/c8/HJRQJE7o+VUhym0DcCOYGgBQEXjOLlyqo+nHanCkMoaL4rslKjZwOQLT4ek3Mmz3FACFNLB67ut6M1nWphbg8wI6VyJK5KEH0EQFVJRKbwzokAW++p/ErraAYSQK3u47bC3vLnA+ZB9i2gHF0oyQMCfCGNaUa+vauxs71wWz2V18cnBj8gQ8J1/eeBnHUa4sMFQDGdGno+4gwEAoQzjVUon3rqlx1KY9x7+0MWobjAPg3QJ2eZV4tAEyFNCN5FkSXyw2B3j1hRGvLcgBXMV5MptA4MOXr0gT0u5bZnAf0jBsyiSgJPAxqhON1K3FlRxUMvwFAtv7u0Wl0jvwEmJNEuOhakTt5wKEBifr6Oo14BIBRpgt07w6jcVMIngKGY7NofR5HwlF+zDcpsC193vyYB/innvHywCzdZfAR/+onX1segBTAxHzzfPE7/8yzzIPLjJE1LTixHZx5CtCK4gXLzovBiDPUsYxVM7gUkB3nWKlm6DYEnQGzXARxCOK+a1WfKtQXb6LNAvr7iCboCUA1Ocdsdv5KLPe7F6pH/w3wLbc+BwOuc5IZ1wEE/jonQbjptZn24tKKX7BgvR2r0NKZRwDvAqCI+Z30VJPTURv7P4A9psuQcYAUPwAoReBLrmX2Lmls7i8sZ7kWLwuoxA1FVJGxzMPLufi6P2r+2xFbOUjGAAAAAElFTkSuQmCC",
|
|
167
|
+
width: 16,
|
|
168
|
+
height: 16,
|
|
169
|
+
xoffset: -8,
|
|
170
|
+
yoffset: -16,
|
|
171
|
+
};
|
|
172
|
+
ArcGisSymbologyRenderer.defaultSLS = {
|
|
173
|
+
type: "esriSLS",
|
|
174
|
+
color: [0, 0, 0, 255],
|
|
175
|
+
width: 1,
|
|
176
|
+
style: "esriSLSSolid",
|
|
177
|
+
};
|
|
178
|
+
ArcGisSymbologyRenderer.defaultSFS = {
|
|
179
|
+
type: "esriSFS",
|
|
180
|
+
color: [0, 0, 0, 255],
|
|
181
|
+
style: "esriSFSSolid",
|
|
182
|
+
};
|
|
183
|
+
export { ArcGisSymbologyRenderer };
|
|
186
184
|
//# sourceMappingURL=ArcGisSymbologyRenderer.js.map
|