tvcharts 0.5.89 → 0.5.90
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/dist/echarts.js +15 -2
- package/dist/echarts.js.map +2 -2
- package/lib/component/dataZoom/InsideZoomView.js +18 -0
- package/lib/scale/Log.js +21 -0
- package/package.json +1 -1
- package/types/src/scale/Log.d.ts +2 -0
package/dist/echarts.js
CHANGED
|
@@ -27573,6 +27573,12 @@ var LogScale = class extends Scale_default {
|
|
|
27573
27573
|
val = scale3(val, this._extent);
|
|
27574
27574
|
return mathPow2(this.base, val);
|
|
27575
27575
|
}
|
|
27576
|
+
restoreLogValue(value) {
|
|
27577
|
+
return value < 0 ? -mathPow2(this.base, -value) : mathPow2(this.base, value);
|
|
27578
|
+
}
|
|
27579
|
+
parseLogValue(val) {
|
|
27580
|
+
return val < 0 ? -mathLog(-val) / mathLog(this.base) : mathLog(val) / mathLog(this.base);
|
|
27581
|
+
}
|
|
27576
27582
|
};
|
|
27577
27583
|
LogScale.type = "log";
|
|
27578
27584
|
var proto = LogScale.prototype;
|
|
@@ -61696,7 +61702,6 @@ function installDataZoomAction(registers) {
|
|
|
61696
61702
|
const startValue = modal.get("startValue");
|
|
61697
61703
|
const endValue = modal.get("endValue");
|
|
61698
61704
|
const diff = (endValue - startValue) * payload.scale;
|
|
61699
|
-
console.log("%c [ payload.scale ]-38", "font-size:13px; background:pink; color:#bf2c9f;", payload.scale);
|
|
61700
61705
|
modal.setRawRange({
|
|
61701
61706
|
startValue: startValue + diff,
|
|
61702
61707
|
endValue: endValue - diff
|
|
@@ -68666,7 +68671,6 @@ function createCoordSysRecord(api2, coordSysModel) {
|
|
|
68666
68671
|
dzInfo.model.isDragging = controller.isDragging();
|
|
68667
68672
|
axisProxy.setDataPercentWindow([range[0], range[1]]);
|
|
68668
68673
|
axisModal.axis.scale.setSpace(range[0], range[1]);
|
|
68669
|
-
console.log("%c [ (event as any).scale ]-174", "font-size:13px; background:pink; color:#bf2c9f;", event.scale);
|
|
68670
68674
|
batch.push({
|
|
68671
68675
|
dataZoomId: dzInfo.model.id,
|
|
68672
68676
|
uid: dzInfo.model.uid,
|
|
@@ -68884,6 +68888,15 @@ function makeMover(getPercentDelta) {
|
|
|
68884
68888
|
return;
|
|
68885
68889
|
}
|
|
68886
68890
|
const diff = (valueRange[1] - valueRange[0]) * percent;
|
|
68891
|
+
const axis = axisModel.axis;
|
|
68892
|
+
if (axis.type === "log") {
|
|
68893
|
+
const scale4 = axis.scale;
|
|
68894
|
+
const logExtent = [scale4.parseLogValue(valueRange[0]), scale4.parseLogValue(valueRange[1])];
|
|
68895
|
+
const logDiff = (logExtent[1] - logExtent[0]) * percent;
|
|
68896
|
+
valueRange[0] = scale4.restoreLogValue(logExtent[0] + logDiff);
|
|
68897
|
+
valueRange[1] = scale4.restoreLogValue(logExtent[1] + logDiff);
|
|
68898
|
+
return valueRange;
|
|
68899
|
+
}
|
|
68887
68900
|
valueRange[0] = valueRange[0] + diff;
|
|
68888
68901
|
valueRange[1] = valueRange[1] + diff;
|
|
68889
68902
|
return valueRange;
|