evui 3.2.2 → 3.2.3
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/evui.common.js +13 -6
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +13 -6
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/plugins/plugins.interaction.js +7 -5
- package/src/components/chart/uses.js +1 -1
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ const modules = {
|
|
|
97
97
|
*/
|
|
98
98
|
this.onDblClick = (e) => {
|
|
99
99
|
const selectItem = this.options.selectItem;
|
|
100
|
-
const args = {};
|
|
100
|
+
const args = { e };
|
|
101
101
|
|
|
102
102
|
if (selectItem.use) {
|
|
103
103
|
const offset = this.getMousePosition(e);
|
|
@@ -122,8 +122,7 @@ const modules = {
|
|
|
122
122
|
* @returns {undefined}
|
|
123
123
|
*/
|
|
124
124
|
this.onClick = (e) => {
|
|
125
|
-
const args = {};
|
|
126
|
-
|
|
125
|
+
const args = { e };
|
|
127
126
|
if (this.options.selectItem.use) {
|
|
128
127
|
const offset = this.getMousePosition(e);
|
|
129
128
|
const hitInfo = this.findClickedData(offset);
|
|
@@ -136,7 +135,9 @@ const modules = {
|
|
|
136
135
|
}
|
|
137
136
|
|
|
138
137
|
if (typeof this.listeners.click === 'function') {
|
|
139
|
-
this.
|
|
138
|
+
if (!this.dragInfoBackup) {
|
|
139
|
+
this.listeners.click(args);
|
|
140
|
+
}
|
|
140
141
|
}
|
|
141
142
|
};
|
|
142
143
|
|
|
@@ -256,11 +257,12 @@ const modules = {
|
|
|
256
257
|
*
|
|
257
258
|
* @returns {undefined}
|
|
258
259
|
*/
|
|
259
|
-
const dragEnd = () => {
|
|
260
|
+
const dragEnd = (e) => {
|
|
260
261
|
const dragInfo = this.dragInfo;
|
|
261
262
|
|
|
262
263
|
if (dragInfo?.isMove) {
|
|
263
264
|
const args = {
|
|
265
|
+
e,
|
|
264
266
|
data: this.findSelectedItems(dragInfo),
|
|
265
267
|
range: this.getSelectionRage(dragInfo),
|
|
266
268
|
};
|
|
@@ -102,7 +102,7 @@ export const useModel = () => {
|
|
|
102
102
|
const getNormalizedOptions = (options) => {
|
|
103
103
|
const normalizedOptions = defaultsDeep({}, options, DEFAULT_OPTIONS);
|
|
104
104
|
|
|
105
|
-
if (options.type === 'scatter') {
|
|
105
|
+
if (options.type === 'scatter' && !options?.tooltip) {
|
|
106
106
|
normalizedOptions.tooltip.use = false;
|
|
107
107
|
}
|
|
108
108
|
|