@twinfinity/printing 5.0.3-ci.28538-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +208 -0
- package/dist/BuildInfo.d.ts +25 -0
- package/dist/BuildInfo.d.ts.map +1 -0
- package/dist/BuildInfo.js +15 -0
- package/dist/BuildInfo.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/analyzeTemplate.d.ts +29 -0
- package/dist/layout/analyzeTemplate.d.ts.map +1 -0
- package/dist/layout/analyzeTemplate.js +168 -0
- package/dist/layout/analyzeTemplate.js.map +1 -0
- package/dist/layout/clipUtils.d.ts +18 -0
- package/dist/layout/clipUtils.d.ts.map +1 -0
- package/dist/layout/clipUtils.js +165 -0
- package/dist/layout/clipUtils.js.map +1 -0
- package/dist/layout/colorConstants.d.ts +11 -0
- package/dist/layout/colorConstants.d.ts.map +1 -0
- package/dist/layout/colorConstants.js +14 -0
- package/dist/layout/colorConstants.js.map +1 -0
- package/dist/layout/elementKinds.d.ts +21 -0
- package/dist/layout/elementKinds.d.ts.map +1 -0
- package/dist/layout/elementKinds.js +17 -0
- package/dist/layout/elementKinds.js.map +1 -0
- package/dist/layout/exportDrawing.d.ts +143 -0
- package/dist/layout/exportDrawing.d.ts.map +1 -0
- package/dist/layout/exportDrawing.js +146 -0
- package/dist/layout/exportDrawing.js.map +1 -0
- package/dist/layout/filters.d.ts +33 -0
- package/dist/layout/filters.d.ts.map +1 -0
- package/dist/layout/filters.js +77 -0
- package/dist/layout/filters.js.map +1 -0
- package/dist/layout/geometryConstants.d.ts +8 -0
- package/dist/layout/geometryConstants.d.ts.map +1 -0
- package/dist/layout/geometryConstants.js +10 -0
- package/dist/layout/geometryConstants.js.map +1 -0
- package/dist/layout/index.d.ts +86 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.js +363 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/itemBuilders.d.ts +29 -0
- package/dist/layout/itemBuilders.d.ts.map +1 -0
- package/dist/layout/itemBuilders.js +135 -0
- package/dist/layout/itemBuilders.js.map +1 -0
- package/dist/layout/labelsRender.d.ts +29 -0
- package/dist/layout/labelsRender.d.ts.map +1 -0
- package/dist/layout/labelsRender.js +109 -0
- package/dist/layout/labelsRender.js.map +1 -0
- package/dist/layout/legendConstants.d.ts +12 -0
- package/dist/layout/legendConstants.d.ts.map +1 -0
- package/dist/layout/legendConstants.js +12 -0
- package/dist/layout/legendConstants.js.map +1 -0
- package/dist/layout/legendRender.d.ts +13 -0
- package/dist/layout/legendRender.d.ts.map +1 -0
- package/dist/layout/legendRender.js +424 -0
- package/dist/layout/legendRender.js.map +1 -0
- package/dist/layout/legendRows.d.ts +26 -0
- package/dist/layout/legendRows.d.ts.map +1 -0
- package/dist/layout/legendRows.js +45 -0
- package/dist/layout/legendRows.js.map +1 -0
- package/dist/layout/legendUtils.d.ts +21 -0
- package/dist/layout/legendUtils.d.ts.map +1 -0
- package/dist/layout/legendUtils.js +110 -0
- package/dist/layout/legendUtils.js.map +1 -0
- package/dist/layout/metadata.d.ts +43 -0
- package/dist/layout/metadata.d.ts.map +1 -0
- package/dist/layout/metadata.js +191 -0
- package/dist/layout/metadata.js.map +1 -0
- package/dist/layout/model.d.ts +15 -0
- package/dist/layout/model.d.ts.map +1 -0
- package/dist/layout/model.js +310 -0
- package/dist/layout/model.js.map +1 -0
- package/dist/layout/options.d.ts +17 -0
- package/dist/layout/options.d.ts.map +1 -0
- package/dist/layout/options.js +2 -0
- package/dist/layout/options.js.map +1 -0
- package/dist/layout/presets.d.ts +23 -0
- package/dist/layout/presets.d.ts.map +1 -0
- package/dist/layout/presets.js +41 -0
- package/dist/layout/presets.js.map +1 -0
- package/dist/layout/qrRender.d.ts +13 -0
- package/dist/layout/qrRender.d.ts.map +1 -0
- package/dist/layout/qrRender.js +97 -0
- package/dist/layout/qrRender.js.map +1 -0
- package/dist/layout/renderDrawing.d.ts +62 -0
- package/dist/layout/renderDrawing.d.ts.map +1 -0
- package/dist/layout/renderDrawing.js +555 -0
- package/dist/layout/renderDrawing.js.map +1 -0
- package/dist/layout/renderUtils.d.ts +36 -0
- package/dist/layout/renderUtils.d.ts.map +1 -0
- package/dist/layout/renderUtils.js +117 -0
- package/dist/layout/renderUtils.js.map +1 -0
- package/dist/layout/sectionValidation.d.ts +3 -0
- package/dist/layout/sectionValidation.d.ts.map +1 -0
- package/dist/layout/sectionValidation.js +2 -0
- package/dist/layout/sectionValidation.js.map +1 -0
- package/dist/layout/templateVariables.d.ts +137 -0
- package/dist/layout/templateVariables.d.ts.map +1 -0
- package/dist/layout/templateVariables.js +295 -0
- package/dist/layout/templateVariables.js.map +1 -0
- package/dist/layout/typeGuards.d.ts +5 -0
- package/dist/layout/typeGuards.d.ts.map +1 -0
- package/dist/layout/typeGuards.js +9 -0
- package/dist/layout/typeGuards.js.map +1 -0
- package/dist/layout/types.d.ts +816 -0
- package/dist/layout/types.d.ts.map +1 -0
- package/dist/layout/types.js +2 -0
- package/dist/layout/types.js.map +1 -0
- package/dist/layout/utils.d.ts +9 -0
- package/dist/layout/utils.d.ts.map +1 -0
- package/dist/layout/utils.js +84 -0
- package/dist/layout/utils.js.map +1 -0
- package/dist/layout/validation.d.ts +7 -0
- package/dist/layout/validation.d.ts.map +1 -0
- package/dist/layout/validation.js +352 -0
- package/dist/layout/validation.js.map +1 -0
- package/dist/layout/validationHelpers.d.ts +15 -0
- package/dist/layout/validationHelpers.d.ts.map +1 -0
- package/dist/layout/validationHelpers.js +43 -0
- package/dist/layout/validationHelpers.js.map +1 -0
- package/dist/layout/validationUtils.d.ts +5 -0
- package/dist/layout/validationUtils.d.ts.map +1 -0
- package/dist/layout/validationUtils.js +5 -0
- package/dist/layout/validationUtils.js.map +1 -0
- package/dist/layout/viewportPrep.d.ts +47 -0
- package/dist/layout/viewportPrep.d.ts.map +1 -0
- package/dist/layout/viewportPrep.js +275 -0
- package/dist/layout/viewportPrep.js.map +1 -0
- package/dist/layout/viewportRender.d.ts +42 -0
- package/dist/layout/viewportRender.d.ts.map +1 -0
- package/dist/layout/viewportRender.js +337 -0
- package/dist/layout/viewportRender.js.map +1 -0
- package/dist/layout/viewportUtils.d.ts +9 -0
- package/dist/layout/viewportUtils.d.ts.map +1 -0
- package/dist/layout/viewportUtils.js +40 -0
- package/dist/layout/viewportUtils.js.map +1 -0
- package/dist/layout/warnings.d.ts +2 -0
- package/dist/layout/warnings.d.ts.map +1 -0
- package/dist/layout/warnings.js +4 -0
- package/dist/layout/warnings.js.map +1 -0
- package/dist/printToPdf.d.ts +38 -0
- package/dist/printToPdf.d.ts.map +1 -0
- package/dist/printToPdf.js +79 -0
- package/dist/printToPdf.js.map +1 -0
- package/dist/printToSvg.d.ts +11 -0
- package/dist/printToSvg.d.ts.map +1 -0
- package/dist/printToSvg.js +168 -0
- package/dist/printToSvg.js.map +1 -0
- package/dist/sections.d.ts +118 -0
- package/dist/sections.d.ts.map +1 -0
- package/dist/sections.js +839 -0
- package/dist/sections.js.map +1 -0
- package/dist/templates/default-template.json +137 -0
- package/dist/types.d.ts +54 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -0
- package/package.json +47 -0
- package/src/BuildInfo.ts +41 -0
- package/src/index.ts +10 -0
- package/src/layout/analyzeTemplate.ts +218 -0
- package/src/layout/clipUtils.ts +193 -0
- package/src/layout/colorConstants.ts +16 -0
- package/src/layout/elementKinds.ts +35 -0
- package/src/layout/exportDrawing.ts +206 -0
- package/src/layout/filters.ts +80 -0
- package/src/layout/geometryConstants.ts +11 -0
- package/src/layout/index.ts +671 -0
- package/src/layout/itemBuilders.ts +159 -0
- package/src/layout/labelsRender.ts +170 -0
- package/src/layout/legendConstants.ts +11 -0
- package/src/layout/legendRender.ts +543 -0
- package/src/layout/legendRows.ts +62 -0
- package/src/layout/legendUtils.ts +144 -0
- package/src/layout/metadata.ts +210 -0
- package/src/layout/model.ts +372 -0
- package/src/layout/options.ts +17 -0
- package/src/layout/presets.ts +51 -0
- package/src/layout/qrRender.ts +126 -0
- package/src/layout/qrcode.d.ts +2 -0
- package/src/layout/renderDrawing.ts +710 -0
- package/src/layout/renderUtils.ts +138 -0
- package/src/layout/sectionValidation.ts +2 -0
- package/src/layout/templateVariables.ts +317 -0
- package/src/layout/typeGuards.ts +9 -0
- package/src/layout/types.ts +835 -0
- package/src/layout/utils.ts +85 -0
- package/src/layout/validation.ts +392 -0
- package/src/layout/validationHelpers.ts +59 -0
- package/src/layout/validationUtils.ts +6 -0
- package/src/layout/viewportPrep.ts +351 -0
- package/src/layout/viewportRender.ts +442 -0
- package/src/layout/viewportUtils.ts +50 -0
- package/src/layout/warnings.ts +3 -0
- package/src/printToPdf.ts +108 -0
- package/src/printToSvg.ts +188 -0
- package/src/sections.ts +1019 -0
- package/src/templates/default-template.json +137 -0
- package/src/types.ts +49 -0
- package/templates/default-a0-landscape.json +209 -0
- package/templates/default-a0-portrait.json +195 -0
- package/templates/default-a1-landscape.json +167 -0
- package/templates/default-a1-portrait.json +153 -0
- package/templates/default-a3-landscape.json +111 -0
- package/templates/default-a3-portrait.json +125 -0
- package/templates/default-a4-landscape.json +97 -0
- package/templates/default-a4-portrait.json +97 -0
- package/templates/template-schema.json +1395 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./template-schema.json",
|
|
3
|
+
"id": "default-a1-landscape",
|
|
4
|
+
"presets": {
|
|
5
|
+
"includeClasses": {
|
|
6
|
+
"defaultBuilding": ["space", "walls", "windows", "doors", "beam", "columns", "stairs", "floor"]
|
|
7
|
+
},
|
|
8
|
+
"scales": {
|
|
9
|
+
"default": { "preferredScales": [2, 10, 25, 50, 100, 150, 250, 500, 1000, 2500] }
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"page": { "widthMm": 841, "heightMm": 594, "marginMm": 5, "backgroundColor": "#ffffff" },
|
|
13
|
+
"styles": {
|
|
14
|
+
"body": { "fontFamily": "Arial", "fontSizeMm": 3.5, "color": "#000000" },
|
|
15
|
+
"spaceLabels": { "fontFamily": "Arial", "fontSizeMm": 5, "color": "#000000" }
|
|
16
|
+
},
|
|
17
|
+
"allowRemoteAssets": true,
|
|
18
|
+
"assets": [
|
|
19
|
+
{ "id": "logo-main", "src": "https://twinfinity.com/theme-assets/logo.svg" }
|
|
20
|
+
],
|
|
21
|
+
"elements": [
|
|
22
|
+
{
|
|
23
|
+
"kind": "image",
|
|
24
|
+
"id": "logo-top-left",
|
|
25
|
+
"xMm": 7,
|
|
26
|
+
"yMm": 7,
|
|
27
|
+
"widthMm": 40,
|
|
28
|
+
"heightMm": 10,
|
|
29
|
+
"assetId": "logo-main",
|
|
30
|
+
"fit": "contain"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "rect",
|
|
34
|
+
"id": "page-frame",
|
|
35
|
+
"xMm": 5,
|
|
36
|
+
"yMm": 5,
|
|
37
|
+
"widthMm": 831,
|
|
38
|
+
"heightMm": 584,
|
|
39
|
+
"stroke": "#000",
|
|
40
|
+
"strokeWidthMm": 0.25,
|
|
41
|
+
"fill": "none"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "viewport",
|
|
45
|
+
"id": "main",
|
|
46
|
+
"xMm": 5,
|
|
47
|
+
"yMm": 20,
|
|
48
|
+
"widthMm": 831,
|
|
49
|
+
"heightMm": 547,
|
|
50
|
+
"includeClasses": { "preset": "defaultBuilding" },
|
|
51
|
+
"scaleMode": "fitAndRound",
|
|
52
|
+
"scalePreset": "default",
|
|
53
|
+
"align": "center",
|
|
54
|
+
"rotationDeg": 0,
|
|
55
|
+
"fills": [{ "class": "space", "fill": "sample", "fillOpacity": 0.35 }],
|
|
56
|
+
"lineStyles": {
|
|
57
|
+
"default": { "widthMm": 0.01, "color": "#1f2937" },
|
|
58
|
+
"visibleLines": { "widthMm": 0.01, "color": "#1f2937" },
|
|
59
|
+
"hiddenLines": { "widthMm": 0.005, "color": "#9ca3af", "dash": "4 2" },
|
|
60
|
+
"stairArrows": { "widthMm": 0.015, "color": "#1f2937" }
|
|
61
|
+
},
|
|
62
|
+
"border": { "stroke": "none", "strokeWidthMm": 0.25 }
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "text",
|
|
66
|
+
"id": "scale-text-main",
|
|
67
|
+
"xMm": 420.5,
|
|
68
|
+
"yMm": 572,
|
|
69
|
+
"textStyle": "body",
|
|
70
|
+
"align": "center",
|
|
71
|
+
"text": "Scale: {{viewport.main.scaleText}}"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"kind": "scaleBar",
|
|
75
|
+
"id": "scale-bar-main",
|
|
76
|
+
"viewport": "main",
|
|
77
|
+
"xMm": 320.5,
|
|
78
|
+
"yMm": 582,
|
|
79
|
+
"maxLengthMm": 200,
|
|
80
|
+
"unit": "m",
|
|
81
|
+
"segments": 10,
|
|
82
|
+
"labelEvery": 2,
|
|
83
|
+
"stroke": "#000",
|
|
84
|
+
"strokeWidthMm": 0.25,
|
|
85
|
+
"textStyle": "body"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "labels",
|
|
89
|
+
"id": "room-labels",
|
|
90
|
+
"viewport": "main",
|
|
91
|
+
"class": "space",
|
|
92
|
+
"text": "{{BIP.spacename}}",
|
|
93
|
+
"textStyle": "spaceLabels",
|
|
94
|
+
"align": "center"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "line",
|
|
98
|
+
"id": "fold-v-61-top",
|
|
99
|
+
"x1Mm": 61, "y1Mm": 2,
|
|
100
|
+
"x2Mm": 61, "y2Mm": 8,
|
|
101
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"kind": "line",
|
|
105
|
+
"id": "fold-v-61-bottom",
|
|
106
|
+
"x1Mm": 61, "y1Mm": 581,
|
|
107
|
+
"x2Mm": 61, "y2Mm": 587,
|
|
108
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "line",
|
|
112
|
+
"id": "fold-v-251-top",
|
|
113
|
+
"x1Mm": 251, "y1Mm": 2,
|
|
114
|
+
"x2Mm": 251, "y2Mm": 8,
|
|
115
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"kind": "line",
|
|
119
|
+
"id": "fold-v-251-bottom",
|
|
120
|
+
"x1Mm": 251, "y1Mm": 581,
|
|
121
|
+
"x2Mm": 251, "y2Mm": 587,
|
|
122
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"kind": "line",
|
|
126
|
+
"id": "fold-v-441-top",
|
|
127
|
+
"x1Mm": 441, "y1Mm": 2,
|
|
128
|
+
"x2Mm": 441, "y2Mm": 8,
|
|
129
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "line",
|
|
133
|
+
"id": "fold-v-441-bottom",
|
|
134
|
+
"x1Mm": 441, "y1Mm": 581,
|
|
135
|
+
"x2Mm": 441, "y2Mm": 587,
|
|
136
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"kind": "line",
|
|
140
|
+
"id": "fold-v-631-top",
|
|
141
|
+
"x1Mm": 631, "y1Mm": 2,
|
|
142
|
+
"x2Mm": 631, "y2Mm": 8,
|
|
143
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"kind": "line",
|
|
147
|
+
"id": "fold-v-631-bottom",
|
|
148
|
+
"x1Mm": 631, "y1Mm": 581,
|
|
149
|
+
"x2Mm": 631, "y2Mm": 587,
|
|
150
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"kind": "line",
|
|
154
|
+
"id": "fold-h-297-left",
|
|
155
|
+
"x1Mm": 2, "y1Mm": 297,
|
|
156
|
+
"x2Mm": 8, "y2Mm": 297,
|
|
157
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"kind": "line",
|
|
161
|
+
"id": "fold-h-297-right",
|
|
162
|
+
"x1Mm": 828, "y1Mm": 297,
|
|
163
|
+
"x2Mm": 834, "y2Mm": 297,
|
|
164
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./template-schema.json",
|
|
3
|
+
"id": "default-a1-portrait",
|
|
4
|
+
"presets": {
|
|
5
|
+
"includeClasses": {
|
|
6
|
+
"defaultBuilding": ["space", "walls", "windows", "doors", "beam", "columns", "stairs", "floor"]
|
|
7
|
+
},
|
|
8
|
+
"scales": {
|
|
9
|
+
"default": { "preferredScales": [2, 10, 25, 50, 100, 150, 250, 500, 1000, 2500] }
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"page": { "widthMm": 594, "heightMm": 841, "marginMm": 5, "backgroundColor": "#ffffff" },
|
|
13
|
+
"styles": {
|
|
14
|
+
"body": { "fontFamily": "Arial", "fontSizeMm": 3.5, "color": "#000000" },
|
|
15
|
+
"spaceLabels": { "fontFamily": "Arial", "fontSizeMm": 5, "color": "#000000" }
|
|
16
|
+
},
|
|
17
|
+
"allowRemoteAssets": true,
|
|
18
|
+
"assets": [
|
|
19
|
+
{ "id": "logo-main", "src": "https://twinfinity.com/theme-assets/logo.svg" }
|
|
20
|
+
],
|
|
21
|
+
"elements": [
|
|
22
|
+
{
|
|
23
|
+
"kind": "image",
|
|
24
|
+
"id": "logo-top-left",
|
|
25
|
+
"xMm": 7,
|
|
26
|
+
"yMm": 7,
|
|
27
|
+
"widthMm": 40,
|
|
28
|
+
"heightMm": 10,
|
|
29
|
+
"assetId": "logo-main",
|
|
30
|
+
"fit": "contain"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "rect",
|
|
34
|
+
"id": "page-frame",
|
|
35
|
+
"xMm": 5,
|
|
36
|
+
"yMm": 5,
|
|
37
|
+
"widthMm": 584,
|
|
38
|
+
"heightMm": 831,
|
|
39
|
+
"stroke": "#000",
|
|
40
|
+
"strokeWidthMm": 0.25,
|
|
41
|
+
"fill": "none"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "viewport",
|
|
45
|
+
"id": "main",
|
|
46
|
+
"xMm": 5,
|
|
47
|
+
"yMm": 20,
|
|
48
|
+
"widthMm": 584,
|
|
49
|
+
"heightMm": 794,
|
|
50
|
+
"includeClasses": { "preset": "defaultBuilding" },
|
|
51
|
+
"scaleMode": "fitAndRound",
|
|
52
|
+
"scalePreset": "default",
|
|
53
|
+
"align": "center",
|
|
54
|
+
"rotationDeg": 0,
|
|
55
|
+
"fills": [{ "class": "space", "fill": "sample", "fillOpacity": 0.35 }],
|
|
56
|
+
"lineStyles": {
|
|
57
|
+
"default": { "widthMm": 0.01, "color": "#1f2937" },
|
|
58
|
+
"visibleLines": { "widthMm": 0.01, "color": "#1f2937" },
|
|
59
|
+
"hiddenLines": { "widthMm": 0.005, "color": "#9ca3af", "dash": "4 2" },
|
|
60
|
+
"stairArrows": { "widthMm": 0.015, "color": "#1f2937" }
|
|
61
|
+
},
|
|
62
|
+
"border": { "stroke": "none", "strokeWidthMm": 0.25 }
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "text",
|
|
66
|
+
"id": "scale-text-main",
|
|
67
|
+
"xMm": 297,
|
|
68
|
+
"yMm": 819,
|
|
69
|
+
"textStyle": "body",
|
|
70
|
+
"align": "center",
|
|
71
|
+
"text": "Scale: {{viewport.main.scaleText}}"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"kind": "scaleBar",
|
|
75
|
+
"id": "scale-bar-main",
|
|
76
|
+
"viewport": "main",
|
|
77
|
+
"xMm": 222,
|
|
78
|
+
"yMm": 829,
|
|
79
|
+
"maxLengthMm": 150,
|
|
80
|
+
"unit": "m",
|
|
81
|
+
"segments": 10,
|
|
82
|
+
"labelEvery": 2,
|
|
83
|
+
"stroke": "#000",
|
|
84
|
+
"strokeWidthMm": 0.25,
|
|
85
|
+
"textStyle": "body"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "labels",
|
|
89
|
+
"id": "room-labels",
|
|
90
|
+
"viewport": "main",
|
|
91
|
+
"class": "space",
|
|
92
|
+
"text": "{{BIP.spacename}}",
|
|
93
|
+
"textStyle": "spaceLabels",
|
|
94
|
+
"align": "center"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "line",
|
|
98
|
+
"id": "fold-v-194-top",
|
|
99
|
+
"x1Mm": 194, "y1Mm": 2,
|
|
100
|
+
"x2Mm": 194, "y2Mm": 8,
|
|
101
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"kind": "line",
|
|
105
|
+
"id": "fold-v-194-bottom",
|
|
106
|
+
"x1Mm": 194, "y1Mm": 828,
|
|
107
|
+
"x2Mm": 194, "y2Mm": 834,
|
|
108
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "line",
|
|
112
|
+
"id": "fold-v-384-top",
|
|
113
|
+
"x1Mm": 384, "y1Mm": 2,
|
|
114
|
+
"x2Mm": 384, "y2Mm": 8,
|
|
115
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"kind": "line",
|
|
119
|
+
"id": "fold-v-384-bottom",
|
|
120
|
+
"x1Mm": 384, "y1Mm": 828,
|
|
121
|
+
"x2Mm": 384, "y2Mm": 834,
|
|
122
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"kind": "line",
|
|
126
|
+
"id": "fold-h-247-left",
|
|
127
|
+
"x1Mm": 2, "y1Mm": 247,
|
|
128
|
+
"x2Mm": 8, "y2Mm": 247,
|
|
129
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "line",
|
|
133
|
+
"id": "fold-h-247-right",
|
|
134
|
+
"x1Mm": 581, "y1Mm": 247,
|
|
135
|
+
"x2Mm": 587, "y2Mm": 247,
|
|
136
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"kind": "line",
|
|
140
|
+
"id": "fold-h-544-left",
|
|
141
|
+
"x1Mm": 2, "y1Mm": 544,
|
|
142
|
+
"x2Mm": 8, "y2Mm": 544,
|
|
143
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"kind": "line",
|
|
147
|
+
"id": "fold-h-544-right",
|
|
148
|
+
"x1Mm": 581, "y1Mm": 544,
|
|
149
|
+
"x2Mm": 587, "y2Mm": 544,
|
|
150
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./template-schema.json",
|
|
3
|
+
"id": "default-a3-landscape",
|
|
4
|
+
"presets": {
|
|
5
|
+
"includeClasses": {
|
|
6
|
+
"defaultBuilding": ["space", "walls", "windows", "doors", "beam", "columns", "stairs", "floor"]
|
|
7
|
+
},
|
|
8
|
+
"scales": {
|
|
9
|
+
"default": { "preferredScales": [2, 10, 25, 50, 100, 150, 250, 500, 1000, 2500] }
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"page": { "widthMm": 420, "heightMm": 297, "marginMm": 5, "backgroundColor": "#ffffff" },
|
|
13
|
+
"styles": {
|
|
14
|
+
"body": { "fontFamily": "Arial", "fontSizeMm": 3.5, "color": "#000000" },
|
|
15
|
+
"spaceLabels": { "fontFamily": "Arial", "fontSizeMm": 5, "color": "#000000" }
|
|
16
|
+
},
|
|
17
|
+
"allowRemoteAssets": true,
|
|
18
|
+
"assets": [
|
|
19
|
+
{ "id": "logo-main", "src": "https://twinfinity.com/theme-assets/logo.svg" }
|
|
20
|
+
],
|
|
21
|
+
"elements": [
|
|
22
|
+
{
|
|
23
|
+
"kind": "image",
|
|
24
|
+
"id": "logo-top-left",
|
|
25
|
+
"xMm": 7,
|
|
26
|
+
"yMm": 7,
|
|
27
|
+
"widthMm": 40,
|
|
28
|
+
"heightMm": 10,
|
|
29
|
+
"assetId": "logo-main",
|
|
30
|
+
"fit": "contain"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "rect",
|
|
34
|
+
"id": "page-frame",
|
|
35
|
+
"xMm": 5,
|
|
36
|
+
"yMm": 5,
|
|
37
|
+
"widthMm": 410,
|
|
38
|
+
"heightMm": 287,
|
|
39
|
+
"stroke": "#000",
|
|
40
|
+
"strokeWidthMm": 0.25,
|
|
41
|
+
"fill": "none"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "viewport",
|
|
45
|
+
"id": "main",
|
|
46
|
+
"xMm": 5,
|
|
47
|
+
"yMm": 20,
|
|
48
|
+
"widthMm": 410,
|
|
49
|
+
"heightMm": 250,
|
|
50
|
+
"includeClasses": { "preset": "defaultBuilding" },
|
|
51
|
+
"scaleMode": "fitAndRound",
|
|
52
|
+
"scalePreset": "default",
|
|
53
|
+
"align": "center",
|
|
54
|
+
"rotationDeg": 0,
|
|
55
|
+
"fills": [{ "class": "space", "fill": "sample", "fillOpacity": 0.35 }],
|
|
56
|
+
"lineStyles": {
|
|
57
|
+
"default": { "widthMm": 0.01, "color": "#1f2937" },
|
|
58
|
+
"visibleLines": { "widthMm": 0.01, "color": "#1f2937" },
|
|
59
|
+
"hiddenLines": { "widthMm": 0.005, "color": "#9ca3af", "dash": "4 2" },
|
|
60
|
+
"stairArrows": { "widthMm": 0.015, "color": "#1f2937" }
|
|
61
|
+
},
|
|
62
|
+
"border": { "stroke": "none", "strokeWidthMm": 0.25 }
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "text",
|
|
66
|
+
"id": "scale-text-main",
|
|
67
|
+
"xMm": 210,
|
|
68
|
+
"yMm": 275,
|
|
69
|
+
"textStyle": "body",
|
|
70
|
+
"align": "center",
|
|
71
|
+
"text": "Scale: {{viewport.main.scaleText}}"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"kind": "scaleBar",
|
|
75
|
+
"id": "scale-bar-main",
|
|
76
|
+
"viewport": "main",
|
|
77
|
+
"xMm": 160,
|
|
78
|
+
"yMm": 285,
|
|
79
|
+
"maxLengthMm": 100,
|
|
80
|
+
"unit": "m",
|
|
81
|
+
"segments": 10,
|
|
82
|
+
"labelEvery": 2,
|
|
83
|
+
"stroke": "#000",
|
|
84
|
+
"strokeWidthMm": 0.25,
|
|
85
|
+
"textStyle": "body"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "labels",
|
|
89
|
+
"id": "room-labels",
|
|
90
|
+
"viewport": "main",
|
|
91
|
+
"class": "space",
|
|
92
|
+
"text": "{{BIP.spacename}}",
|
|
93
|
+
"textStyle": "spaceLabels",
|
|
94
|
+
"align": "center"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "line",
|
|
98
|
+
"id": "fold-v-210-top",
|
|
99
|
+
"x1Mm": 210, "y1Mm": 2,
|
|
100
|
+
"x2Mm": 210, "y2Mm": 8,
|
|
101
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"kind": "line",
|
|
105
|
+
"id": "fold-v-210-bottom",
|
|
106
|
+
"x1Mm": 210, "y1Mm": 284,
|
|
107
|
+
"x2Mm": 210, "y2Mm": 290,
|
|
108
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./template-schema.json",
|
|
3
|
+
"id": "default-a3-portrait",
|
|
4
|
+
"presets": {
|
|
5
|
+
"includeClasses": {
|
|
6
|
+
"defaultBuilding": ["space", "walls", "windows", "doors", "beam", "columns", "stairs", "floor"]
|
|
7
|
+
},
|
|
8
|
+
"scales": {
|
|
9
|
+
"default": { "preferredScales": [2, 10, 25, 50, 100, 150, 250, 500, 1000, 2500] }
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"page": { "widthMm": 297, "heightMm": 420, "marginMm": 5, "backgroundColor": "#ffffff" },
|
|
13
|
+
"styles": {
|
|
14
|
+
"body": { "fontFamily": "Arial", "fontSizeMm": 3.5, "color": "#000000" },
|
|
15
|
+
"spaceLabels": { "fontFamily": "Arial", "fontSizeMm": 5, "color": "#000000" }
|
|
16
|
+
},
|
|
17
|
+
"allowRemoteAssets": true,
|
|
18
|
+
"assets": [
|
|
19
|
+
{ "id": "logo-main", "src": "https://twinfinity.com/theme-assets/logo.svg" }
|
|
20
|
+
],
|
|
21
|
+
"elements": [
|
|
22
|
+
{
|
|
23
|
+
"kind": "image",
|
|
24
|
+
"id": "logo-top-left",
|
|
25
|
+
"xMm": 7,
|
|
26
|
+
"yMm": 7,
|
|
27
|
+
"widthMm": 40,
|
|
28
|
+
"heightMm": 10,
|
|
29
|
+
"assetId": "logo-main",
|
|
30
|
+
"fit": "contain"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "rect",
|
|
34
|
+
"id": "page-frame",
|
|
35
|
+
"xMm": 5,
|
|
36
|
+
"yMm": 5,
|
|
37
|
+
"widthMm": 287,
|
|
38
|
+
"heightMm": 410,
|
|
39
|
+
"stroke": "#000",
|
|
40
|
+
"strokeWidthMm": 0.25,
|
|
41
|
+
"fill": "none"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "viewport",
|
|
45
|
+
"id": "main",
|
|
46
|
+
"xMm": 5,
|
|
47
|
+
"yMm": 20,
|
|
48
|
+
"widthMm": 287,
|
|
49
|
+
"heightMm": 373,
|
|
50
|
+
"includeClasses": { "preset": "defaultBuilding" },
|
|
51
|
+
"scaleMode": "fitAndRound",
|
|
52
|
+
"scalePreset": "default",
|
|
53
|
+
"align": "center",
|
|
54
|
+
"rotationDeg": 0,
|
|
55
|
+
"fills": [{ "class": "space", "fill": "sample", "fillOpacity": 0.35 }],
|
|
56
|
+
"lineStyles": {
|
|
57
|
+
"default": { "widthMm": 0.01, "color": "#1f2937" },
|
|
58
|
+
"visibleLines": { "widthMm": 0.01, "color": "#1f2937" },
|
|
59
|
+
"hiddenLines": { "widthMm": 0.005, "color": "#9ca3af", "dash": "4 2" },
|
|
60
|
+
"stairArrows": { "widthMm": 0.015, "color": "#1f2937" }
|
|
61
|
+
},
|
|
62
|
+
"border": { "stroke": "none", "strokeWidthMm": 0.25 }
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "text",
|
|
66
|
+
"id": "scale-text-main",
|
|
67
|
+
"xMm": 148.5,
|
|
68
|
+
"yMm": 398,
|
|
69
|
+
"textStyle": "body",
|
|
70
|
+
"align": "center",
|
|
71
|
+
"text": "Scale: {{viewport.main.scaleText}}"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"kind": "scaleBar",
|
|
75
|
+
"id": "scale-bar-main",
|
|
76
|
+
"viewport": "main",
|
|
77
|
+
"xMm": 98.5,
|
|
78
|
+
"yMm": 408,
|
|
79
|
+
"maxLengthMm": 100,
|
|
80
|
+
"unit": "m",
|
|
81
|
+
"segments": 10,
|
|
82
|
+
"labelEvery": 2,
|
|
83
|
+
"stroke": "#000",
|
|
84
|
+
"strokeWidthMm": 0.25,
|
|
85
|
+
"textStyle": "body"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "labels",
|
|
89
|
+
"id": "room-labels",
|
|
90
|
+
"viewport": "main",
|
|
91
|
+
"class": "space",
|
|
92
|
+
"text": "{{BIP.spacename}}",
|
|
93
|
+
"textStyle": "spaceLabels",
|
|
94
|
+
"align": "center"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "line",
|
|
98
|
+
"id": "fold-v-87-top",
|
|
99
|
+
"x1Mm": 87, "y1Mm": 2,
|
|
100
|
+
"x2Mm": 87, "y2Mm": 8,
|
|
101
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"kind": "line",
|
|
105
|
+
"id": "fold-v-87-bottom",
|
|
106
|
+
"x1Mm": 87, "y1Mm": 407,
|
|
107
|
+
"x2Mm": 87, "y2Mm": 413,
|
|
108
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "line",
|
|
112
|
+
"id": "fold-h-123-left",
|
|
113
|
+
"x1Mm": 2, "y1Mm": 123,
|
|
114
|
+
"x2Mm": 8, "y2Mm": 123,
|
|
115
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"kind": "line",
|
|
119
|
+
"id": "fold-h-123-right",
|
|
120
|
+
"x1Mm": 284, "y1Mm": 123,
|
|
121
|
+
"x2Mm": 290, "y2Mm": 123,
|
|
122
|
+
"stroke": "#000", "strokeWidthMm": 0.2
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./template-schema.json",
|
|
3
|
+
"id": "default-a4-landscape",
|
|
4
|
+
"presets": {
|
|
5
|
+
"includeClasses": {
|
|
6
|
+
"defaultBuilding": ["space", "walls", "windows", "doors", "beam", "columns", "stairs", "floor"]
|
|
7
|
+
},
|
|
8
|
+
"scales": {
|
|
9
|
+
"default": { "preferredScales": [2, 10, 25, 50, 100, 150, 250, 500, 1000, 2500] }
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"page": { "widthMm": 297, "heightMm": 210, "marginMm": 5, "backgroundColor": "#ffffff" },
|
|
13
|
+
"styles": {
|
|
14
|
+
"body": { "fontFamily": "Arial", "fontSizeMm": 3.5, "color": "#000000" },
|
|
15
|
+
"spaceLabels": { "fontFamily": "Arial", "fontSizeMm": 5, "color": "#000000" }
|
|
16
|
+
},
|
|
17
|
+
"allowRemoteAssets": true,
|
|
18
|
+
"assets": [
|
|
19
|
+
{ "id": "logo-main", "src": "https://twinfinity.com/theme-assets/logo.svg" }
|
|
20
|
+
],
|
|
21
|
+
"elements": [
|
|
22
|
+
{
|
|
23
|
+
"kind": "image",
|
|
24
|
+
"id": "logo-top-left",
|
|
25
|
+
"xMm": 7,
|
|
26
|
+
"yMm": 7,
|
|
27
|
+
"widthMm": 40,
|
|
28
|
+
"heightMm": 10,
|
|
29
|
+
"assetId": "logo-main",
|
|
30
|
+
"fit": "contain"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "rect",
|
|
34
|
+
"id": "page-frame",
|
|
35
|
+
"xMm": 5,
|
|
36
|
+
"yMm": 5,
|
|
37
|
+
"widthMm": 287,
|
|
38
|
+
"heightMm": 200,
|
|
39
|
+
"stroke": "#000",
|
|
40
|
+
"strokeWidthMm": 0.25,
|
|
41
|
+
"fill": "none"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "viewport",
|
|
45
|
+
"id": "main",
|
|
46
|
+
"xMm": 5,
|
|
47
|
+
"yMm": 20,
|
|
48
|
+
"widthMm": 287,
|
|
49
|
+
"heightMm": 163,
|
|
50
|
+
"includeClasses": { "preset": "defaultBuilding" },
|
|
51
|
+
"scaleMode": "fitAndRound",
|
|
52
|
+
"scalePreset": "default",
|
|
53
|
+
"align": "center",
|
|
54
|
+
"rotationDeg": 0,
|
|
55
|
+
"fills": [{ "class": "space", "fill": "sample", "fillOpacity": 0.35 }],
|
|
56
|
+
"lineStyles": {
|
|
57
|
+
"default": { "widthMm": 0.01, "color": "#1f2937" },
|
|
58
|
+
"visibleLines": { "widthMm": 0.01, "color": "#1f2937" },
|
|
59
|
+
"hiddenLines": { "widthMm": 0.005, "color": "#9ca3af", "dash": "4 2" },
|
|
60
|
+
"stairArrows": { "widthMm": 0.015, "color": "#1f2937" }
|
|
61
|
+
},
|
|
62
|
+
"border": { "stroke": "none", "strokeWidthMm": 0.25 }
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "text",
|
|
66
|
+
"id": "scale-text-main",
|
|
67
|
+
"xMm": 148.5,
|
|
68
|
+
"yMm": 188,
|
|
69
|
+
"textStyle": "body",
|
|
70
|
+
"align": "center",
|
|
71
|
+
"text": "Scale: {{viewport.main.scaleText}}"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"kind": "scaleBar",
|
|
75
|
+
"id": "scale-bar-main",
|
|
76
|
+
"viewport": "main",
|
|
77
|
+
"xMm": 98.5,
|
|
78
|
+
"yMm": 198,
|
|
79
|
+
"maxLengthMm": 100,
|
|
80
|
+
"unit": "m",
|
|
81
|
+
"segments": 10,
|
|
82
|
+
"labelEvery": 2,
|
|
83
|
+
"stroke": "#000",
|
|
84
|
+
"strokeWidthMm": 0.25,
|
|
85
|
+
"textStyle": "body"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "labels",
|
|
89
|
+
"id": "room-labels",
|
|
90
|
+
"viewport": "main",
|
|
91
|
+
"class": "space",
|
|
92
|
+
"text": "{{BIP.spacename}}",
|
|
93
|
+
"textStyle": "spaceLabels",
|
|
94
|
+
"align": "center"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|