|
@@ -96,6 +96,10 @@ export const formatPre = [{
|
|
|
},{
|
|
|
modelId:13,
|
|
|
text:'xxx'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ modelId:14,
|
|
|
+ text:'左上图左下右文本框'
|
|
|
}
|
|
|
]
|
|
|
//版式id对应组件名
|
|
@@ -112,7 +116,8 @@ export const modelMap = {
|
|
|
10:'Ten',
|
|
|
11:'Ele',
|
|
|
12:'Twelve',
|
|
|
- 13:'Thirteen'
|
|
|
+ 13:'Thirteen',
|
|
|
+ 14:'Fourteen',
|
|
|
}
|
|
|
//版式信息,用于判断图表/文字插入哪个位置
|
|
|
export const modelInfo = {
|
|
@@ -215,7 +220,15 @@ export const modelInfo = {
|
|
|
positions:[1,2],
|
|
|
elChartNum:2,
|
|
|
elTextNum:0
|
|
|
- }
|
|
|
+ },
|
|
|
+ 14: {
|
|
|
+ elNum: 3,
|
|
|
+ elType: ['chart', 'text', 'text'],
|
|
|
+ positions: [1, 2, 3],
|
|
|
+ elChartNum: 1,
|
|
|
+ elTextNum: 2,
|
|
|
+ elTextPosition: 3
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
//给标题预留的位置,单位%
|
|
@@ -279,27 +292,27 @@ export const modelConfig = [{
|
|
|
elements: [{
|
|
|
position: 1,
|
|
|
width: 100*0.5,
|
|
|
- height: (restHeight)*0.5*0.84,
|
|
|
+ height: (restHeight)*0.4*0.84,
|
|
|
x: 0,
|
|
|
- y: ((restHeight)*0.5-(restHeight)*0.5*0.84)/2
|
|
|
+ y: ((restHeight)*0.4-(restHeight)*0.4*0.84)/2
|
|
|
}, {
|
|
|
position: 2,
|
|
|
width: 100*0.5,
|
|
|
- height: (restHeight)*0.5*0.84,
|
|
|
+ height: (restHeight)*0.6*0.84,
|
|
|
x: 0,
|
|
|
- y: 50-7/* +((restHeight)*0.5-(restHeight)*0.5*0.84)/2 */,//or 50
|
|
|
+ y: 50-17/* +((restHeight)*0.5-(restHeight)*0.5*0.84)/2 */,//or 50
|
|
|
}, {
|
|
|
position: 3,
|
|
|
width: 100*0.5,
|
|
|
- height: (restHeight)*0.5*0.84,
|
|
|
+ height: (restHeight)*0.4*0.84,
|
|
|
x: 50,//or 50
|
|
|
y: ((restHeight)*0.5-(restHeight)*0.5*0.84)/2
|
|
|
}, {
|
|
|
position: 4,
|
|
|
width: 100*0.5,
|
|
|
- height: (restHeight)*0.5*0.84,
|
|
|
+ height: (restHeight)*0.6*0.9,
|
|
|
x: 50,
|
|
|
- y: 50-7/* +((restHeight)*0.5-(restHeight)*0.5*0.84)/2 */,//or 50
|
|
|
+ y: 50-17/* +((restHeight)*0.5-(restHeight)*0.5*0.84)/2 */,//or 50
|
|
|
}]
|
|
|
},
|
|
|
{
|
|
@@ -445,33 +458,33 @@ export const modelConfig = [{
|
|
|
elements:[{
|
|
|
position:1,
|
|
|
width:50,
|
|
|
- height:(restHeight)*0.40*0.9,
|
|
|
+ height:(restHeight)*0.35*0.9,
|
|
|
x:0,
|
|
|
- y:(restHeight*0.4*0.1)/2
|
|
|
+ y:(restHeight*0.35*0.1)/2
|
|
|
},{
|
|
|
position:2,
|
|
|
width:50,
|
|
|
- height:(restHeight)*0.40*0.9,
|
|
|
+ height:(restHeight)*0.35*0.9,
|
|
|
x:50,
|
|
|
- y:(restHeight*0.4*0.1)/2
|
|
|
+ y:(restHeight*0.35*0.1)/2
|
|
|
},{
|
|
|
position:3,
|
|
|
width:50,
|
|
|
- height:(restHeight)*0.40*0.9,
|
|
|
+ height:(restHeight)*0.35*0.9,
|
|
|
x:0,
|
|
|
- y:38
|
|
|
+ y:34
|
|
|
},{
|
|
|
position:4,
|
|
|
width:50,
|
|
|
- height:(restHeight)*0.40*0.9,
|
|
|
+ height:(restHeight)*0.35*0.9,
|
|
|
x:50,
|
|
|
- y:38
|
|
|
+ y:34
|
|
|
},{
|
|
|
position:5,
|
|
|
- width:100*0.9,
|
|
|
- height:(restHeight)*0.18*0.8,
|
|
|
+ width:100*0.95,
|
|
|
+ height:(restHeight)*0.28*0.8,
|
|
|
x:0,
|
|
|
- y:74
|
|
|
+ y:64
|
|
|
}]
|
|
|
},{
|
|
|
modelId:10,
|
|
@@ -539,7 +552,29 @@ export const modelConfig = [{
|
|
|
x:0,
|
|
|
y:(restHeight)*0.5
|
|
|
}]
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ modelId: 14,
|
|
|
+ elements: [{
|
|
|
+ position: 1,
|
|
|
+ width: 100*0.4,
|
|
|
+ height: (restHeight)*0.65*0.84,
|
|
|
+ x: 0,
|
|
|
+ y: ((restHeight)*0.5-(restHeight)*0.5*0.84)/2
|
|
|
+ }, {
|
|
|
+ position: 2,
|
|
|
+ width: 100*0.4,
|
|
|
+ height: (restHeight)*0.35*0.84,
|
|
|
+ x: 0,
|
|
|
+ y: 52/* +((restHeight)*0.5-(restHeight)*0.5*0.84)/2 */,//or 50
|
|
|
+ }, {
|
|
|
+ position: 3,
|
|
|
+ width: 100*0.6,
|
|
|
+ height: (restHeight)*0.9,
|
|
|
+ x: 40,
|
|
|
+ y: ((restHeight)-(restHeight)*0.9)/2
|
|
|
+ }]
|
|
|
+ },
|
|
|
]
|
|
|
//ppt母版
|
|
|
export const pptSlideMaster = {
|
|
@@ -830,7 +865,12 @@ export const defaultPosition = {
|
|
|
13:{
|
|
|
1:{type:'chart'},
|
|
|
2:{type:'chart'}
|
|
|
- }
|
|
|
+ },
|
|
|
+ 14:{
|
|
|
+ 1:{type:'chart'},
|
|
|
+ 2:{type:'text'},
|
|
|
+ 3:{type:'text'}
|
|
|
+ },
|
|
|
}
|
|
|
//画笔工具栏
|
|
|
export const boardTool = [
|