mirage2d 1.2.8 → 1.2.10

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.
@@ -54,7 +54,14 @@ export declare class MirageMap extends baseMap {
54
54
  * @param {string} mapID
55
55
  */
56
56
  init(mapID: string): void;
57
+ /**
58
+ * 打开卷帘
59
+ * @param {object} layer - 配置项对象
60
+ */
57
61
  openSplitInteraction(layer: any): void;
62
+ /**
63
+ * 关闭卷帘
64
+ */
58
65
  closeSplitInteraction(): void;
59
66
  /**
60
67
  * 显示网格
@@ -1,3 +1,4 @@
1
+ /** Class UJson */
1
2
  export declare class UJson {
2
3
  static protoKey: string;
3
4
  static merge(target: any, source: any, overwrite: any): any;
@@ -10,7 +10,7 @@
10
10
  */
11
11
  /**
12
12
  * 基类.
13
- * @class
13
+ * @class 基类
14
14
  */
15
15
  export declare class baseClass {
16
16
  /** 容器 */
@@ -64,8 +64,8 @@ export interface IFeatureAnimationOptions {
64
64
  repeat?: number;
65
65
  hiddenStyle?: Style;
66
66
  horizontal?: boolean;
67
- fade?: ((p0: number) => number);
68
- easing?: ((p0: number) => number);
67
+ fade?: (p0: number) => number;
68
+ easing?: (p0: number) => number;
69
69
  }
70
70
  export interface ITooltipInfo {
71
71
  dataType: any;
@@ -247,6 +247,9 @@ export interface IImageStyle {
247
247
  radius?: number;
248
248
  fill?: IFillOption;
249
249
  stroke?: IStrokeOption;
250
+ points?: number;
251
+ angle?: number;
252
+ rotation?: number;
250
253
  }
251
254
  export interface ILabelStyle {
252
255
  text?: ITextOption;
@@ -19,6 +19,6 @@ export declare class swipeControl extends eventTarget {
19
19
  * @param {string} orientation 方向默认值 "vertical" 水平 "horizontal"
20
20
  * @returns {*}
21
21
  */
22
- show(leftlayerID: any, rightlayerID: any, orientation?: string): void;
22
+ show(leftlayerID: string, rightlayerID: string, orientation?: string): any;
23
23
  hide(): void;
24
24
  }
@@ -41,74 +41,110 @@ export declare class baseGraphic extends Feature {
41
41
  * @param {ITextOption} textStyleOption
42
42
  * @example
43
43
  * setTextStyle({
44
- font: "14px Microsoft YaHei",
45
- text: "示例",
44
+ font: "14px Microsoft YaHei",
45
+ text: "示例",
46
+ fill: {
47
+ color: "#8B4513", //"rgba(255, 255, 255, 1)",
48
+ },
49
+ stroke: {
50
+ color: "rgba(255, 255, 255,1)", //"#fff",
51
+ width: 2, //2,
52
+ },
53
+ backgroundFill: {
54
+ color: "rgba(255, 255, 255, 0.0)", //"rgba(255, 255, 255, 1)",
55
+ },
56
+ backgroundStroke: {
57
+ color: "rgba(0, 0, 0, 0.0)", //"#fff",
58
+ width: 2,
59
+ },
60
+ padding: [3, 3, 3, 3],
61
+ offsetX: 0,
62
+ offsetY: -10,
63
+ textBaseline: "bottom",
64
+ })
65
+ */
66
+ setTextStyle(textStyleOption: ITextOption): void;
67
+ /**
68
+ * 设置正方形样式
69
+ * @param {IImageStyle} ImageStyleOption
70
+ * @example
71
+ * setSquarePointStyle({
72
+ scale: 1, // 比例
73
+ radius: 5, // 大小
46
74
  fill: {
47
- color: "#8B4513", //"rgba(255, 255, 255, 1)",
75
+ color: "rgba(255, 0, 0,1)", // 填充色
48
76
  },
49
77
  stroke: {
50
- color: "rgba(255, 255, 255,1)", //"#fff",
51
- width: 2, //2,
52
- },
53
- backgroundFill: {
54
- color: "rgba(255, 255, 255, 0.0)", //"rgba(255, 255, 255, 1)",
78
+ color: "rgba(255, 255, 0,1)", // 边框色
79
+ width: 1, //宽度
80
+
55
81
  },
56
- backgroundStroke: {
57
- color: "rgba(0, 0, 0, 0.0)", //"#fff",
58
- width: 2,
59
- },
60
- padding: [3, 3, 3, 3],
61
- offsetX: 0,
62
- offsetY: -10,
63
- textBaseline: "bottom",
64
- })
82
+ })
65
83
  */
66
- setTextStyle(textStyleOption: ITextOption): void;
84
+ setSquarePointStyle(ImageStyleOption?: IImageStyle): void;
67
85
  /**
68
86
  * 设置三角点样式
69
87
  * @param {IImageStyle} ImageStyleOption
70
88
  * @example
71
89
  * setTrianglePointStyle({
72
- scale: 1, //比例
73
- radius: 5, //大小
74
- fill: {
75
- color: "rgba(255, 0, 0,1)", // 填充色
76
- },
77
- stroke: {
78
- color: "rgba(255, 255, 0,1)", // 边框色
79
- width: 1, //宽度
80
-
81
- },
82
- })
90
+ scale: 1, //比例
91
+ radius: 5, //大小
92
+ fill: {
93
+ color: "rgba(255, 0, 0,1)", // 填充色
94
+ },
95
+ stroke: {
96
+ color: "rgba(255, 255, 0,1)", // 边框色
97
+ width: 1, //宽度
98
+
99
+ },
100
+ })
101
+ */
102
+ setTrianglePointStyle(ImageStyleOption?: IImageStyle): void;
103
+ /**
104
+ * 设置五角星点样式
105
+ * @param {IImageStyle} ImageStyleOption
106
+ * @example
107
+ * setStarPointStyle({
108
+ scale: 1, //比例
109
+ radius: 5, //大小
110
+ fill: {
111
+ color: "rgba(255, 0, 0,1)", // 填充色
112
+ },
113
+ stroke: {
114
+ color: "rgba(255, 255, 0,1)", // 边框色
115
+ width: 1, //宽度
116
+
117
+ },
118
+ })
83
119
  */
84
- setTrianglePointStyle(ImageStyleOption: IImageStyle): void;
120
+ setStarPointStyle(ImageStyleOption?: IImageStyle): void;
85
121
  /**
86
122
  * 设置圆点样式
87
123
  * @param {IImageStyle} ImageStyleOption
88
124
  * @example
89
125
  * setCirclePointStyle({
90
- scale: 1, //比例
91
- radius: 5, //大小
92
- fill: {
93
- color: "rgba(255, 0, 0,1)", // 填充色
94
- },
95
- stroke: {
96
- color: "rgba(255, 255, 0,1)", // 边框色
97
- width: 1, //宽度
98
-
99
- },
100
- })
126
+ scale: 1, //比例
127
+ radius: 5, //大小
128
+ fill: {
129
+ color: "rgba(255, 0, 0,1)", // 填充色
130
+ },
131
+ stroke: {
132
+ color: "rgba(255, 255, 0,1)", // 边框色
133
+ width: 1, //宽度
134
+
135
+ },
136
+ })
101
137
  */
102
- setCirclePointStyle(ImageStyleOption: IImageStyle): void;
138
+ setCirclePointStyle(ImageStyleOption?: IImageStyle): void;
103
139
  /**
104
140
  * 设置边框简单模式样式
105
141
  * @param {IStrokeOption} strokeStyleOption
106
142
  * @example
107
143
  * setStrokeSimpleStyle({
108
- color: "rgba(255, 255, 255,1)", //"#fff",
109
- width: 2, //2,
110
- lineDash:[10,10] 或null
111
- })
144
+ color: "rgba(255, 255, 255,1)", //"#fff",
145
+ width: 2, //2,
146
+ lineDash:[10,10] 或null
147
+ })
112
148
  */
113
149
  setStrokeSimpleStyle(strokeStyleOption: IStrokeOption): void;
114
150
  /**
@@ -116,19 +152,19 @@ export declare class baseGraphic extends Feature {
116
152
  * @param {IStrokeOption} strokeStyleOption
117
153
  * @example
118
154
  * setStrokePatternStyle({
119
- pattern: undefined,图案Enum:mirage2d.DataType.featureStyleType.caps
120
- // image: undefined,
121
- color: "rgba(255, 255, 0,1)",//背景色
122
- width: 2,
123
- lineDash: null,
124
- ratio: 1,
125
- patternColor: "rgba(0, 0, 0,1)",//图案颜色
126
- offset: 0,
127
- scale: 1,
128
- size: 5,
129
- spacing: 10,
130
- angle: 0
131
- })
155
+ pattern: undefined,图案Enum:mirage2d.DataType.featureStyleType.caps
156
+ // image: undefined,
157
+ color: "rgba(255, 255, 0,1)",//背景色
158
+ width: 2,
159
+ lineDash: null,
160
+ ratio: 1,
161
+ patternColor: "rgba(0, 0, 0,1)",//图案颜色
162
+ offset: 0,
163
+ scale: 1,
164
+ size: 5,
165
+ spacing: 10,
166
+ angle: 0
167
+ })
132
168
  */
133
169
  setStrokePatternStyle(strokeStyleOption: IStrokeOption): void;
134
170
  /**
@@ -143,19 +179,19 @@ export declare class baseGraphic extends Feature {
143
179
  * @param {IFillOption} fillStyleOption
144
180
  * @example
145
181
  * setFillPatternStyle({
146
- pattern: undefined,图案Enum:mirage2d.DataType.featureStyleType.caps
147
- // image: undefined,
148
- patternColor: "rgba(0, 0, 0,1)",//图案颜色
149
- fill: "rgba(255, 255, 0,1)",//背景色
150
- width: 2,
151
- lineDash: null,
152
- ratio: 1,
153
- offset: 0,
154
- scale: 1,
155
- size: 5,
156
- spacing: 10,
157
- angle: 0
158
- })
182
+ pattern: undefined,图案Enum:mirage2d.DataType.featureStyleType.caps
183
+ // image: undefined,
184
+ patternColor: "rgba(0, 0, 0,1)",//图案颜色
185
+ fill: "rgba(255, 255, 0,1)",//背景色
186
+ width: 2,
187
+ lineDash: null,
188
+ ratio: 1,
189
+ offset: 0,
190
+ scale: 1,
191
+ size: 5,
192
+ spacing: 10,
193
+ angle: 0
194
+ })
159
195
  */
160
196
  setFillPatternStyle(fillStyleOption: IFillOption): void;
161
197
  /**