@aurigma/design-atoms
Advanced tools
Comparing version 5.11.1 to 5.12.0
@@ -8,3 +8,3 @@ import { ISnapshotHandler } from "./ISnapshotHandler"; | ||
private _locked; | ||
private _paused; | ||
private _pauseCount; | ||
private _addSnapshotOnResume; | ||
@@ -11,0 +11,0 @@ private _maxUndoStepCount; |
@@ -8,3 +8,3 @@ import { EventObject } from "../EventObject"; | ||
this._locked = false; | ||
this._paused = false; | ||
this._pauseCount = 0; | ||
this._addSnapshotOnResume = false; | ||
@@ -48,5 +48,3 @@ this._maxUndoStepCount = 10; | ||
History.prototype.pause = function () { | ||
if (this._paused) | ||
return; | ||
this._paused = true; | ||
this._pauseCount++; | ||
this._addSnapshotOnResume = false; | ||
@@ -57,7 +55,9 @@ }; | ||
if (forceAddSnapshot === void 0) { forceAddSnapshot = false; } | ||
if (!this._paused) | ||
if (this._pauseCount <= 0) | ||
return; | ||
this._paused = false; | ||
if (addSnapshot && this._addSnapshotOnResume || forceAddSnapshot) | ||
this.addSnapshot(); | ||
this._pauseCount--; | ||
if (this._pauseCount === 0) { | ||
if (addSnapshot && this._addSnapshotOnResume || forceAddSnapshot) | ||
this.addSnapshot(); | ||
} | ||
}; | ||
@@ -90,3 +90,3 @@ History.prototype.raiseChanged = function () { | ||
return; | ||
if (this._paused) { | ||
if (this._pauseCount > 0) { | ||
this._addSnapshotOnResume = true; | ||
@@ -93,0 +93,0 @@ return; |
@@ -471,4 +471,4 @@ var __extends = (this && this.__extends) || (function () { | ||
this.updateContentAndFrames(function (handler) { delete handler._startRectangle; }); | ||
this.get_canvas().updateFloatingItemToolbar(this); | ||
} | ||
this.get_canvas().updateFloatingItemToolbar(this); | ||
}; | ||
@@ -475,0 +475,0 @@ PlaceholderItemHandler.prototype._transformChanged = function () { |
{ | ||
"version": "5.11.1", | ||
"version": "5.12.0", | ||
"name": "@aurigma/design-atoms", | ||
@@ -4,0 +4,0 @@ "license": "SEE LICENSE IN License.md", |
@@ -78,3 +78,3 @@ import { PointF, RotatedRectangleF, RectangleF, EqualsOfFloatNumbers, getTriangleAngle, normalizeAngle, getSquareDistanceToPoint, ConvertDegreeToRadian } from "./Math/index"; | ||
SelectionHandler.prototype.set_currentItemHandler = function (itemHandler) { | ||
if (itemHandler !== this.get_currentItemHandler()) { | ||
if (itemHandler !== this._currentItmHandler) { | ||
this._currentItmHandler = itemHandler; | ||
@@ -327,4 +327,3 @@ this._canvas.onCurrentItemHandlerChanged(itemHandler); | ||
currentItemHandler = this._itemHandlers.get_item(0); | ||
isLine = | ||
false; | ||
isLine = currentItemHandler instanceof LineItemHandler; | ||
isPlaceholderEditing = currentItemHandler instanceof PlaceholderItemHandler && currentItemHandler.editing; | ||
@@ -335,4 +334,4 @@ } | ||
var innerCurrentItemHandler = this._itemHandlers.get_item(i); | ||
isLineInSelection = | ||
false; | ||
if (innerCurrentItemHandler instanceof LineItemHandler) | ||
isLineInSelection = true; | ||
if (innerCurrentItemHandler instanceof PlaceholderItemHandler && innerCurrentItemHandler.editing) | ||
@@ -339,0 +338,0 @@ isPlaceholderEditing = true; |
@@ -15,6 +15,9 @@ import { ArgumentException } from "../Exception"; | ||
"&w=" + encodeURIComponent(pixelWidth.toString()) + | ||
"&h=" + encodeURIComponent(pixelHeight.toString()) + | ||
"&cmyk=" + encodeURIComponent(canvas.cmykColorProfileFileId) + | ||
"&rgb=" + encodeURIComponent(canvas.rgbColorProfileFileId) + | ||
"&grayscale=" + encodeURIComponent(canvas.grayscaleColorProfileFileId); | ||
"&h=" + encodeURIComponent(pixelHeight.toString()); | ||
if (canvas.cmykColorProfileFileId != null) | ||
url += "&cmyk=" + encodeURIComponent(canvas.cmykColorProfileFileId); | ||
if (canvas.rgbColorProfileFileId != null) | ||
url += "&rgb=" + encodeURIComponent(canvas.rgbColorProfileFileId); | ||
if (canvas.grayscaleColorProfileFileId != null) | ||
url += "&grayscale=" + encodeURIComponent(canvas.grayscaleColorProfileFileId); | ||
if (squared != null && squared) | ||
@@ -21,0 +24,0 @@ url += "&sq=true"; |
/** @hidden */ | ||
/** Don't include in docs */ | ||
export declare const VERSION = "5.11.1"; | ||
export declare const VERSION = "5.12.0"; |
/** @hidden */ | ||
/** Don't include in docs */ | ||
export var VERSION = "5.11.1"; | ||
export var VERSION = "5.12.0"; | ||
//# sourceMappingURL=Version.js.map |
@@ -723,3 +723,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var skipKey = function (e) { | ||
if (AjcUtils.isEventPathContainsClass(e, Viewer.preventKeyHandleClass)) | ||
if (e.code == null || AjcUtils.isEventPathContainsClass(e, Viewer.preventKeyHandleClass)) | ||
return true; | ||
@@ -726,0 +726,0 @@ return e.code !== "ArrowLeft" && |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2699770
38519