perf: 优化滤镜模糊问题,默认不开启

This commit is contained in:
奔跑的面条
2022-09-19 17:32:19 +08:00
parent 696a363591
commit ad60b7b44c
8 changed files with 26 additions and 4 deletions
+4
View File
@@ -38,6 +38,9 @@ interface EchartsDataType {
// 滤镜/变换枚举
export enum FilterEnum {
// 是否启用
FILTERS_SHOW = 'filterShow',
// 透明度
OPACITY = 'opacity',
// 饱和度
@@ -65,6 +68,7 @@ export interface PublicConfigType {
isGroup: boolean
attr: { x: number; y: number; w: number; h: number; zIndex: number; offsetX: number; offsetY: number; }
styles: {
[FilterEnum.FILTERS_SHOW]: boolean
[FilterEnum.OPACITY]: number
[FilterEnum.SATURATE]: number
[FilterEnum.CONTRAST]: number
+2
View File
@@ -43,6 +43,8 @@ export class PublicConfigClass implements PublicConfigType {
public attr = { ...chartInitConfig, zIndex: -1 }
// 基本样式
public styles = {
// 使用滤镜
filterShow: true,
// 色相
hueRotate: 0,
// 饱和度