- Fix (regression): RGBColor

- npm: Bump to 4.0.1
master
Brett Zamir 2018-11-16 15:44:20 +08:00
parent 18bbfe8c15
commit 1c284c948d
8 changed files with 9 additions and 8 deletions

View File

@ -1,8 +1,9 @@
# SVG-Edit CHANGES
# ?
# 4.0.1
- Fix: Adjust side panel width checking based on device zoom (fixes #298)
- Fix (regression): RGBColor
# 4.0.0

2
dist/canvg.js vendored
View File

@ -452,7 +452,7 @@ var canvg = (function (exports) {
var bits = re.exec(colorString);
if (bits) {
var _processor = processor(bits),
var _processor = processor.apply(void 0, _toConsumableArray(bits)),
_processor2 = _slicedToArray(_processor, 3),
r = _processor2[0],
g = _processor2[1],

View File

@ -452,7 +452,7 @@ var svgEditorExtension_server_moinsave = (function () {
var bits = re.exec(colorString);
if (bits) {
var _processor = processor(bits),
var _processor = processor.apply(void 0, _toConsumableArray(bits)),
_processor2 = _slicedToArray(_processor, 3),
r = _processor2[0],
g = _processor2[1],

View File

@ -452,7 +452,7 @@ var svgEditorExtension_server_opensave = (function () {
var bits = re.exec(colorString);
if (bits) {
var _processor = processor(bits),
var _processor = processor.apply(void 0, _toConsumableArray(bits)),
_processor2 = _slicedToArray(_processor, 3),
r = _processor2[0],
g = _processor2[1],

View File

@ -309,7 +309,7 @@
var bits = re.exec(colorString);
if (bits) {
var _processor = processor(bits),
var _processor = processor.apply(void 0, _toConsumableArray(bits)),
_processor2 = _slicedToArray(_processor, 3),
r = _processor2[0],
g = _processor2[1],

View File

@ -206,7 +206,7 @@ export default class RGBColor {
colorDefs.forEach(({re, process: processor}) => {
const bits = re.exec(colorString);
if (bits) {
const [r, g, b] = processor(bits);
const [r, g, b] = processor(...bits);
Object.assign(this, {r, g, b});
this.ok = true;
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "svgedit",
"version": "4.0.0",
"version": "4.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "svgedit",
"version": "4.0.0",
"version": "4.0.1",
"description": "Powerful SVG-Editor for your browser ",
"main": "dist/index-umd.js",
"module": "dist/index-es.js",