Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aurigma/design-atoms

Package Overview
Dependencies
Maintainers
5
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurigma/design-atoms - npm Package Compare versions

Comparing version 5.9.0 to 5.10.0

2

Colors/CmykColor.d.ts

@@ -25,3 +25,3 @@ import { Color, IColor } from "./Color";

getData(): ICmykColor;
equals(color: any): boolean;
equals(color: any, ignorePreview?: boolean): boolean;
toString(): string;

@@ -28,0 +28,0 @@ private _toRelative;

@@ -130,14 +130,14 @@ var __extends = (this && this.__extends) || (function () {

};
CmykColor.prototype.equals = function (color) {
if (color instanceof CmykColor) {
var baseEquals = _super.prototype.equals.call(this, color);
return baseEquals &&
color instanceof CmykColor &&
this.c === color.c &&
this.m === color.m &&
this.y === color.y &&
this.k === color.k &&
this.a === color.a;
}
return false;
CmykColor.prototype.equals = function (color, ignorePreview) {
if (ignorePreview === void 0) { ignorePreview = false; }
if (!(color instanceof CmykColor))
return false;
var baseEquals = _super.prototype.equals.call(this, color, ignorePreview);
return baseEquals &&
color instanceof CmykColor &&
this.c === color.c &&
this.m === color.m &&
this.y === color.y &&
this.k === color.k &&
this.a === color.a;
};

@@ -144,0 +144,0 @@ CmykColor.prototype.toString = function () {

@@ -18,3 +18,3 @@ export interface IColor {

needUpdate(defaultRgbProfileId: string): boolean;
equals(color: Color): boolean;
equals(color: Color, ignorePreview?: boolean): boolean;
getData(): IColor;

@@ -21,0 +21,0 @@ protected _init(colorObject: IColor): void;

@@ -27,4 +27,5 @@ import { ArgumentException } from "../Exception";

};
Color.prototype.equals = function (color) {
return (color instanceof Color && color.preview === this.preview && color.profileId === this.profileId);
Color.prototype.equals = function (color, ignorePreview) {
if (ignorePreview === void 0) { ignorePreview = false; }
return color.profileId === this.profileId && (ignorePreview || color.preview === this.preview);
};

@@ -31,0 +32,0 @@ Color.prototype.getData = function () {

@@ -48,4 +48,6 @@ var ImageContainer = /** @class */ (function () {

ImageContainer.prototype.updateUrl = function (url) {
if (this._tmpImage.src === url)
if (this._tmpImage.src === url) {
this._onLoadedDelegate({ target: this._tmpImage });
return;
}
this._loading = true;

@@ -52,0 +54,0 @@ this._tmpImage.src = url;

@@ -193,4 +193,3 @@ var __extends = (this && this.__extends) || (function () {

_a.sent();
this.get_canvas().redraw(true);
url = this.get_canvas().get_handlerUrl();
url = this.canvas.get_handlerUrl();
_a.label = 2;

@@ -218,3 +217,5 @@ case 2:

return [7 /*endfinally*/];
case 6: return [2 /*return*/];
case 6:
this.canvas.redraw(true);
return [2 /*return*/];
}

@@ -221,0 +222,0 @@ });

{
"version": "5.9.0",
"version": "5.10.0",
"name": "@aurigma/design-atoms",

@@ -4,0 +4,0 @@ "license": "SEE LICENSE IN License.md",

@@ -73,2 +73,4 @@ import { PointF, RotatedRectangleF, RectangleF, EqualsOfFloatNumbers, getTriangleAngle, normalizeAngle, getSquareDistanceToPoint, ConvertDegreeToRadian } from "./Math/index";

SelectionHandler.prototype.get_currentItemHandler = function () {
if (this._currentItmHandler != null && this._currentItmHandler.canvas == null)
this.clearSelectedItemHandlers();
return this._currentItmHandler;

@@ -75,0 +77,0 @@ };

@@ -34,3 +34,3 @@ import { Graphics } from "./Graphics";

var isResizing = this._isResizing(handler);
var isUpdating = imageContainer.isLoading || handler.isUpdatingAfterResize;
var isUpdating = handler.isUpdatingAfterResize;
if (!isUpdating) {

@@ -37,0 +37,0 @@ var rect = isResizing && handler.startRectangle != null ? handler.startRectangle : handler.rectangle;

@@ -5,2 +5,3 @@ export declare namespace Utils {

const cursorToCss: (cursor: any) => any;
function makeSingle(generator: any): (...args: any[]) => Promise<any>;
function makeCancelable<T>(promise: Promise<T>): ICancelablePromise<T>;

@@ -7,0 +8,0 @@ interface ICancelablePromise<T> {

@@ -0,1 +1,56 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
import { PointF } from "../Math";

@@ -29,2 +84,38 @@ export var Utils;

};
function makeSingle(generator) {
var globalNonce;
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
return __awaiter(this, void 0, void 0, function () {
var localNonce, iter, resumeValue, n;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
localNonce = globalNonce = new Object();
iter = generator.apply(void 0, __spread(args));
_a.label = 1;
case 1:
n = iter.next(resumeValue);
if (n.done) {
return [2 /*return*/, n.value]; // final return value of passed generator
}
return [4 /*yield*/, n.value];
case 2:
// whatever the generator yielded, _now_ run await on it
resumeValue = _a.sent();
if (localNonce !== globalNonce) {
return [2 /*return*/]; // a new call was made
}
_a.label = 3;
case 3: return [3 /*break*/, 1];
case 4: return [2 /*return*/];
}
});
});
};
}
Utils.makeSingle = makeSingle;
function makeCancelable(promise) {

@@ -31,0 +122,0 @@ var hasCanceled_ = false;

/** @hidden */
/** Don't include in docs */
export declare const VERSION = "5.9.0";
export declare const VERSION = "5.10.0";
/** @hidden */
/** Don't include in docs */
export var VERSION = "5.9.0";
export var VERSION = "5.10.0";
//# sourceMappingURL=Version.js.map

@@ -475,3 +475,3 @@ var __extends = (this && this.__extends) || (function () {

this.zoom);
return Math.floor(value);
return Math.ceil(value);
};

@@ -478,0 +478,0 @@ Viewer.prototype.get_workspaceWidth = function () {

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

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc