Commit 6a3e6895 by 姜雷

修改饼状图遮罩

parent 892f8545
...@@ -58,10 +58,10 @@ function initChart(canvas, width, height, F2) { ...@@ -58,10 +58,10 @@ function initChart(canvas, width, height, F2) {
var coord = paytypeChart.get('coord'); var coord = paytypeChart.get('coord');
frontPlot.addShape('sector', { frontPlot.addShape('sector', {
attrs: { attrs: {
x: coord.center.x - coord.circleRadius - coord.start.x + coord.endAngle, x: coord.circleRadius * (1 + coord.innerRadius) + coord.endAngle,
y: coord.center.y, y: coord.center.y,
r: 0, r: 0,
r0: coord.circleRadius * coord.innerRadius, r0: coord.circleRadius * coord.innerRadius * 1.1,
fill: '#fff', fill: '#fff',
}, },
}); });
...@@ -110,4 +110,4 @@ Component({ ...@@ -110,4 +110,4 @@ Component({
}, },
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGF5VHlwZUNoYXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiUGF5VHlwZUNoYXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNENBQWtEO0FBR2xELElBQUksWUFBWSxHQUFHLElBQUksQ0FBQztBQUN4QixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFDZixJQUFNLFFBQVEsR0FBRztJQUNmLElBQUksRUFBRSxTQUFTO0lBQ2YsSUFBSSxFQUFFLFNBQVM7SUFDZixRQUFRLEVBQUUsU0FBUztJQUNuQixNQUFNLEVBQUUsU0FBUztDQUNsQixDQUFDO0FBRUYsbUJBQW1CLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLEVBQUU7SUFDMUMsSUFBTSxJQUFJLEdBQUcsRUFBRSxDQUFDO0lBQ2hCLFlBQVksR0FBRyxJQUFJLEVBQUUsQ0FBQyxLQUFLLENBQUM7UUFDMUIsRUFBRSxFQUFFLE1BQU07UUFDVixLQUFLLE9BQUE7UUFDTCxNQUFNLFFBQUE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GlmIChpdGVtKSB7XG4gICAgICAgICAgICAgICAgbGV0IG5hbWUgPSBpdGVtLm5hbWU7XG4gICAgICAgICAgICAgICAgaWYgKGl0ZW0gJiYgaXRlbS5uYW1lLmxlbmd0aCA8IDQpIHtcbiAgICAgICAgICAgICAgICAgIG5hbWUgKz0gJ1xceGEwXFx4YTBcXHhhMCc7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBuYW1lICsgJyAgICcgKyBmb3JtYXRQcmljZShpdGVtLmNvdW50KTtcbiAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAvLyBjdXN0b206IHRydWUsXG4gICAgICAgICAgICAvLyBpdGVtczogbmV3VmFsLm1hcChpdGVtID0+ICh7XG4gICAgICAgICAgICAvLyAgIG5hbWU6IGl0ZW0ubmFtZSxcbiAgICAgICAgICAgIC8vICAgdmFsdWU6ICcgJyArIGZvcm1hdFByaWNlKGl0ZW0uY291bnQpLFxuICAgICAgICAgICAgLy8gICBtYXJrZXI6IHtcbiAgICAgICAgICAgIC8vICAgICBzeW1ib2w6ICdzcXVhcmUnLFxuICAgICAgICAgICAgLy8gICAgIGZpbGw6IGNvbG9yTWFwW2l0ZW0ua2V5XSxcbiAgICAgICAgICAgIC8vICAgICByYWRpdXM6IDQsXG4gICAgICAgICAgICAvLyAgIH0sXG4gICAgICAgICAgICAvLyB9KSksXG4gICAgICAgICAgfSk7XG4gICAgICAgIHBheXR5cGVDaGFydCAmJiBwYXl0eXBlQ2hhcnQuY2hhbmdlRGF0YShuZXdWYWwpO1xuICAgICAgfSxcbiAgICB9LFxuICAgIG1vbnRoOiB7XG4gICAgICB0eXBlOiBTdHJpbmcsXG4gICAgICB2YWx1ZTogJycsXG4gICAgICBvYnNlcnZlcihuZXdWYWwpIHtcbiAgICAgICAgbW9udGggPSBuZXdWYWw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bGUsXG4gICAgICB5OiBjb29yZC5jZW50ZXIueSxcbiAgICAgIHI6IDAsIC8vIOWFqOWNiuW+hFxuICAgICAgcjA6IGNvb3JkLmNpcmNsZVJhZGl1cyAqIGNvb3JkLmlubmVyUmFkaXVzICogMS4xLFxuICAgICAgZmlsbDogJyNmZmYnLFxuICAgIH0sXG4gIH0pO1xuICBwYXl0eXBlQ2hhcnQuZ2V0KCdjYW52YXMnKS5kcmF3KCk7XG4gIGNvbnNvbGUubG9nKCdjb29yZCcsIGNvb3JkKTtcblxuICByZXR1cm4gcGF5dHlwZUNoYXJ0O1xufVxuXG5Db21wb25lbnQoe1xuICBwcm9wZXJ0aWVzOiB7XG4gICAgZGF0YUxpc3Q6IHtcbiAgICAgIHR5cGU6IEFycmF5LFxuICAgICAgdmFsdWU6IFtdLFxuICAgICAgb2JzZXJ2ZXIobmV3VmFsKSB7XG4gICAgICAgIHBheXR5cGVDaGFydCAmJlxuICAgICAgICAgIHBheXR5cGVDaGFydC5sZWdlbmQoe1xuICAgICAgICAgICAgcG9zaXRpb246ICdyaWdodCcsXG4gICAgICAgICAgICBtYXJrZXI6ICdzcXVhcmUnLFxuICAgICAgICAgICAgaXRlbUZvcm1hdHRlcjogdmFsID0+IHtcbiAgICAgICAgICAgICAgbGV0IGl0ZW0gPSBuZXdWYWwuZmluZChpdGVtID0+IGl0ZW0ua2V5ID09PSB2YWwpO1xuICAgICAgICAgICAgICBpZiAoaXRlbSkge1xuICAgICAgICAgICAgICAgIGxldCBuYW1lID0gaXRlbS5uYW1lO1xuICAgICAgICAgICAgICAgIGlmIChpdGVtICYmIGl0ZW0ubmFtZS5sZW5ndGggPCA0KSB7XG4gICAgICAgICAgICAgICAgICBuYW1lICs9ICdcXHhhMFxceGEwXFx4YTAnO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gbmFtZSArICcgICAnICsgZm9ybWF0UHJpY2UoaXRlbS5jb3VudCk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuICcnO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gY3VzdG9tOiB0cnVlLFxuICAgICAgICAgICAgLy8gaXRlbXM6IG5ld1ZhbC5tYXAoaXRlbSA9PiAoe1xuICAgICAgICAgICAgLy8gICBuYW1lOiBpdGVtLm5hbWUsXG4gICAgICAgICAgICAvLyAgIHZhbHVlOiAnICcgKyBmb3JtYXRQcmljZShpdGVtLmNvdW50KSxcbiAgICAgICAgICAgIC8vICAgbWFya2VyOiB7XG4gICAgICAgICAgICAvLyAgICAgc3ltYm9sOiAnc3F1YXJlJyxcbiAgICAgICAgICAgIC8vICAgICBmaWxsOiBjb2xvck1hcFtpdGVtLmtleV0sXG4gICAgICAgICAgICAvLyAgICAgcmFkaXVzOiA0LFxuICAgICAgICAgICAgLy8gICB9LFxuICAgICAgICAgICAgLy8gfSkpLFxuICAgICAgICAgIH0pO1xuICAgICAgICBwYXl0eXBlQ2hhcnQgJiYgcGF5dHlwZUNoYXJ0LmNoYW5nZURhdGEobmV3VmFsKTtcbiAgICAgIH0sXG4gICAgfSxcbiAgICBtb250aDoge1xuICAgICAgdHlwZTogU3RyaW5nLFxuICAgICAgdmFsdWU6ICcnLFxuICAgICAgb2JzZXJ2ZXIobmV3VmFsKSB7XG4gICAgICAgIG1vbnRoID0gbmV3VmFsO1xuICAgICAgfSxcbiAgICB9LFxuICB9LFxuICBkYXRhOiB7XG4gICAgb3B0czoge1xuICAgICAgb25Jbml0OiBpbml0Q2hhcnQsXG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file \ No newline at end of file
...@@ -63,10 +63,10 @@ function initChart(canvas, width, height, F2) { ...@@ -63,10 +63,10 @@ function initChart(canvas, width, height, F2) {
const coord = paytypeChart.get('coord'); // 获取坐标系对象 const coord = paytypeChart.get('coord'); // 获取坐标系对象
frontPlot.addShape('sector', { frontPlot.addShape('sector', {
attrs: { attrs: {
x: coord.center.x - coord.circleRadius - coord.start.x + coord.endAngle, x: coord.circleRadius * (1 + coord.innerRadius) + coord.endAngle,
y: coord.center.y, y: coord.center.y,
r: 0, // 全半径 r: 0, // 全半径
r0: coord.circleRadius * coord.innerRadius, r0: coord.circleRadius * coord.innerRadius * 1.1,
fill: '#fff', fill: '#fff',
}, },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment