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

@aurigma/design-atoms-text

Package Overview
Dependencies
Maintainers
5
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurigma/design-atoms-text - npm Package Compare versions

Comparing version 6.20.1 to 6.20.2

13

dist/TextEditor/TextWhizz/TextWhizzWrapper.js
import { Exception } from "@aurigma/design-atoms-model/Exception";
import { Color } from "@aurigma/design-atoms-model/Colors";
import { Text } from "../../Model";

@@ -179,2 +180,14 @@ import { GmXmlParser, GmXmlSerializer } from "../../Serialization";

text = new GmXmlSerializer().serialize(textModel, colorPalette);
let i = 0;
while (true) {
if (!colorPalette.containsColorWithIndex(i))
break;
let paletteColor = colorPalette.getColorByIndex(i);
let existingColor = this.colorPalette.getPaletteColorAt(i);
if (existingColor == null)
this.colorPalette.addColorToPalette(paletteColor);
else if (!Color.equals(existingColor, paletteColor))
console.warn(`differentColors: existingColor ${existingColor}; paletteColor ${paletteColor}`);
i++;
}
this._textHandler.insertFormattedText(text);

@@ -181,0 +194,0 @@ }

4

package.json
{
"name": "@aurigma/design-atoms-text",
"version": "6.20.1",
"version": "6.20.2",
"description": "",

@@ -37,3 +37,3 @@ "main": "dist/index.js",

"dependencies": {
"@aurigma/design-atoms-model": "6.5.29",
"@aurigma/design-atoms-model": "6.5.30",
"@aurigma/text-whizz": "1.5.58",

@@ -40,0 +40,0 @@ "xmldom": "^0.6.0"

import {Exception} from "@aurigma/design-atoms-model/Exception";
import {Color} from "@aurigma/design-atoms-model/Colors";
import TextWhizz from "@aurigma/text-whizz/TextWhizzJS";

@@ -236,2 +237,16 @@ import {Text} from "../../Model";

text = new GmXmlSerializer().serialize(textModel, colorPalette);
let i = 0;
while(true){
if (!colorPalette.containsColorWithIndex(i))
break;
let paletteColor = colorPalette.getColorByIndex(i);
let existingColor = this.colorPalette.getPaletteColorAt(i);
if (existingColor == null)
this.colorPalette.addColorToPalette(paletteColor);
else if (!Color.equals(existingColor, paletteColor))
console.warn(`differentColors: existingColor ${existingColor}; paletteColor ${paletteColor}`);
i++;
}
this._textHandler.insertFormattedText(text);

@@ -238,0 +253,0 @@ }

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