mirage2d 1.2.17 → 1.2.19

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.
@@ -241,6 +241,28 @@ export declare class baseGraphicLayer extends baseLayer {
241
241
  }
242
242
  */
243
243
  setSymbolByClassname(classname: any, styleOptions: any, callback?: Function): void;
244
+ /**
245
+ * 匹配fieldname字段的属性fieldvalue,满足条件的设置颜色
246
+ * @param {string} fieldname
247
+ * @param {string} fieldvalue
248
+ * @param {any[]} styleOptions
249
+ * @example styleOptions 是一个json结构
250
+ * {
251
+ Font: "12px Microsoft YaHei",
252
+ FontColor: "#8B4513",
253
+ FontStrokeColor: "#fff",
254
+ FontStrokeWidth: 2,
255
+ FontoffsetX: 0,
256
+ FontoffsetY: -10,
257
+ fillcolor: "rgba(0,0,0,0.5)",
258
+ strokecolor: "rgba(255,255,0,1)",
259
+ strokewidth: 1,
260
+ scale: 1,
261
+ radius: 10,
262
+ text: ""//可以用{字段名}格式化显示字段
263
+ }
264
+ */
265
+ setSymbolByField(fieldname: any, fieldvalue: any, styleOptions: any): void;
244
266
  /**
245
267
  * 根据features设置所有要素样式,按字段名及字段值匹配设置
246
268
  * @param {any[]} features