Skip to content

Commit 66d287d

Browse files
committed
Modify block structure
1 parent 868cbb0 commit 66d287d

File tree

3 files changed

+66
-25
lines changed

3 files changed

+66
-25
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "New block",
3+
"left": 0,
4+
"top": 0,
5+
"width": "100%",
6+
"height": "100%",
7+
"background": "",
8+
"border": "",
9+
"borderRadius": "",
10+
"fontFamily": "",
11+
"fontSize": 50,
12+
"fontWeight": "",
13+
"fontStyle": "",
14+
"fontColor": "",
15+
"textAlign": "",
16+
"textMarginLeft": "",
17+
"textMarginTop": ""
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
"name",
3+
"left",
4+
"top",
5+
"width",
6+
"height",
7+
"background",
8+
"border",
9+
"borderRadius",
10+
"fontFamily",
11+
"fontSize",
12+
"fontWeight",
13+
"fontStyle",
14+
"fontColor",
15+
"textAlign",
16+
"textMarginLeft",
17+
"textMarginTop"
18+
]

iwsy/resources/json/test.json

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"blocks": {
3-
"center title": {
2+
"blocks": [
3+
{
4+
"name": "center title",
45
"background": "",
56
"border": "",
67
"borderRadius": "",
@@ -17,24 +18,26 @@
1718
"top": 300,
1819
"width": "100%"
1920
},
20-
"main content": {
21+
{
22+
"name": "top title",
2123
"background": "",
2224
"border": "",
2325
"borderRadius": "",
24-
"fontColor": "yellow",
26+
"fontColor": "#ffffff",
2527
"fontFamily": "",
2628
"fontSize": 50,
2729
"fontStyle": "",
2830
"fontWeight": "",
29-
"height": 800,
30-
"left": 50,
31-
"textAlign": "",
32-
"textMarginLeft": 10,
31+
"height": 300,
32+
"left": 0,
33+
"textAlign": "center",
34+
"textMarginLeft": "",
3335
"textMarginTop": "",
34-
"top": 300,
36+
"top": 50,
3537
"width": "100%"
3638
},
37-
"left": {
39+
{
40+
"name": "main content",
3841
"background": "",
3942
"border": "",
4043
"borderRadius": "",
@@ -43,15 +46,16 @@
4346
"fontSize": 50,
4447
"fontStyle": "",
4548
"fontWeight": "",
46-
"height": 700,
49+
"height": 800,
4750
"left": 50,
4851
"textAlign": "",
4952
"textMarginLeft": 10,
5053
"textMarginTop": "",
5154
"top": 300,
52-
"width": 400
55+
"width": "100%"
5356
},
54-
"right": {
57+
{
58+
"name": "left",
5559
"background": "",
5660
"border": "",
5761
"borderRadius": "",
@@ -61,35 +65,36 @@
6165
"fontStyle": "",
6266
"fontWeight": "",
6367
"height": 700,
64-
"left": 550,
68+
"left": 50,
6569
"textAlign": "",
66-
"textMarginLeft": "",
70+
"textMarginLeft": 10,
6771
"textMarginTop": "",
6872
"top": 300,
6973
"width": 400
7074
},
71-
"top title": {
75+
{
76+
"name": "right",
7277
"background": "",
7378
"border": "",
7479
"borderRadius": "",
75-
"fontColor": "#ffffff",
80+
"fontColor": "yellow",
7681
"fontFamily": "",
7782
"fontSize": 50,
7883
"fontStyle": "",
7984
"fontWeight": "",
80-
"height": 300,
81-
"left": 0,
82-
"textAlign": "center",
85+
"height": 700,
86+
"left": 550,
87+
"textAlign": "",
8388
"textMarginLeft": "",
8489
"textMarginTop": "",
85-
"top": 50,
86-
"width": "100%"
90+
"top": 300,
91+
"width": 400
8792
}
88-
},
93+
],
8994
"content": {
9095
"main title": "# I Wanna Show You%0a%0a### for knockout presentations",
91-
"page 1 left": "### PowerPoint%0a%0a - is slide-based%0a - is a PC application%0a - is hard to embed%0a%0aPowerPoint is a dated product organized mainly around static text blocks and tied to the desktop.",
92-
"page 1 right": "### I Wanna Show You%0a - is step based%0a - runs in your browser%0a - is fully embeddable%0a%0aIWannaShowYou is a modern product built to handle color, movement and a mobile environment."
96+
"page 1 left": "### PowerPoint%0a%0a - is slide-based%0a - is a PC application%0a - is hard to embed%0a%0aPowerPoint is organized mainly around static text blocks and tied to the desktop.",
97+
"page 1 right": "### I Wanna Show You%0a - is step based%0a - runs in your browser%0a - is fully embeddable%0a%0aIWannaShowYou is a modern product built to handle color, movement and the online world."
9398
},
9499
"steps": [
95100
{

0 commit comments

Comments
 (0)