Browse Source

display labels on drag

merge-requests/1/merge
vargburz 3 years ago
parent
commit
a0a1e32fef
  1. 2
      dist/index.js
  2. 2
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
src/index.ts

@ -327,6 +327,7 @@ export class ChartwerkGaugePod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions
this._draggedThresholdValues[idx] = value;
this.updateThresholdArcByNewValues(this._draggedThresholdValues);
this.updateThresholdLabel(value, idx);
this.onGaugeMouseMove();
if(this.options.dragCallback) {
this.options.dragCallback({ value, idx });
}
@ -359,6 +360,7 @@ export class ChartwerkGaugePod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions
}
onDragEnd(idx: number): void {
this.onGaugeMouseOut();
if(this.options.dragEndCallback) {
this.options.dragEndCallback({ idx });
}

Loading…
Cancel
Save