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 7.1.7 to 7.1.8

2

ItemHandlers/NewBoundedTextItemHandler.d.ts

@@ -25,3 +25,3 @@ import { Path, RotatedRectangleF, Transform, PointF } from "@aurigma/design-atoms-model/Math";

protected _onTransformRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF, highlightOnly: boolean): void;
protected _onItemPropertyChanged(sender: BaseTextItem, propertyName: string): void;
protected _onItemPropertyChanged(sender: BaseTextItem, propertyName: string): Promise<void>;
protected _transformText(transform: Transform): void;

@@ -28,0 +28,0 @@ protected renderFill(itemHandlerCtx: CanvasRenderingContext2D): void;

@@ -197,25 +197,46 @@ var __extends = (this && this.__extends) || (function () {

NewBoundedTextItemHandler.prototype._onItemPropertyChanged = function (sender, propertyName) {
switch (propertyName) {
case "textRectangle":
case "boundingPaths":
case "firstBaselineOffset":
case "firstBaselineMinOffset":
this.update(null, null, "frame");
break;
case "wrappingPath":
case "wrappingMargin":
this.update(null, null, this.item.transform.isEmpty ? "wrappingPath" : null);
break;
case "verticalAlignment":
case "isVertical":
case "shrinkMode":
case "scheduledFitMode":
case "paragraphSettings":
case "overflowStrategy":
case "characterLimit":
this.update();
break;
default:
}
_super.prototype._onItemPropertyChanged.call(this, sender, propertyName);
var _a;
return __awaiter(this, void 0, void 0, function () {
var _b;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
_b = propertyName;
switch (_b) {
case "textRectangle": return [3 /*break*/, 1];
case "boundingPaths": return [3 /*break*/, 1];
case "firstBaselineOffset": return [3 /*break*/, 1];
case "firstBaselineMinOffset": return [3 /*break*/, 1];
case "wrappingPath": return [3 /*break*/, 2];
case "wrappingMargin": return [3 /*break*/, 2];
case "verticalAlignment": return [3 /*break*/, 3];
case "isVertical": return [3 /*break*/, 3];
case "shrinkMode": return [3 /*break*/, 3];
case "scheduledFitMode": return [3 /*break*/, 3];
case "paragraphSettings": return [3 /*break*/, 3];
case "characterLimit": return [3 /*break*/, 3];
case "overflowStrategy": return [3 /*break*/, 4];
}
return [3 /*break*/, 6];
case 1:
this.update(null, null, "frame");
return [3 /*break*/, 6];
case 2:
this.update(null, null, this.item.transform.isEmpty ? "wrappingPath" : null);
return [3 /*break*/, 6];
case 3:
this.update();
return [3 /*break*/, 6];
case 4: return [4 /*yield*/, ((_a = this.textEditorController) === null || _a === void 0 ? void 0 : _a.initialize())];
case 5:
_c.sent();
if (this.item instanceof BoundedTextItem && this.item.overflowStrategy != OverflowStrategy.Clip)
this.setRectangleValidated();
return [3 /*break*/, 6];
case 6:
_super.prototype._onItemPropertyChanged.call(this, sender, propertyName);
return [2 /*return*/];
}
});
});
};

@@ -222,0 +243,0 @@ NewBoundedTextItemHandler.prototype._transformText = function (transform) {

{
"version": "7.1.7",
"version": "7.1.8",
"name": "@aurigma/design-atoms",

@@ -23,3 +23,3 @@ "license": "SEE LICENSE IN License.md",

"@aurigma/design-atoms-model": "7.0.8",
"@aurigma/design-atoms-text": "7.1.7",
"@aurigma/design-atoms-text": "7.1.8",
"@aurigma/text-whizz": "1.6.36",

@@ -26,0 +26,0 @@ "clone": "2.1.1",

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

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