gisviewer-vue3-arcgis 1.0.142 → 1.0.144
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/es/src/gis-map/gis-map.vue.d.ts +0 -17
- package/es/src/gis-map/gis-map.vue.mjs +113 -118
- package/es/src/gis-map/index.d.ts +0 -17
- package/es/src/gis-map/stores/appData.d.ts +1 -0
- package/es/src/gis-map/stores/appData.mjs +2 -1
- package/es/src/gis-map/utils/map-initializer.mjs +6 -6
- package/es/src/gis-map/utils/open-drive-renderer/index.mjs +231 -215
- package/es/src/gis-map/utils/signal-control-area-controller/index.mjs +3 -3
- package/es/src/gis-map/utils/sketchView.d.ts +14 -14
- package/es/src/gis-map/utils/sketchView.mjs +173 -164
- package/es/src/gis-map/utils/sketchViewTool.d.ts +16 -16
- package/es/src/gis-map/utils/sketchViewTool.mjs +39 -39
- package/es/style.css +1 -1
- package/lib/src/gis-map/gis-map.vue.d.ts +0 -17
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +0 -17
- package/lib/src/gis-map/stores/appData.d.ts +1 -0
- package/lib/src/gis-map/stores/appData.js +1 -1
- package/lib/src/gis-map/utils/map-initializer.js +1 -1
- package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
- package/lib/src/gis-map/utils/sketchView.d.ts +14 -14
- package/lib/src/gis-map/utils/sketchView.js +1 -1
- package/lib/src/gis-map/utils/sketchViewTool.d.ts +16 -16
- package/lib/src/gis-map/utils/sketchViewTool.js +1 -1
- package/package.json +1 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/src/gis-map/utils/components/sketch-tool.vue.d.ts +0 -18
- package/es/src/gis-map/utils/components/sketch-tool.vue.mjs +0 -7
- package/es/src/gis-map/utils/components/sketch-tool.vue2.mjs +0 -48
- package/es/src/gis-map/utils/components/sketch-tool.vue3.mjs +0 -4
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
- package/lib/src/gis-map/utils/components/sketch-tool.vue.d.ts +0 -18
- package/lib/src/gis-map/utils/components/sketch-tool.vue.js +0 -1
- package/lib/src/gis-map/utils/components/sketch-tool.vue2.js +0 -1
- package/lib/src/gis-map/utils/components/sketch-tool.vue3.js +0 -1
|
@@ -285,7 +285,7 @@ class x {
|
|
|
285
285
|
type: "CIMSymbolReference",
|
|
286
286
|
primitiveOverrides: [
|
|
287
287
|
{
|
|
288
|
-
// 将textGraphic的TextString替换为graphic.attributes.
|
|
288
|
+
// 将textGraphic的TextString替换为graphic.attributes.name
|
|
289
289
|
type: "CIMPrimitiveOverride",
|
|
290
290
|
primitiveName: "textGraphic",
|
|
291
291
|
propertyName: "TextString",
|
|
@@ -300,7 +300,7 @@ class x {
|
|
|
300
300
|
symbol: {
|
|
301
301
|
type: "CIMPointSymbol",
|
|
302
302
|
symbolLayers: [
|
|
303
|
-
//
|
|
303
|
+
// 路口名称
|
|
304
304
|
{
|
|
305
305
|
type: "CIMVectorMarker",
|
|
306
306
|
size: 32,
|
|
@@ -347,7 +347,7 @@ class x {
|
|
|
347
347
|
scaleSymbolsProportionally: !0,
|
|
348
348
|
respectFrame: !0
|
|
349
349
|
},
|
|
350
|
-
//
|
|
350
|
+
// 路口图标
|
|
351
351
|
{
|
|
352
352
|
type: "CIMPictureMarker",
|
|
353
353
|
enable: !0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import Graphic from '@arcgis/core/Graphic';
|
|
1
2
|
import GraphicsLayer from '@arcgis/core/layers/GraphicsLayer';
|
|
2
3
|
import MapView from '@arcgis/core/views/MapView';
|
|
3
4
|
import SceneView from '@arcgis/core/views/SceneView';
|
|
4
|
-
import SketchViewModel from '@arcgis/core/widgets/Sketch/SketchViewModel';
|
|
5
5
|
import Sketch from '@arcgis/core/widgets/Sketch';
|
|
6
|
-
import
|
|
6
|
+
import SketchViewModel from '@arcgis/core/widgets/Sketch/SketchViewModel';
|
|
7
7
|
interface sketchViewOptions {
|
|
8
8
|
/**
|
|
9
9
|
* 最大允许绘制的图形数量
|
|
@@ -16,7 +16,7 @@ interface sketchViewOptions {
|
|
|
16
16
|
/**
|
|
17
17
|
* 绘制工具显示的元素
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
sketchVisibleElements?: {};
|
|
20
20
|
/**
|
|
21
21
|
* 绘制工具显示的位置
|
|
22
22
|
*/
|
|
@@ -27,7 +27,7 @@ interface sketchViewOptions {
|
|
|
27
27
|
* @type {boolean}
|
|
28
28
|
* @memberof sketchViewOptions
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
defaultSketchVisible?: boolean;
|
|
31
31
|
sketchViewModelItemSymbol?: {
|
|
32
32
|
polylineSymbol?: any;
|
|
33
33
|
polygonSymbol?: any;
|
|
@@ -42,7 +42,7 @@ declare type LinearUnits = 'meters' | 'feet' | 'kilometers' | 'miles' | 'nautica
|
|
|
42
42
|
export default class SketchView {
|
|
43
43
|
private viewer;
|
|
44
44
|
graphicsLayer: GraphicsLayer;
|
|
45
|
-
|
|
45
|
+
TextGraphicsLayer: GraphicsLayer;
|
|
46
46
|
sketchViewModel: SketchViewModel;
|
|
47
47
|
sketch: Sketch;
|
|
48
48
|
options: sketchViewOptions;
|
|
@@ -74,10 +74,10 @@ export default class SketchView {
|
|
|
74
74
|
* @returns
|
|
75
75
|
* @memberof SketchView
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
initSectionArea(data: any, reverse?: boolean): any;
|
|
78
78
|
createPolylineGraphic(paths: any, lineSymbol: any, attributes: any): Graphic;
|
|
79
79
|
createPolygonGraphic(rings: any, lineSymbol: any, attributes: any): Graphic;
|
|
80
|
-
on(
|
|
80
|
+
on(callback?: (type: string, points: any, event?: any) => void): void;
|
|
81
81
|
/**
|
|
82
82
|
* 获取当前绘制的计算区域
|
|
83
83
|
* @returns
|
|
@@ -105,7 +105,7 @@ export default class SketchView {
|
|
|
105
105
|
attributes: any;
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
rawData: {
|
|
109
109
|
point: any;
|
|
110
110
|
type: string;
|
|
111
111
|
attributes: any;
|
|
@@ -115,7 +115,7 @@ export default class SketchView {
|
|
|
115
115
|
* 获取进口道所在的进口道编号
|
|
116
116
|
*
|
|
117
117
|
* @param {armData} armData 进口道编号区域
|
|
118
|
-
* @param {*}
|
|
118
|
+
* @param {*} graphicPolygon 绘制的区域
|
|
119
119
|
* @returns
|
|
120
120
|
* @memberof SketchView
|
|
121
121
|
*/
|
|
@@ -126,7 +126,7 @@ export default class SketchView {
|
|
|
126
126
|
*
|
|
127
127
|
* @private
|
|
128
128
|
* @param {*} geometry
|
|
129
|
-
* @param {boolean} [
|
|
129
|
+
* @param {boolean} [isFilterData=true] 是否过滤首尾相同点数据
|
|
130
130
|
* @returns
|
|
131
131
|
* @memberof SketchView
|
|
132
132
|
*/
|
|
@@ -152,7 +152,7 @@ export default class SketchView {
|
|
|
152
152
|
* @returns
|
|
153
153
|
* @memberof SketchView
|
|
154
154
|
*/
|
|
155
|
-
|
|
155
|
+
getShiftLine(lineGeometry: __esri.Geometry, distance: number, offsetUnit?: LinearUnits): __esri.Geometry | __esri.Geometry[];
|
|
156
156
|
/**
|
|
157
157
|
* 设置线的平移
|
|
158
158
|
*
|
|
@@ -161,7 +161,7 @@ export default class SketchView {
|
|
|
161
161
|
* @param {*} symbol 线的样式
|
|
162
162
|
* @memberof SketchView
|
|
163
163
|
*/
|
|
164
|
-
|
|
164
|
+
setShiftLine(distance: number, offsetUnit?: LinearUnits, symbol?: any): void;
|
|
165
165
|
/**
|
|
166
166
|
* 移除平移线
|
|
167
167
|
*
|
|
@@ -173,7 +173,7 @@ export default class SketchView {
|
|
|
173
173
|
*
|
|
174
174
|
* @memberof SketchView
|
|
175
175
|
*/
|
|
176
|
-
|
|
176
|
+
removeDraw(): void;
|
|
177
177
|
addGraphic(geometry: any, symbol?: any, attributes?: any): void;
|
|
178
178
|
/**
|
|
179
179
|
* 获取方向
|
|
@@ -202,7 +202,7 @@ export default class SketchView {
|
|
|
202
202
|
* 设置最大允许绘制的图形数量
|
|
203
203
|
* @param num 数量
|
|
204
204
|
*/
|
|
205
|
-
|
|
205
|
+
setMaxAllowedGraphics(num: number): void;
|
|
206
206
|
deepClone(obj: any): void;
|
|
207
207
|
destroy(): void;
|
|
208
208
|
}
|