feat:新增图表颜色滤镜

This commit is contained in:
奔跑的面条
2022-04-19 22:07:54 +08:00
parent 96581511f8
commit 43c46c873c
5 changed files with 121 additions and 23 deletions
+14 -1
View File
@@ -30,7 +30,20 @@ export interface PublicConfigType extends requestConfig {
id: string
rename?: string
attr: { x: number; y: number; w: number; h: number; zIndex: number }
styles: { opacity: number; animations: string[] }
styles: {
// 透明度
opacity: number;
// 饱和度
saturate: number;
// 对比度
contrast: number;
// 色相
hueRotate: number;
// 亮度
brightness: number;
// 动画
animations: string[]
}
setPosition: Function
}
export interface CreateComponentType extends PublicConfigType {
+11 -1
View File
@@ -14,9 +14,19 @@ export class publicConfig implements PublicConfigType {
public rename = undefined
// 基本信息
public attr = { x: 0, y: 0, w: 500, h: 300, zIndex: -1 }
// 基本样式(动画,透明)
// 基本样式
public styles = {
// 透明
opacity: 1,
// 饱和度
saturate: 1,
// 对比度
contrast: 1,
// 色相
hueRotate: 0,
// 亮度
brightness: 1,
// 动画
animations: []
}
// 数据