config.ts
749 Bytes
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { LeftCenterRightHeadAnimatConfig } from './index'
import cloneDeep from 'lodash/cloneDeep'
export const option = {
dataset: '我是标题',
animat: {
colors: ['#00CED1', '#FAD400'],
x: 0,
y: 0,
w: 1920,
h: 100,
size: 40,
textPos:{
x: 50,
y: 30,
},
gradient: {
from: '#0000FFFF',
to: '#00FF00FF',
deg: 45
}
}
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = LeftCenterRightHeadAnimatConfig.key
public chartConfig = cloneDeep(LeftCenterRightHeadAnimatConfig)
public option = cloneDeep(option)
}