@aurigma/design-atoms-model
Advanced tools
Comparing version 6.6.4 to 6.6.5
@@ -13,1 +13,2 @@ export * from "./CmykColor"; | ||
export * from "./HsbColor"; | ||
export * from './RgbColors'; |
@@ -13,2 +13,3 @@ export * from "./CmykColor"; | ||
export * from "./HsbColor"; | ||
export * from './RgbColors'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"version": "6.6.4", | ||
"version": "6.6.5", | ||
"name": "@aurigma/design-atoms-model", | ||
@@ -37,5 +37,5 @@ "license": "SEE LICENSE IN License.md", | ||
"scripts": { | ||
"build-tsc": "./node_modules/.bin/tsc" | ||
"build-tsc": ".\\node_modules\\.bin\\tsc" | ||
}, | ||
"type": "module" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { RgbColor } from "../Colors"; | ||
import { RgbColors } from "../Colors"; | ||
var CropMark = /** @class */ (function () { | ||
@@ -6,3 +6,3 @@ function CropMark() { | ||
this.margin = 10; | ||
this.color = new RgbColor(0, 0, 0, 255); /*"black"*/ | ||
this.color = RgbColors.black; | ||
this.widthPx = 1; | ||
@@ -9,0 +9,0 @@ this.length = 8; |
@@ -14,3 +14,3 @@ var __extends = (this && this.__extends) || (function () { | ||
})(); | ||
import { Color, CmykColor, RgbColor, SpotColor, GrayscaleColor, LabColor, Ink, } from "../../../Colors"; | ||
import { Color, CmykColor, SpotColor, GrayscaleColor, LabColor, Ink, RgbColors, } from "../../../Colors"; | ||
import { AbstractObjectPropertyFactory } from "./AbstractFactory"; | ||
@@ -27,3 +27,3 @@ var ColorPropertyFactory = /** @class */ (function (_super) { | ||
type: "rgb", | ||
getDefaultValue: function () { return new RgbColor(0, 0, 0, 255); }, | ||
getDefaultValue: function () { return RgbColors.black; }, | ||
}, | ||
@@ -30,0 +30,0 @@ { |
@@ -0,3 +1,4 @@ | ||
import { IColor } from "../../Colors"; | ||
export default interface IShadowSettings { | ||
color?: string; | ||
color?: string | IColor; | ||
size?: number; | ||
@@ -4,0 +5,0 @@ angle?: number; |
@@ -0,5 +1,6 @@ | ||
import { IColor } from "../../Colors"; | ||
export default interface IStrokeSettings { | ||
color?: string; | ||
color?: string | IColor; | ||
size?: number; | ||
lineJoin?: string; | ||
} |
@@ -27,3 +27,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { ResizeGripsPermissions } from "./ResizeGripsPermissions"; | ||
import { RgbColor } from "../../Colors"; | ||
import { RgbColors } from "../../Colors"; | ||
import * as _ from "underscore"; | ||
@@ -46,3 +46,3 @@ import { BarcodeFormat } from "./BarcodeFormat"; | ||
_this._barcodeSubType = BarcodeSubType.Url; | ||
_this._color = new RgbColor(0, 0, 0, 255); | ||
_this._color = RgbColors.black; | ||
_this.type = BarcodeItem.type; | ||
@@ -62,3 +62,3 @@ _this._onOptionsPropertyChanged = function (s, p) { | ||
_this._ignorePermissionsChange = false; | ||
_this.fillColor = new RgbColor(255, 255, 255, 255); | ||
_this.fillColor = RgbColors.white; | ||
if (format != null) | ||
@@ -65,0 +65,0 @@ _this._barcodeFormat = format; |
@@ -35,3 +35,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { RectangleItem } from "./RectangleItem"; | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color, RgbColors } from "../../Colors"; | ||
import { StrokeSettings } from "./StrokeSettings"; | ||
@@ -59,3 +59,3 @@ import { ShadowSettings } from "./ShadowSettings"; | ||
_this._underline = false; | ||
_this._color = new RgbColor(0, 0, 0, 255); | ||
_this._color = RgbColors.black; | ||
_this._alignment = TextAlignment.Left; | ||
@@ -81,3 +81,3 @@ _this._tracking = 0; | ||
_this.isTextPlaceholder = false; | ||
_this.textColorForAbnormalRendering = new RgbColor(0, 0, 0, 255); | ||
_this.textColorForAbnormalRendering = RgbColors.black; | ||
_this.type = BaseTextItem.type; | ||
@@ -94,3 +94,3 @@ _this._onFontPropertyChanged = function (s, p) { | ||
_this.borderWidth = 0; | ||
_this.fillColor = new RgbColor(0, 0, 0, 0); | ||
_this.fillColor = RgbColors.transparent; | ||
_this.text = (text != null) ? text : ""; | ||
@@ -97,0 +97,0 @@ _this._font = new BaseTextItem.FontSettings(fontPostScriptName, (fontSize != null) ? fontSize : 10); |
@@ -14,3 +14,3 @@ var __extends = (this && this.__extends) || (function () { | ||
})(); | ||
import { RgbColor } from "../../Colors"; | ||
import { RgbColors } from "../../Colors"; | ||
import { RectangleItem } from "./RectangleItem"; | ||
@@ -29,3 +29,3 @@ import { SurfaceContainer } from "../Container"; | ||
_this.borderWidth = 0; | ||
_this.fillColor = new RgbColor(0, 0, 0, 0); | ||
_this.fillColor = RgbColors.black; | ||
_this._ignorePermissionsChange = true; | ||
@@ -32,0 +32,0 @@ _this.itemPermissions.itemToolbarPermissions.showEditButton = true; |
@@ -15,3 +15,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { LineItem } from "./LineItem"; | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color, RgbColors } from "../../Colors"; | ||
import * as Math from "../../Math/Common"; | ||
@@ -25,3 +25,3 @@ import { equals } from "../../Utils/Utils"; | ||
_this._altDashWidth = 3; | ||
_this._altColor = new RgbColor(0, 0, 0, 0); | ||
_this._altColor = RgbColors.transparent; | ||
_this.type = DashedLineItem.type; | ||
@@ -28,0 +28,0 @@ return _this; |
@@ -17,3 +17,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { WrappingMode } from "./WrappingMode"; | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color, RgbColors } from "../../Colors"; | ||
import * as Math from "../../Math/Common"; | ||
@@ -31,4 +31,4 @@ import { equals } from "../../Utils/Utils"; | ||
_this._stepY = stepY; | ||
_this._horizontalLineColor = new RgbColor(0, 0, 0, 255); | ||
_this._verticalLineColor = new RgbColor(0, 0, 0, 255); | ||
_this._horizontalLineColor = RgbColors.black; | ||
_this._verticalLineColor = RgbColors.black; | ||
_this._lineWidth = 1; | ||
@@ -35,0 +35,0 @@ _this._fixedLineWidth = true; |
import { Item } from "./Item"; | ||
import { PointF } from "../../Math/PointF"; | ||
import { LinePermissions } from "./LinePermissions"; | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color } from "../../Colors"; | ||
export declare class LineItem extends Item { | ||
@@ -12,3 +12,3 @@ private _width; | ||
private _overprintStroke; | ||
readonly lineColorForAbnormalRendering: RgbColor; | ||
readonly lineColorForAbnormalRendering: import("../../Colors").RgbColor; | ||
constructor(sourcePoint0?: PointF, sourcePoint1?: PointF); | ||
@@ -15,0 +15,0 @@ get width(): number; |
@@ -17,3 +17,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { LinePermissions } from "./LinePermissions"; | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color, RgbColors } from "../../Colors"; | ||
import { ArgumentException } from "../../Exception"; | ||
@@ -27,3 +27,3 @@ import * as Math from "../../Math/Common"; | ||
_this._width = 4; | ||
_this._color = new RgbColor(0, 0, 0, 255); | ||
_this._color = RgbColors.black; | ||
_this._sourcePoint0 = new PointF(); | ||
@@ -33,3 +33,3 @@ _this._sourcePoint1 = new PointF(); | ||
_this._overprintStroke = false; | ||
_this.lineColorForAbnormalRendering = new RgbColor(0, 0, 0, 255); | ||
_this.lineColorForAbnormalRendering = RgbColors.black; | ||
_this.type = LineItem.type; | ||
@@ -36,0 +36,0 @@ _this._sourcePoint0 = sourcePoint0 != null ? sourcePoint0 : new PointF(); |
@@ -46,3 +46,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { ImageMetaData } from "./ImageMetaData"; | ||
import { RgbColor, Color, CmykColor } from "../../Colors"; | ||
import { Color, CmykColor, RgbColors } from "../../Colors"; | ||
import { PlaceholderPermissions } from "./PlaceholderPermissions"; | ||
@@ -110,3 +110,3 @@ import { ResizeGripsPermissions } from "./ResizeGripsPermissions"; | ||
; | ||
_this.fillColor = new RgbColor(0, 0, 0, 0); | ||
_this.fillColor = RgbColors.transparent; | ||
_this.borderWidth = 0; | ||
@@ -113,0 +113,0 @@ _this.placeholderPermissions = new PlaceholderPermissions(); |
@@ -27,3 +27,3 @@ import { Color } from "../../Colors"; | ||
getSimplifiedObject(): { | ||
color: string; | ||
color: import("../../Colors").IColor; | ||
angle: number; | ||
@@ -30,0 +30,0 @@ distance: number; |
@@ -1,2 +0,2 @@ | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color, RgbColors } from "../../Colors"; | ||
import { EqualsOfFloatNumbers } from "../../Math/Common"; | ||
@@ -6,3 +6,3 @@ import { EventWithSenderArg } from "../../EventObject"; | ||
function ShadowSettings(object) { | ||
this._color = new RgbColor(0, 0, 0, 255); | ||
this._color = RgbColors.black; | ||
this._angle = 0; | ||
@@ -14,3 +14,3 @@ this._distance = 0; | ||
return; | ||
this.color = object.color != null ? object.color : new RgbColor(0, 0, 0, 255); | ||
this.color = object.color != null ? object.color : RgbColors.black; | ||
this.angle = object.angle != null ? object.angle : 0; | ||
@@ -91,3 +91,3 @@ this.distance = object.distance != null ? object.distance : 0; | ||
return { | ||
color: this.color.toString(), | ||
color: this.color.getData(), | ||
angle: this.angle, | ||
@@ -94,0 +94,0 @@ distance: this.distance, |
@@ -28,3 +28,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { ResizeGripsPermissions } from "./ResizeGripsPermissions"; | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color, RgbColor, RgbColors } from "../../Colors"; | ||
import { EventObject } from "../../EventObject"; | ||
@@ -43,3 +43,3 @@ import { ArgumentException } from "../../Exception"; | ||
_this._fillColor = new RgbColor(112, 112, 112, 255); | ||
_this._borderColor = new RgbColor(0, 0, 0, 255); | ||
_this._borderColor = RgbColors.black; | ||
_this._altBorderColor = null; | ||
@@ -46,0 +46,0 @@ _this._dash = []; |
@@ -29,3 +29,3 @@ import { Color } from "../../Colors"; | ||
getSimplifiedObject(): { | ||
color: string; | ||
color: import("../../Colors").IColor; | ||
size: number; | ||
@@ -32,0 +32,0 @@ lineJoin: LineJoin; |
@@ -10,3 +10,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { Color, RgbColor } from "../../Colors"; | ||
import { Color, RgbColors } from "../../Colors"; | ||
import { EqualsOfFloatNumbers } from "../../Math/Common"; | ||
@@ -23,3 +23,3 @@ import { EventWithSenderArg } from "../../EventObject"; | ||
function StrokeSettings(object) { | ||
this._color = new RgbColor(0, 0, 0, 255); | ||
this._color = RgbColors.black; | ||
this._size = 0; | ||
@@ -31,3 +31,3 @@ this._lineJoin = LineJoin.Miter; | ||
return; | ||
this.color = object.color != null ? object.color : new RgbColor(0, 0, 0, 255); | ||
this.color = object.color != null ? object.color : RgbColors.black; | ||
this.size = object.size != null ? object.size : 0; | ||
@@ -93,3 +93,3 @@ this.lineJoin = object.lineJoin != null ? object.lineJoin : LineJoin.Miter; | ||
return { | ||
color: this.color.toString(), | ||
color: this.color.getData(), | ||
size: this.size, | ||
@@ -96,0 +96,0 @@ lineJoin: this.lineJoin |
@@ -0,1 +1,2 @@ | ||
import { IColor } from "../../Colors"; | ||
import { IItemData, IFontSettings, IShadowSettings, IStrokeSettings } from "../Interfaces"; | ||
@@ -10,3 +11,3 @@ export declare class FontSettings implements IFontSettings { | ||
export declare class ShadowSettings implements IShadowSettings { | ||
color?: string; | ||
color?: string | IColor; | ||
size?: number; | ||
@@ -17,3 +18,3 @@ angle?: number; | ||
export declare class StrokeSettings implements IStrokeSettings { | ||
color?: string; | ||
color?: string | IColor; | ||
size?: number; | ||
@@ -20,0 +21,0 @@ lineJoin?: string; |
import { RectangleF } from "../Math/RectangleF"; | ||
import { Color, RgbColor } from "../Colors"; | ||
import { Color, RgbColors } from "../Colors"; | ||
import { CornerRadiusConverter } from "./Convert/CornerRadiusConverter"; | ||
@@ -18,4 +18,4 @@ import { EventWithSenderArg } from "../EventObject"; | ||
this._widthPx = 1; | ||
this._color = new RgbColor(255, 255, 255, 255); /*"white"*/ | ||
this._altColor = new RgbColor(0, 0, 0, 255); /*"black"*/ | ||
this._color = RgbColors.white; | ||
this._altColor = RgbColors.black; | ||
this._stepPx = 10; | ||
@@ -22,0 +22,0 @@ this._margin = new Margin(10); |
@@ -0,0 +0,0 @@ import * as linq from "linq"; |
/** @hidden */ | ||
/** Don't include in docs */ | ||
export declare const MODELVERSION = "6.6.4"; | ||
export declare const MODELVERSION = "6.6.5"; |
/** @hidden */ | ||
/** Don't include in docs */ | ||
export var MODELVERSION = "6.6.4"; | ||
export var MODELVERSION = "6.6.5"; | ||
//# sourceMappingURL=Version.js.map |
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 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1301829
491
19577
1