@idraw/core
Advanced tools
Comparing version 0.4.0-beta.8 to 0.4.0-beta.9
@@ -133,3 +133,3 @@ import { calcElementsViewInfo, calcElementVertexesInGroup, calcElementQueueVertexesQueueInGroup, calcElementSizeController, rotatePointInGroup, getGroupQueueFromList, findElementsFromList, findElementsFromListByPositions, deepResizeGroupElement } from '@idraw/util'; | ||
hover: (e) => { | ||
var _a, _b; | ||
var _a, _b, _c, _d, _e; | ||
const resizeType = sharer.getSharedStorage(keyResizeType); | ||
@@ -193,3 +193,18 @@ const actionType = sharer.getSharedStorage(keyActionType); | ||
triggerCursor(target); | ||
if (target.type === 'over-element' && ((_b = target === null || target === void 0 ? void 0 : target.elements) === null || _b === void 0 ? void 0 : _b.length) === 1) { | ||
if (target.type === null) { | ||
return; | ||
} | ||
if (target.type === 'over-element' && | ||
sharer.getSharedStorage(keyActionType) === 'select' && | ||
target.elements.length === 1 && | ||
target.elements[0].uuid === ((_c = (_b = getActiveElements()) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.uuid)) { | ||
return; | ||
} | ||
if (target.type === 'over-element' && | ||
sharer.getSharedStorage(keyActionType) === null && | ||
target.elements.length === 1 && | ||
target.elements[0].uuid === ((_d = sharer.getSharedStorage(keyHoverElement)) === null || _d === void 0 ? void 0 : _d.uuid)) { | ||
return; | ||
} | ||
if (target.type === 'over-element' && ((_e = target === null || target === void 0 ? void 0 : target.elements) === null || _e === void 0 ? void 0 : _e.length) === 1) { | ||
sharer.setSharedStorage(keyHoverElement, target.elements[0]); | ||
@@ -196,0 +211,0 @@ updateHoverElement(target.elements[0]); |
{ | ||
"name": "@idraw/core", | ||
"version": "0.4.0-beta.8", | ||
"version": "0.4.0-beta.9", | ||
"description": "", | ||
@@ -24,9 +24,9 @@ "main": "dist/esm/index.js", | ||
"devDependencies": { | ||
"@idraw/types": "^0.4.0-beta.8" | ||
"@idraw/types": "^0.4.0-beta.9" | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"@idraw/board": "^0.4.0-beta.8", | ||
"@idraw/renderer": "^0.4.0-beta.8", | ||
"@idraw/util": "^0.4.0-beta.8" | ||
"@idraw/board": "^0.4.0-beta.9", | ||
"@idraw/renderer": "^0.4.0-beta.9", | ||
"@idraw/util": "^0.4.0-beta.9" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
521746
8706