mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
perf: 优化滤镜模糊问题,默认不开启
This commit is contained in:
Vendored
+4
@@ -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
|
||||
|
||||
@@ -43,6 +43,8 @@ export class PublicConfigClass implements PublicConfigType {
|
||||
public attr = { ...chartInitConfig, zIndex: -1 }
|
||||
// 基本样式
|
||||
public styles = {
|
||||
// 使用滤镜
|
||||
filterShow: true,
|
||||
// 色相
|
||||
hueRotate: 0,
|
||||
// 饱和度
|
||||
|
||||
Reference in New Issue
Block a user