zrender
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -100,18 +100,20 @@ // const typescript = require('@rollup/plugin-typescript'); | ||
}).then(bundle => { | ||
bundle.write(outputOption); | ||
bundle.write(outputOption) | ||
.then(() => { | ||
// Minified | ||
if (process.argv.indexOf('--minify') >= 0) { | ||
rollup.rollup({ | ||
...createInputOption('production', false) | ||
}).then(bundle => { | ||
const file = outputOption.file.replace(/.js$/, '.min.js'); | ||
bundle.write(Object.assign(outputOption, { | ||
file, | ||
sourcemap: false | ||
})).then(function () { | ||
minify(file); | ||
}); | ||
}); | ||
} | ||
}); | ||
}); | ||
// Minified | ||
if (process.argv.indexOf('--minify') >= 0) { | ||
rollup.rollup({ | ||
...createInputOption('production', false) | ||
}).then(bundle => { | ||
const file = outputOption.file.replace(/.js$/, '.min.js'); | ||
bundle.write(Object.assign(outputOption, { | ||
file, | ||
sourcemap: false | ||
})).then(function () { | ||
minify(file); | ||
}); | ||
}); | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
export * from './src/zrender'; | ||
export * from './src/export'; | ||
export * from './lib/zrender'; | ||
export * from './lib/export'; |
@@ -9,3 +9,3 @@ import { adjustTextY, getIdURL, getMatrixStr, getPathPrecision, getShadowKey, getSRTTransformString, hasShadow, isAroundZero, isGradient, isImagePattern, isLinearGradient, isPattern, isRadialGradient, normalizeColor, round4, TEXT_ALIGN_TO_ANCHOR } from './helper.js'; | ||
import { createVNode, vNodeToString } from './core.js'; | ||
import { assert, isFunction, isString, logError, map, retrieve2 } from '../core/util.js'; | ||
import { assert, clone, isFunction, isString, logError, map, retrieve2 } from '../core/util.js'; | ||
import { createOrUpdateImage } from '../graphic/helper/image.js'; | ||
@@ -390,3 +390,3 @@ import { createCSSAnimation } from './cssAnimation.js'; | ||
else if (val.svgElement) { | ||
child = val.svgElement; | ||
child = clone(val.svgElement); | ||
patternAttrs.width = val.svgWidth; | ||
@@ -393,0 +393,0 @@ patternAttrs.height = val.svgHeight; |
{ | ||
"name": "zrender", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"description": "A lightweight graphic library providing 2d draw for Apache ECharts", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,14 @@ /** | ||
import * as color from '../tool/color'; | ||
import {eqNaN, extend, isArrayLike, isFunction, isGradientObject, isNumber, isString, keys, logError, map} from '../core/util'; | ||
import { | ||
eqNaN, | ||
extend, | ||
isArrayLike, | ||
isFunction, | ||
isGradientObject, | ||
isNumber, | ||
isString, | ||
keys, | ||
logError, | ||
map | ||
} from '../core/util'; | ||
import {ArrayLike, Dictionary} from '../core/types'; | ||
@@ -10,0 +21,0 @@ import easingFuncs, { AnimationEasing } from './easing'; |
@@ -32,3 +32,3 @@ // TODO | ||
import Displayable from '../graphic/Displayable'; | ||
import { assert, isFunction, isString, logError, map, retrieve2 } from '../core/util'; | ||
import { assert, clone, isFunction, isString, logError, map, retrieve2 } from '../core/util'; | ||
import Polyline from '../graphic/shape/Polyline'; | ||
@@ -542,3 +542,3 @@ import Polygon from '../graphic/shape/Polygon'; | ||
// TODO it's not so good to use textContent as innerHTML | ||
child = val.svgElement; | ||
child = clone(val.svgElement); | ||
patternAttrs.width = val.svgWidth; | ||
@@ -545,0 +545,0 @@ patternAttrs.height = val.svgHeight; |
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 too big to display
64216
4001955