提交 514464ac 编写于 作者: O Ovilia

fix(decal): fix import

上级 4df0f4ab
......@@ -18,7 +18,7 @@
*/
import Model from '../../model/Model';
import { Sector } from 'zrender/src/export';
import Sector from 'zrender/src/graphic/shape/Sector';
import { isArray } from 'zrender/src/core/util';
import { parsePercent } from 'zrender/src/contain/text';
......
......@@ -41,7 +41,6 @@ import Model from '../../model/Model';
import Displayable, { DisplayableState } from 'zrender/src/graphic/Displayable';
import { PathStyleProps } from 'zrender/src/graphic/Path';
import { parse, stringify } from 'zrender/src/tool/color';
import {Pattern} from 'zrender/src/export';
import {PatternObject} from 'zrender/src/graphic/Pattern';
const curry = zrUtil.curry;
......
......@@ -4,7 +4,6 @@ import LRU from 'zrender/src/core/LRU';
import {defaults, createCanvas, map, isArray} from 'zrender/src/core/util';
import {getLeastCommonMultiple} from './number';
import {createSymbol} from './symbol';
import {util} from 'zrender/src/export';
import ExtensionAPI from '../ExtensionAPI';
import type SVGPainter from 'zrender/src/svg/Painter';
import { brushSingle } from 'zrender/src/canvas/graphic';
......@@ -295,7 +294,7 @@ function normalizeDashArrayX(dash: DecalDashArrayX): number[][] {
result.push([dashValue, dashValue]);
}
else {
const dashValue = util.map(dash[i] as number[], n => Math.ceil(n));
const dashValue = map(dash[i] as number[], n => Math.ceil(n));
if (dashValue.length % 2 === 1) {
// [4, 2, 1] means |---- - -- |---- - -- |
// so normalize it to be [4, 2, 1, 4, 2, 1]
......@@ -324,7 +323,7 @@ function normalizeDashArrayY(dash: DecalDashArrayY): number[] {
return [dashValue, dashValue];
}
const dashValue = util.map(dash as number[], n => Math.ceil(n));
const dashValue = map(dash as number[], n => Math.ceil(n));
return dash.length % 2 ? dashValue.concat(dashValue) : dashValue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册