mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat:新增图表颜色滤镜
This commit is contained in:
Vendored
+14
-1
@@ -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 {
|
||||
|
||||
@@ -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: []
|
||||
}
|
||||
// 数据
|
||||
|
||||
Reference in New Issue
Block a user