- Build: Update dist filles (Drawing test now fixed)

This commit is contained in:
Brett Zamir
2020-07-01 12:56:10 +08:00
parent 96654c5f64
commit ad80f18088
13 changed files with 112 additions and 103 deletions

View File

@@ -4120,7 +4120,7 @@
}
this.parent = this.elem.parentNode;
this.elem = this.elem.remove();
this.elem.remove();
if (handler) {
handler.handleHistoryEvent(HistoryEventTypes.AFTER_UNAPPLY, this);
@@ -4197,7 +4197,7 @@
removeElementFromListMap(this.elem);
this.parent = this.elem.parentNode;
this.elem = this.elem.remove();
this.elem.remove();
if (handler) {
handler.handleHistoryEvent(HistoryEventTypes.AFTER_APPLY, this);
@@ -10253,7 +10253,8 @@
}, {
key: "removeGroup",
value: function removeGroup() {
var group = this.group_.remove();
var group = this.group_;
this.group_.remove();
this.group_ = undefined;
return group;
}
@@ -14226,7 +14227,7 @@
restoreRefElems(cmd.elem);
}
if (cmd.elem.tagName === 'use') {
if (cmd.elem && cmd.elem.tagName === 'use') {
setUseData(cmd.elem);
}
} else if (cmdType === ChangeElementCommand$1.type()) {
@@ -14431,10 +14432,8 @@
call('selected', selectedElements);
if (showGrips || selectedElements.length === 1) {
selectorManager.requestSelector(selectedElements[0]).showGrips(true);
} else {
selectorManager.requestSelector(selectedElements[0]).showGrips(false);
if (selectedElements.length === 1) {
selectorManager.requestSelector(selectedElements[0]).showGrips(showGrips);
} // make sure the elements are in the correct order
// See: https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-compareDocumentPosition
@@ -16948,12 +16947,7 @@
var dblClick = function dblClick(evt) {
var evtTarget = evt.target;
var parent = evtTarget.parentNode; // Do nothing if already in current group
if (parent === currentGroup) {
return;
}
var parent = evtTarget.parentNode;
var mouseTarget = getMouseTarget(evt);
var _mouseTarget = mouseTarget,
tagName = _mouseTarget.tagName;
@@ -16961,6 +16955,11 @@
if (tagName === 'text' && currentMode !== 'textedit') {
var pt = transformPoint(evt.pageX, evt.pageY, rootSctm);
textActions.select(mouseTarget, pt.x, pt.y);
} // Do nothing if already in current group
if (parent === currentGroup) {
return;
}
if ((tagName === 'g' || tagName === 'a') && getRotationAngle(mouseTarget)) {