@trdrs/quickcharts 5.0.0 → 5.0.1
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/CHANGELOG.md +4 -0
- package/dist/feature-manifest.json +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 5.0.1
|
|
6
|
+
|
|
7
|
+
Drawing gestures respect presses handled by host overlays and leave presses outside the plot to the chart scales.
|
|
8
|
+
|
|
5
9
|
## 5.0.0
|
|
6
10
|
|
|
7
11
|
The chart settings, one typed tree saved with the chart in place of the appearance overrides, with a dialog of five pages a host can add its own to, the price labels and scale controls they drive, the plus beside the crosshair's price and its price menu, panes that move and maximize, time-scale marks with icons and lines, the optional prices port, and extension seams for legend rows, captures and settings pages.
|
package/dist/index.js
CHANGED
|
@@ -7021,6 +7021,10 @@ function bindGestures(ctx) {
|
|
|
7021
7021
|
};
|
|
7022
7022
|
ctx.toolChanged = dropPreview;
|
|
7023
7023
|
const onDown = (e) => {
|
|
7024
|
+
if (e.defaultPrevented) return;
|
|
7025
|
+
const press = localXY(e);
|
|
7026
|
+
const plot = viewport();
|
|
7027
|
+
if (!plot || press.x < 0 || press.x > plot.width || press.y < 0 || press.y > plot.height) return;
|
|
7024
7028
|
reopenMenu();
|
|
7025
7029
|
dropPreview();
|
|
7026
7030
|
if (e.button === 2 && ctx.draft) {
|