bbj-screen-widget 2.4.54 → 2.4.55

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.
@@ -3116,7 +3116,7 @@ let WordartComponent = class WordartComponent {
3116
3116
  WordartComponent.decorators = [
3117
3117
  { type: Component, args: [{
3118
3118
  selector: 'sc-wordart',
3119
- template: "<div *ngIf=\"data && data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{data[0].value != null? data[0].value:title}}</div>\n<div *ngIf=\"!data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{title}}</div>",
3119
+ template: "<div *ngIf=\"data && data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{data[0].value != null? data[0].value:title}}</div>\n<div *ngIf=\"!data||!data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{title}}</div>",
3120
3120
  styles: [".text{display:inline-block}.gradual{-webkit-background-clip:text;-webkit-text-fill-color:transparent}:host{display:inline-block;width:100%;height:100%}"]
3121
3121
  },] }
3122
3122
  ];
@@ -7782,6 +7782,7 @@ let ShufflingListComponent = class ShufflingListComponent {
7782
7782
  }
7783
7783
  }
7784
7784
  updateColumns() {
7785
+ var _a;
7785
7786
  this.columns = [];
7786
7787
  let keys;
7787
7788
  if (this.schema && this.schema.properties) {
@@ -7811,7 +7812,7 @@ let ShufflingListComponent = class ShufflingListComponent {
7811
7812
  const cellStyle = {};
7812
7813
  const column = { index: key, title, headStyle, cellStyle };
7813
7814
  const titleStyle = titleStyleMap[key];
7814
- if (this.titleStyle.length && (titleStyle == null || !titleStyle.show)) {
7815
+ if (((_a = this.titleStyle) === null || _a === void 0 ? void 0 : _a.length) && (titleStyle == null || !titleStyle.show)) {
7815
7816
  continue;
7816
7817
  }
7817
7818
  let width;
@@ -9173,6 +9174,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9173
9174
  this._children = [];
9174
9175
  this.loadedMap = {};
9175
9176
  this.stack = [];
9177
+ this.renderer = 'svg';
9176
9178
  }
9177
9179
  ngOnChanges(changes) {
9178
9180
  if (changes.data) {
@@ -9207,6 +9209,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9207
9209
  // this.loadMap(this.mapStyle).then((data) => {
9208
9210
  let series = [];
9209
9211
  this.visualMap = [];
9212
+ this.renderer = 'svg';
9210
9213
  this._children.forEach((child) => {
9211
9214
  if (child.type === 'visual') {
9212
9215
  // series = child.series;
@@ -9229,6 +9232,8 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9229
9232
  series.forEach((layer, index) => {
9230
9233
  if (layer.type === 'lines') {
9231
9234
  delete layer.coordinateSystem;
9235
+ // 飞线层不支持svg渲染
9236
+ this.renderer = 'canvas';
9232
9237
  }
9233
9238
  if (layer.type === 'scatter') {
9234
9239
  layer.coordinateSystem = 'geo';
@@ -9462,7 +9467,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9462
9467
  PlanimetricMap2dComponent.decorators = [
9463
9468
  { type: Component, args: [{
9464
9469
  selector: 'sc-planimetric-map2d',
9465
- template: "<ng-template *ngFor=\"let child of children\" widget-host [widget]=\"child\"></ng-template>\n<div echarts *ngIf=\"hasMap\" [options]=\"chartOption\" class=\"demo-chart\" (chartClick)='markClick($event)' (contextmenu)='rollback($event)'></div> \n<!-- -->",
9470
+ template: "<ng-template *ngFor=\"let child of children\" widget-host [widget]=\"child\"></ng-template>\n<div\n echarts\n *ngIf=\"hasMap\"\n [options]=\"chartOption\"\n class=\"demo-chart\"\n (chartClick)=\"markClick($event)\"\n (contextmenu)=\"rollback($event)\"\n [initOpts]=\"{ renderer: renderer}\"\n></div>\n<!-- -->\n",
9466
9471
  providers: [{ provide: ParentContainerComponent, useExisting: forwardRef(() => PlanimetricMap2dComponent_1) }],
9467
9472
  styles: [".demo-chart,:host{height:100%}:host{display:block;width:100%}"]
9468
9473
  },] }
@@ -14107,6 +14112,7 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14107
14112
  space: 0,
14108
14113
  lineHeight: 0,
14109
14114
  };
14115
+ this.shadow = { color: '', X: 0, Y: 0, Z: 0 };
14110
14116
  this.unselectOnClickBlank = true;
14111
14117
  this.groups = [];
14112
14118
  this._data = [
@@ -14176,7 +14182,23 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14176
14182
  // color: '#fff',
14177
14183
  // fontFamily: 'Microsoft Yahei',
14178
14184
  // fontSize: 14,
14179
- flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], padding: [2, 2], margin: [0, 0] });
14185
+ flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], stroke: {
14186
+ color: this.stroke,
14187
+ }, padding: [2, 2], margin: [0, 0] });
14188
+ if (this.stroke && this.stroke !== 'rgba(0,0,0,0)') {
14189
+ textOptions.stroke = { color: this.stroke };
14190
+ }
14191
+ if (this.strokeWidth) {
14192
+ textOptions.lineWidth = this.strokeWidth;
14193
+ }
14194
+ if (this.shadow) {
14195
+ textOptions.shadow = {
14196
+ color: this.shadow.color,
14197
+ blur: this.shadow.Z,
14198
+ offsetX: this.shadow.X,
14199
+ offsetY: this.shadow.Y,
14200
+ };
14201
+ }
14180
14202
  this.textLayer = new mapvgl.TextLayer(textOptions);
14181
14203
  if (this.showLabelMinZoom != null) {
14182
14204
  this.parent.init$.then(() => {
@@ -14360,6 +14382,20 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14360
14382
  textOptions.fontFamily = font.family;
14361
14383
  if (font.color)
14362
14384
  textOptions.color = font.color;
14385
+ // switch (font.weight) {
14386
+ // case 'lighter':
14387
+ // textOptions.lineWidth = 1;
14388
+ // break;
14389
+ // case 'normal':
14390
+ // textOptions.lineWidth = 2;
14391
+ // break;
14392
+ // case 'bold':
14393
+ // textOptions.lineWidth = 3;
14394
+ // break;
14395
+ // case 'bolder':
14396
+ // textOptions.lineWidth = 4;
14397
+ // break;
14398
+ // }
14363
14399
  }
14364
14400
  return textOptions;
14365
14401
  }
@@ -14580,6 +14616,22 @@ __decorate([
14580
14616
  Property('标签字体', { ui: { widget: 'myFont', visibleIf: { showLabel: [true] } } }),
14581
14617
  __metadata("design:type", Object)
14582
14618
  ], BaiduMarkerLayerComponent.prototype, "labelFont", void 0);
14619
+ __decorate([
14620
+ Property('描边颜色', {
14621
+ ui: {
14622
+ widget: 'myColor',
14623
+ },
14624
+ }),
14625
+ __metadata("design:type", String)
14626
+ ], BaiduMarkerLayerComponent.prototype, "stroke", void 0);
14627
+ __decorate([
14628
+ Property('描边粗细', { type: 'integer' }),
14629
+ __metadata("design:type", Number)
14630
+ ], BaiduMarkerLayerComponent.prototype, "strokeWidth", void 0);
14631
+ __decorate([
14632
+ Property('阴影', { ui: { widget: 'myShadow' } }),
14633
+ __metadata("design:type", Object)
14634
+ ], BaiduMarkerLayerComponent.prototype, "shadow", void 0);
14583
14635
  __decorate([
14584
14636
  Property('标签偏移x', { ui: { widget: 'number', visibleIf: { showLabel: [true] } } }),
14585
14637
  __metadata("design:type", Number)
@@ -17109,7 +17161,14 @@ MultiTitleGaugeModule.ctorParameters = () => [
17109
17161
 
17110
17162
  let GaugeProgressComponent = class GaugeProgressComponent {
17111
17163
  constructor() {
17112
- this.numfont = { family: 'Microsoft YaHei', color: '#ffffff', weight: 'normal', size: 21, space: 0, lineHeight: '20' };
17164
+ this.numfont = {
17165
+ family: 'Microsoft YaHei',
17166
+ color: '#ffffff',
17167
+ weight: 'normal',
17168
+ size: 21,
17169
+ space: 0,
17170
+ lineHeight: '20',
17171
+ };
17113
17172
  this.slidesPerView = 1;
17114
17173
  this.spaceBetween = 0;
17115
17174
  this.navigation = true;
@@ -17120,7 +17179,7 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17120
17179
  this.cardBgImg = null;
17121
17180
  this.navigationBtnConfig = {
17122
17181
  prevEl: '.swiper-navigation-prev',
17123
- nextEl: '.swiper-navigation-next'
17182
+ nextEl: '.swiper-navigation-next',
17124
17183
  };
17125
17184
  //========================================
17126
17185
  this.seriesColor = { gradient: false, value: [['#6D7597', '#6D7597']] };
@@ -17159,79 +17218,82 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17159
17218
  }
17160
17219
  ngOnChanges(changes) {
17161
17220
  if (changes._data) {
17162
- if (this._data.length <= this.slidesPerView) {
17163
- this.navigation = false;
17164
- }
17165
- this._data.forEach((e) => {
17166
- let sourceData = [];
17167
- sourceData.push(e);
17168
- let chartOption = {
17169
- series: [
17170
- {
17171
- // name: this.title,
17172
- type: 'gauge',
17173
- startAngle: this.startAngle,
17174
- endAngle: this.endAngle,
17175
- progress: {
17176
- show: e.value && Number(e.value) > 0 ? true : false,
17177
- overlap: false,
17178
- roundCap: true,
17179
- clip: false,
17180
- itemStyle: {
17181
- borderWidth: 1,
17182
- color: this.getColor(this.progressColor, 'progress'),
17183
- shadowColor: this.progressShadow,
17184
- shadowBlur: 5
17185
- }
17186
- },
17187
- detail: {
17188
- show: this.labelVal,
17189
- formatter: this.percent ? '' + ((e.value / this.max) * 100).toFixed(2) + '%' : '{value}',
17190
- color: this.numFont.color,
17191
- fontFamily: this.numFont.family,
17192
- fontWeight: this.numFont.weight,
17193
- fontSize: this.numFont.size,
17194
- lineHeight: this.numFont.lineHeight,
17195
- offsetCenter: [0, `${this.labelValOffset}%`],
17196
- },
17197
- data: sourceData,
17198
- title: {
17199
- show: this.label,
17200
- color: this.font.color,
17201
- fontFamily: this.font.family,
17202
- fontWeight: this.font.weight,
17203
- fontSize: this.font.size,
17204
- lineHeight: this.font.lineHeight,
17205
- offsetCenter: [0, `${this.labelOffset}%`],
17206
- overflow: 'breakAll',
17207
- width: this.labelWidth
17208
- },
17209
- axisLine: {
17210
- roundCap: true,
17211
- lineStyle: {
17212
- width: this.width,
17213
- color: this.getColor(this.seriesColor)
17221
+ this.data = [];
17222
+ if (this._data) {
17223
+ if (this._data.length <= this.slidesPerView) {
17224
+ this.navigation = false;
17225
+ }
17226
+ this._data.forEach((e) => {
17227
+ let sourceData = [];
17228
+ sourceData.push(e);
17229
+ let chartOption = {
17230
+ series: [
17231
+ {
17232
+ // name: this.title,
17233
+ type: 'gauge',
17234
+ startAngle: this.startAngle,
17235
+ endAngle: this.endAngle,
17236
+ progress: {
17237
+ show: e.value && Number(e.value) > 0 ? true : false,
17238
+ overlap: false,
17239
+ roundCap: true,
17240
+ clip: false,
17241
+ itemStyle: {
17242
+ borderWidth: 1,
17243
+ color: this.getColor(this.progressColor, 'progress'),
17244
+ shadowColor: this.progressShadow,
17245
+ shadowBlur: 5,
17246
+ },
17247
+ },
17248
+ detail: {
17249
+ show: this.labelVal,
17250
+ formatter: this.percent ? '' + ((e.value / this.max) * 100).toFixed(2) + '%' : '{value}',
17251
+ color: this.numFont.color,
17252
+ fontFamily: this.numFont.family,
17253
+ fontWeight: this.numFont.weight,
17254
+ fontSize: this.numFont.size,
17255
+ lineHeight: this.numFont.lineHeight,
17256
+ offsetCenter: [0, `${this.labelValOffset}%`],
17257
+ },
17258
+ data: sourceData,
17259
+ title: {
17260
+ show: this.label,
17261
+ color: this.font.color,
17262
+ fontFamily: this.font.family,
17263
+ fontWeight: this.font.weight,
17264
+ fontSize: this.font.size,
17265
+ lineHeight: this.font.lineHeight,
17266
+ offsetCenter: [0, `${this.labelOffset}%`],
17267
+ overflow: 'breakAll',
17268
+ width: this.labelWidth,
17269
+ },
17270
+ axisLine: {
17271
+ roundCap: true,
17272
+ lineStyle: {
17273
+ width: this.width,
17274
+ color: this.getColor(this.seriesColor),
17275
+ },
17276
+ },
17277
+ max: this.max,
17278
+ min: this.min,
17279
+ axisLabel: {
17280
+ show: false,
17281
+ },
17282
+ splitLine: {
17283
+ show: false,
17284
+ },
17285
+ axisTick: {
17286
+ show: false,
17287
+ },
17288
+ pointer: {
17289
+ show: false,
17214
17290
  },
17215
17291
  },
17216
- max: this.max,
17217
- min: this.min,
17218
- axisLabel: {
17219
- show: false
17220
- },
17221
- splitLine: {
17222
- show: false
17223
- },
17224
- axisTick: {
17225
- show: false
17226
- },
17227
- pointer: {
17228
- show: false
17229
- },
17230
- },
17231
- ],
17232
- };
17233
- this.data.push(chartOption);
17234
- });
17292
+ ],
17293
+ };
17294
+ this.data.push(chartOption);
17295
+ });
17296
+ }
17235
17297
  // console.log(this._data[0].value,this._data[0].value && Number(this._data[0].value) !== 0 ? true : false)
17236
17298
  // console.log(JSON.stringify(this.chartOption));
17237
17299
  }
@@ -17241,7 +17303,7 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17241
17303
  const color = [];
17242
17304
  const color1 = [];
17243
17305
  const colorInfo = colorBox && colorBox.value ? colorBox.value : colorBox;
17244
- colorInfo.forEach(item => {
17306
+ colorInfo.forEach((item) => {
17245
17307
  color.push({
17246
17308
  type: 'linear',
17247
17309
  x: 0,
@@ -17300,7 +17362,7 @@ __decorate([
17300
17362
  type: 'string',
17301
17363
  ui: {
17302
17364
  widget: 'myUpload',
17303
- }
17365
+ },
17304
17366
  }),
17305
17367
  __metadata("design:type", Object)
17306
17368
  ], GaugeProgressComponent.prototype, "navigationLeftIcon", void 0);
@@ -17309,16 +17371,14 @@ __decorate([
17309
17371
  type: 'string',
17310
17372
  ui: {
17311
17373
  widget: 'myUpload',
17312
- }
17374
+ },
17313
17375
  }),
17314
17376
  __metadata("design:type", Object)
17315
17377
  ], GaugeProgressComponent.prototype, "navigationRightIcon", void 0);
17316
17378
  __decorate([
17317
17379
  Property('显示模式', {
17318
17380
  ui: { widget: 'select' },
17319
- enum: [
17320
- { label: '图标卡片', value: 'card' },
17321
- ],
17381
+ enum: [{ label: '图标卡片', value: 'card' }],
17322
17382
  }),
17323
17383
  __metadata("design:type", Object)
17324
17384
  ], GaugeProgressComponent.prototype, "showType", void 0);
@@ -17419,7 +17479,7 @@ __decorate([
17419
17479
  Property('进度颜色', {
17420
17480
  ui: {
17421
17481
  widget: 'seriesColor',
17422
- type: 'gradual'
17482
+ type: 'gradual',
17423
17483
  },
17424
17484
  }),
17425
17485
  __metadata("design:type", Object)
@@ -17428,7 +17488,7 @@ __decorate([
17428
17488
  Property('进度阴影', {
17429
17489
  ui: {
17430
17490
  widget: 'myColor',
17431
- example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null]
17491
+ example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null],
17432
17492
  },
17433
17493
  }),
17434
17494
  __metadata("design:type", Object)