123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- const TEXT_SIZE = 18;
- //默认配置
- export let configOpt = {
- text: { //文本设置
- size: TEXT_SIZE,
- fontWeight: 'normal',
- color: '#333',
- lineHeight: TEXT_SIZE * 1.3,
- },
- line: { //线条设置
- width: 1,
- color: '#0052D9',
- },
- border: { //线框设置
- isDash: 0, // 0实 1虚线border: 1px solid #0052D9
- width: 2,
- fill: '#DAE8FF',
- borderColor: '#0052D9',
- }
- }
- /* 定义默认颜色 */
- export const colorsOptions = ['#333','#5B9BD5','#f00','#fff','#00f','#000','#00FFFF','#70DB93','#9F5F9F','#A67D3D','#5F9F9F']
- export const familyOptions = [
- {name:'微软雅黑',value:'微软雅黑'},
- {name:'宋体',value:'宋体'},
- {name:'黑体',value:'黑体'}
- ]
- export const fontSizeOptions = [
- {name:'12px',value:12},
- {name:'14px',value:14},
- {name:'16px',value:16}
- ]
- export const lineHeightOptions = [
- {name:'1',value:1},
- {name:'1.15',value:1.15},
- {name:'1.5',value:1.5},
- {name:'2',value:2}
- ]
- export const sizeOptions = [
- 30,
- 28,
- 26,
- 24,
- 22,
- 20,
- 18,
- 16,
- 14,
- 12,
- 10,
- ]
- export const styleSettings=[
- {
- id:1,
- backgroundColor:'#DAE8FF'
- },
- {
- id:2,
- backgroundColor:'orange'
- },
- {
- id:3,
- backgroundColor:'purple'
- },
- {
- id:4,
- backgroundColor:'red'
- }
- ]
|