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.10.0 to 5.11.0

RotateHandler.d.ts

7

Canvas.d.ts

@@ -53,2 +53,3 @@ import { ItemHandler } from "./ItemHandlers/ItemHandler";

private _hoverHandler;
private _rotateHandler;
private _service;

@@ -62,3 +63,4 @@ private _parent;

private _gripsDiv;
private _hoverDiv;
hoverDiv: JQuery;
rotateDiv: JQuery;
private _buttonStyle;

@@ -442,3 +444,3 @@ private _selectionStyle;

private _removeHoverDiv;
private _updateHoverDiv;
updateHoverDiv(): void;
private _addDndStyle;

@@ -527,2 +529,3 @@ private _addDndDiv;

private _processMouseEvent;
private _rotation;
private _needMouseMoveRedrawTimeout;

@@ -529,0 +532,0 @@ get_contentUpdatingPlaceholderItemHandler(): PlaceholderItemHandler;

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

this._init({
inkName: match[1].replace("'", "").replace("\"", ""),
inkName: match[1].replace(/'/g, "").replace(/\"/g, ""),
inkColor: ColorFactory.createColor(match[2]),

@@ -53,0 +53,0 @@ inkSolidity: match[4] != null ? +match[4] : 1,

@@ -670,2 +670,3 @@ import { EventWithSenderArg, EventObject } from "../EventObject";

ItemHandler.prototype.raiseChanging = function (param) {
param = param != null ? param : this.item;
this._changingEvent.notify(param);

@@ -672,0 +673,0 @@ };

@@ -7,4 +7,2 @@ import { Viewer } from "./Viewer/Viewer";

private _watermarkElement;
private static readonly _width;
private static readonly _height;
private static readonly _margin;

@@ -11,0 +9,0 @@ constructor(_viewer: Viewer, _backendUrl: string);

@@ -76,4 +76,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

var offsetHeight = this._viewer.get_element().clientHeight;
var left = offsetWidth - LicenseHandler._width - LicenseHandler._margin;
var top = offsetHeight - LicenseHandler._height - LicenseHandler._margin;
var watermarkWidth = this._watermarkElement.clientWidth;
var watermarkHeight = this._watermarkElement.clientHeight;
var left = offsetWidth - watermarkWidth - LicenseHandler._margin;
var top = offsetHeight - watermarkHeight - LicenseHandler._margin;
this._watermarkElement.style.left = left + "px";

@@ -88,4 +90,5 @@ this._watermarkElement.style.top = top + "px";

div.id = licenseWatermarkId;
div.style.width = LicenseHandler._width + "px";
div.style.height = LicenseHandler._height + "px";
div.style.width = "auto";
div.style.height = "auto";
div.style.whiteSpace = "nowrap";
div.style.position = "absolute";

@@ -97,3 +100,3 @@ div.style.borderRadius = "4px";

var textDiv = document.createElement("div");
textDiv.style.margin = "10px";
textDiv.style.padding = "8px";
textDiv.style.display = "flex";

@@ -156,5 +159,3 @@ textDiv.style.flexDirection = "column";

// License element size in pixel
LicenseHandler._width = 230;
LicenseHandler._height = 56;
LicenseHandler._margin = 20;
LicenseHandler._margin = 12;
return LicenseHandler;

@@ -161,0 +162,0 @@ }());

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

_this.itemPermissions.allowRemoveOnLayoutChange = true;
_this.itemPermissions.itemToolbarPermissions.showEditButton = true;
_this._ignorePermissionsChange = false;

@@ -424,3 +425,3 @@ return _this;

destination.textPermissions = source._textPermissions.clone();
destination.placeholders.addRange(source.placeholders.toArray().map(function (p) { return p.clone(); }));
destination.placeholders.setRange(source.placeholders.toArray().map(function (p) { return p.clone(); }));
destination.color = source._color.clone();

@@ -427,0 +428,0 @@ destination.text = source._text;

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

destination.themeBinding = source.themeBinding.clone();
destination.mask = source.mask.clone();
destination.mask = source.mask != null ? source.mask.clone() : null;
destination.blendMode = source.blendMode;

@@ -297,3 +297,3 @@ };

simplified["frontendPermissions"] = this.frontendPermissions.getSimplifiedObject();
simplified["mask"] = this.mask.getSimplifiedObject();
simplified["mask"] = this.mask != null ? this.mask.getSimplifiedObject() : null;
return simplified;

@@ -300,0 +300,0 @@ };

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

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

@@ -39,3 +39,3 @@ import { ResizeGripsPermissions } from "./Model/Product/Items/ResizeGripsPermissions";

data.ShowEditToolbarButton != null && (permission.set_showEditToolbarButton(!!data.ShowEditToolbarButton));
data.ShowSelectToolbarButton != null && (permission.set_showEditToolbarButton(!!data.ShowSelectToolbarButton));
data.ShowSelectToolbarButton != null && (permission.set_showSelectToolbarButton(!!data.ShowSelectToolbarButton));
if (data.AllowDragAndDrop != null)

@@ -42,0 +42,0 @@ permission.set_allowDragAndDrop(data.AllowDragAndDrop);

@@ -53,3 +53,3 @@ import { Canvas, HitTestResult } from "./Canvas";

private _getCornerResize;
get_cursor(point: PointF): Cursor.defaultCursor | Cursor.move | Cursor.cross | Cursor.sizeEW | Cursor.sizeNS | Cursor.sizeNESW | Cursor.sizeNWSE;
get_cursor(point: PointF): Cursor.defaultCursor | Cursor.move | Cursor.pointer | Cursor.sizeEW | Cursor.sizeNS | Cursor.sizeNESW | Cursor.sizeNWSE;
update(): void;

@@ -60,2 +60,3 @@ draw(ctx: any): void;

isResizing(): boolean;
isRotating(): boolean;
isOperationNotNull(): boolean;

@@ -62,0 +63,0 @@ set_snapLinesDefaultBounds(bounds: RectangleF): void;

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

else if (ht.rotate)
return gc.cross;
return gc.pointer;
else if (ht.body && (permissions.get_allowMoveHorizontal() || permissions.get_allowMoveVertical()))

@@ -419,3 +419,3 @@ return gc.move;

else if (this._operation.rotate)
this._rotate(pt, !(e.ctrlKey || e.metaKey));
this._rotate(pt, !(e.ctrlKey || e.metaKey), e.shiftKey);
else if (this._operation.drag) {

@@ -433,2 +433,5 @@ var permissions = this._get_permissions();

};
SelectionHandler.prototype.isRotating = function () {
return this._operation && this._operation.rotate;
};
SelectionHandler.prototype.isOperationNotNull = function () {

@@ -646,14 +649,14 @@ return this._operation != null;

};
SelectionHandler.prototype._rotate = function (pt, angleSnap) {
var p1 = pt.clone(), p2 = this._startPoint, r = this._rectangle.clone(), p3 = new PointF(r.centerX, r.centerY), angle = getTriangleAngle(p1, p2, p3), edge = angleSnap ? 90 : -1;
SelectionHandler.prototype._rotate = function (pt, angleSnap, isShift) {
var p1 = pt.clone(), p2 = this._startPoint, r = this._rectangle.clone(), p3 = new PointF(r.centerX, r.centerY), angle = getTriangleAngle(p1, p2, p3), rotationStep = isShift ? 15 : 90, tolerance = angleSnap ? (isShift ? 7.5 : 5) : 0;
angle = normalizeAngle(this._startRectangle.angle + angle);
var mod = angle % edge;
if (mod < 5) {
angle = edge * Math.floor(angle / edge);
var newAngle = angle;
var mod = angle % rotationStep;
if (mod < tolerance) {
newAngle = rotationStep * Math.floor(angle / rotationStep);
}
else if (mod > edge - 5) {
angle = edge * Math.floor(angle / edge + 1);
else if (mod > rotationStep - tolerance) {
newAngle = rotationStep * Math.floor(angle / rotationStep + 1);
}
angle = normalizeAngle(angle);
r.angle = angle;
r.angle = normalizeAngle(newAngle);
this._updateRectangle(r);

@@ -660,0 +663,0 @@ };

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

@@ -16,2 +16,3 @@ import { Canvas } from "../Canvas";

import { IViewerConfiguration } from "./ViewerConfiguration";
import { LicenseHandler } from "../License";
export interface IOptions {

@@ -74,2 +75,3 @@ holderElement: HTMLDivElement;

private _createViewerElements;
readonly licenseHandler: LicenseHandler;
private _createCanvas;

@@ -76,0 +78,0 @@ private _setCanvasBackground;

@@ -209,2 +209,9 @@ var __extends = (this && this.__extends) || (function () {

};
Object.defineProperty(Viewer.prototype, "licenseHandler", {
get: function () {
return this._licenseHandler;
},
enumerable: true,
configurable: true
});
Viewer.prototype._createCanvas = function () {

@@ -808,3 +815,2 @@ var canvas = new Canvas(this);

});
this._licenseHandler.checkLicense();
};

@@ -811,0 +817,0 @@ Viewer.prototype._onWorkspaceClick = function (e) {

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

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