Skip to content

Commit c63eb47

Browse files
author
lusen
committed
fix:增加模版
1 parent a33e396 commit c63eb47

File tree

1 file changed

+64
-13
lines changed

1 file changed

+64
-13
lines changed

module3.js

+64-13
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,45 @@
647647
// }
648648
// }
649649

650+
// const json = {
651+
// "moduleId": 'default',
652+
// "name": "默认模版",
653+
// "canvas": {
654+
// "width": 696,
655+
// "height": 880
656+
// },
657+
// "config": {
658+
// "font": {
659+
// "fontStyle": "normal",
660+
// "fontWeight": 900,
661+
// "fontSize": "80px",
662+
// "fontFamily": "SimSun, Songti SC"
663+
// },
664+
// "contents": [
665+
// {
666+
// "text": "北欧卧室",
667+
// "fillStyle": "#FFFFFF",
668+
// "textAlign": "center",
669+
// "shadowOffsetX": 4,
670+
// "shadowOffsetY": 2,
671+
// "shadowBlur": 10,
672+
// "shadowColor": "#1343DB",
673+
// "position": {
674+
// "left": 0,
675+
// "right": 0,
676+
// "top": 550
677+
// }
678+
// }
679+
// ],
680+
// "effects": [
681+
// {
682+
// "strokeStyle": "#1343DB",
683+
// "lineWidth": 2
684+
// }
685+
// ]
686+
// }
687+
// }
688+
650689
const json = {
651690
"moduleId": 'default',
652691
"name": "默认模版",
@@ -663,24 +702,36 @@ const json = {
663702
},
664703
"contents": [
665704
{
666-
"text": "北欧卧室",
667-
"fillStyle": "#FFFFFF",
705+
"text": "纯色韩版防滑",
706+
"fillStyle": "#FCD258",
668707
"textAlign": "center",
669-
"shadowOffsetX": 4,
670-
"shadowOffsetY": 2,
671-
"shadowBlur": 10,
672-
"shadowColor": "#1343DB",
673708
"position": {
674709
"left": 0,
675710
"right": 0,
676-
"top": 550
677-
}
678-
}
679-
],
680-
"effects": [
711+
"top": 140
712+
},
713+
"effects": [
714+
{
715+
"strokeStyle": "#000000",
716+
"lineWidth": 4
717+
}
718+
]
719+
},
681720
{
682-
"strokeStyle": "#1343DB",
683-
"lineWidth": 2
721+
"text": "家用家居棉鞋",
722+
"fillStyle": "#ffffff",
723+
"textAlign": "center",
724+
"position": {
725+
"left": 0,
726+
"right": 0,
727+
"top": 615
728+
},
729+
"effects": [
730+
{
731+
"strokeStyle": "#000000",
732+
"lineWidth": 4
733+
}
734+
]
684735
}
685736
]
686737
}

0 commit comments

Comments
 (0)