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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evui",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "A EXEM Library project",
5
5
  "author": "exem <dev_client@ex-em.com>",
6
6
  "license": "MIT",
@@ -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.listeners.click(args);
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