@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.
Files changed (209) hide show
  1. package/README.md +208 -0
  2. package/dist/BuildInfo.d.ts +25 -0
  3. package/dist/BuildInfo.d.ts.map +1 -0
  4. package/dist/BuildInfo.js +15 -0
  5. package/dist/BuildInfo.js.map +1 -0
  6. package/dist/index.d.ts +7 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +9 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/layout/analyzeTemplate.d.ts +29 -0
  11. package/dist/layout/analyzeTemplate.d.ts.map +1 -0
  12. package/dist/layout/analyzeTemplate.js +168 -0
  13. package/dist/layout/analyzeTemplate.js.map +1 -0
  14. package/dist/layout/clipUtils.d.ts +18 -0
  15. package/dist/layout/clipUtils.d.ts.map +1 -0
  16. package/dist/layout/clipUtils.js +165 -0
  17. package/dist/layout/clipUtils.js.map +1 -0
  18. package/dist/layout/colorConstants.d.ts +11 -0
  19. package/dist/layout/colorConstants.d.ts.map +1 -0
  20. package/dist/layout/colorConstants.js +14 -0
  21. package/dist/layout/colorConstants.js.map +1 -0
  22. package/dist/layout/elementKinds.d.ts +21 -0
  23. package/dist/layout/elementKinds.d.ts.map +1 -0
  24. package/dist/layout/elementKinds.js +17 -0
  25. package/dist/layout/elementKinds.js.map +1 -0
  26. package/dist/layout/exportDrawing.d.ts +143 -0
  27. package/dist/layout/exportDrawing.d.ts.map +1 -0
  28. package/dist/layout/exportDrawing.js +146 -0
  29. package/dist/layout/exportDrawing.js.map +1 -0
  30. package/dist/layout/filters.d.ts +33 -0
  31. package/dist/layout/filters.d.ts.map +1 -0
  32. package/dist/layout/filters.js +77 -0
  33. package/dist/layout/filters.js.map +1 -0
  34. package/dist/layout/geometryConstants.d.ts +8 -0
  35. package/dist/layout/geometryConstants.d.ts.map +1 -0
  36. package/dist/layout/geometryConstants.js +10 -0
  37. package/dist/layout/geometryConstants.js.map +1 -0
  38. package/dist/layout/index.d.ts +86 -0
  39. package/dist/layout/index.d.ts.map +1 -0
  40. package/dist/layout/index.js +363 -0
  41. package/dist/layout/index.js.map +1 -0
  42. package/dist/layout/itemBuilders.d.ts +29 -0
  43. package/dist/layout/itemBuilders.d.ts.map +1 -0
  44. package/dist/layout/itemBuilders.js +135 -0
  45. package/dist/layout/itemBuilders.js.map +1 -0
  46. package/dist/layout/labelsRender.d.ts +29 -0
  47. package/dist/layout/labelsRender.d.ts.map +1 -0
  48. package/dist/layout/labelsRender.js +109 -0
  49. package/dist/layout/labelsRender.js.map +1 -0
  50. package/dist/layout/legendConstants.d.ts +12 -0
  51. package/dist/layout/legendConstants.d.ts.map +1 -0
  52. package/dist/layout/legendConstants.js +12 -0
  53. package/dist/layout/legendConstants.js.map +1 -0
  54. package/dist/layout/legendRender.d.ts +13 -0
  55. package/dist/layout/legendRender.d.ts.map +1 -0
  56. package/dist/layout/legendRender.js +424 -0
  57. package/dist/layout/legendRender.js.map +1 -0
  58. package/dist/layout/legendRows.d.ts +26 -0
  59. package/dist/layout/legendRows.d.ts.map +1 -0
  60. package/dist/layout/legendRows.js +45 -0
  61. package/dist/layout/legendRows.js.map +1 -0
  62. package/dist/layout/legendUtils.d.ts +21 -0
  63. package/dist/layout/legendUtils.d.ts.map +1 -0
  64. package/dist/layout/legendUtils.js +110 -0
  65. package/dist/layout/legendUtils.js.map +1 -0
  66. package/dist/layout/metadata.d.ts +43 -0
  67. package/dist/layout/metadata.d.ts.map +1 -0
  68. package/dist/layout/metadata.js +191 -0
  69. package/dist/layout/metadata.js.map +1 -0
  70. package/dist/layout/model.d.ts +15 -0
  71. package/dist/layout/model.d.ts.map +1 -0
  72. package/dist/layout/model.js +310 -0
  73. package/dist/layout/model.js.map +1 -0
  74. package/dist/layout/options.d.ts +17 -0
  75. package/dist/layout/options.d.ts.map +1 -0
  76. package/dist/layout/options.js +2 -0
  77. package/dist/layout/options.js.map +1 -0
  78. package/dist/layout/presets.d.ts +23 -0
  79. package/dist/layout/presets.d.ts.map +1 -0
  80. package/dist/layout/presets.js +41 -0
  81. package/dist/layout/presets.js.map +1 -0
  82. package/dist/layout/qrRender.d.ts +13 -0
  83. package/dist/layout/qrRender.d.ts.map +1 -0
  84. package/dist/layout/qrRender.js +97 -0
  85. package/dist/layout/qrRender.js.map +1 -0
  86. package/dist/layout/renderDrawing.d.ts +62 -0
  87. package/dist/layout/renderDrawing.d.ts.map +1 -0
  88. package/dist/layout/renderDrawing.js +555 -0
  89. package/dist/layout/renderDrawing.js.map +1 -0
  90. package/dist/layout/renderUtils.d.ts +36 -0
  91. package/dist/layout/renderUtils.d.ts.map +1 -0
  92. package/dist/layout/renderUtils.js +117 -0
  93. package/dist/layout/renderUtils.js.map +1 -0
  94. package/dist/layout/sectionValidation.d.ts +3 -0
  95. package/dist/layout/sectionValidation.d.ts.map +1 -0
  96. package/dist/layout/sectionValidation.js +2 -0
  97. package/dist/layout/sectionValidation.js.map +1 -0
  98. package/dist/layout/templateVariables.d.ts +137 -0
  99. package/dist/layout/templateVariables.d.ts.map +1 -0
  100. package/dist/layout/templateVariables.js +295 -0
  101. package/dist/layout/templateVariables.js.map +1 -0
  102. package/dist/layout/typeGuards.d.ts +5 -0
  103. package/dist/layout/typeGuards.d.ts.map +1 -0
  104. package/dist/layout/typeGuards.js +9 -0
  105. package/dist/layout/typeGuards.js.map +1 -0
  106. package/dist/layout/types.d.ts +816 -0
  107. package/dist/layout/types.d.ts.map +1 -0
  108. package/dist/layout/types.js +2 -0
  109. package/dist/layout/types.js.map +1 -0
  110. package/dist/layout/utils.d.ts +9 -0
  111. package/dist/layout/utils.d.ts.map +1 -0
  112. package/dist/layout/utils.js +84 -0
  113. package/dist/layout/utils.js.map +1 -0
  114. package/dist/layout/validation.d.ts +7 -0
  115. package/dist/layout/validation.d.ts.map +1 -0
  116. package/dist/layout/validation.js +352 -0
  117. package/dist/layout/validation.js.map +1 -0
  118. package/dist/layout/validationHelpers.d.ts +15 -0
  119. package/dist/layout/validationHelpers.d.ts.map +1 -0
  120. package/dist/layout/validationHelpers.js +43 -0
  121. package/dist/layout/validationHelpers.js.map +1 -0
  122. package/dist/layout/validationUtils.d.ts +5 -0
  123. package/dist/layout/validationUtils.d.ts.map +1 -0
  124. package/dist/layout/validationUtils.js +5 -0
  125. package/dist/layout/validationUtils.js.map +1 -0
  126. package/dist/layout/viewportPrep.d.ts +47 -0
  127. package/dist/layout/viewportPrep.d.ts.map +1 -0
  128. package/dist/layout/viewportPrep.js +275 -0
  129. package/dist/layout/viewportPrep.js.map +1 -0
  130. package/dist/layout/viewportRender.d.ts +42 -0
  131. package/dist/layout/viewportRender.d.ts.map +1 -0
  132. package/dist/layout/viewportRender.js +337 -0
  133. package/dist/layout/viewportRender.js.map +1 -0
  134. package/dist/layout/viewportUtils.d.ts +9 -0
  135. package/dist/layout/viewportUtils.d.ts.map +1 -0
  136. package/dist/layout/viewportUtils.js +40 -0
  137. package/dist/layout/viewportUtils.js.map +1 -0
  138. package/dist/layout/warnings.d.ts +2 -0
  139. package/dist/layout/warnings.d.ts.map +1 -0
  140. package/dist/layout/warnings.js +4 -0
  141. package/dist/layout/warnings.js.map +1 -0
  142. package/dist/printToPdf.d.ts +38 -0
  143. package/dist/printToPdf.d.ts.map +1 -0
  144. package/dist/printToPdf.js +79 -0
  145. package/dist/printToPdf.js.map +1 -0
  146. package/dist/printToSvg.d.ts +11 -0
  147. package/dist/printToSvg.d.ts.map +1 -0
  148. package/dist/printToSvg.js +168 -0
  149. package/dist/printToSvg.js.map +1 -0
  150. package/dist/sections.d.ts +118 -0
  151. package/dist/sections.d.ts.map +1 -0
  152. package/dist/sections.js +839 -0
  153. package/dist/sections.js.map +1 -0
  154. package/dist/templates/default-template.json +137 -0
  155. package/dist/types.d.ts +54 -0
  156. package/dist/types.d.ts.map +1 -0
  157. package/dist/types.js +11 -0
  158. package/dist/types.js.map +1 -0
  159. package/package.json +47 -0
  160. package/src/BuildInfo.ts +41 -0
  161. package/src/index.ts +10 -0
  162. package/src/layout/analyzeTemplate.ts +218 -0
  163. package/src/layout/clipUtils.ts +193 -0
  164. package/src/layout/colorConstants.ts +16 -0
  165. package/src/layout/elementKinds.ts +35 -0
  166. package/src/layout/exportDrawing.ts +206 -0
  167. package/src/layout/filters.ts +80 -0
  168. package/src/layout/geometryConstants.ts +11 -0
  169. package/src/layout/index.ts +671 -0
  170. package/src/layout/itemBuilders.ts +159 -0
  171. package/src/layout/labelsRender.ts +170 -0
  172. package/src/layout/legendConstants.ts +11 -0
  173. package/src/layout/legendRender.ts +543 -0
  174. package/src/layout/legendRows.ts +62 -0
  175. package/src/layout/legendUtils.ts +144 -0
  176. package/src/layout/metadata.ts +210 -0
  177. package/src/layout/model.ts +372 -0
  178. package/src/layout/options.ts +17 -0
  179. package/src/layout/presets.ts +51 -0
  180. package/src/layout/qrRender.ts +126 -0
  181. package/src/layout/qrcode.d.ts +2 -0
  182. package/src/layout/renderDrawing.ts +710 -0
  183. package/src/layout/renderUtils.ts +138 -0
  184. package/src/layout/sectionValidation.ts +2 -0
  185. package/src/layout/templateVariables.ts +317 -0
  186. package/src/layout/typeGuards.ts +9 -0
  187. package/src/layout/types.ts +835 -0
  188. package/src/layout/utils.ts +85 -0
  189. package/src/layout/validation.ts +392 -0
  190. package/src/layout/validationHelpers.ts +59 -0
  191. package/src/layout/validationUtils.ts +6 -0
  192. package/src/layout/viewportPrep.ts +351 -0
  193. package/src/layout/viewportRender.ts +442 -0
  194. package/src/layout/viewportUtils.ts +50 -0
  195. package/src/layout/warnings.ts +3 -0
  196. package/src/printToPdf.ts +108 -0
  197. package/src/printToSvg.ts +188 -0
  198. package/src/sections.ts +1019 -0
  199. package/src/templates/default-template.json +137 -0
  200. package/src/types.ts +49 -0
  201. package/templates/default-a0-landscape.json +209 -0
  202. package/templates/default-a0-portrait.json +195 -0
  203. package/templates/default-a1-landscape.json +167 -0
  204. package/templates/default-a1-portrait.json +153 -0
  205. package/templates/default-a3-landscape.json +111 -0
  206. package/templates/default-a3-portrait.json +125 -0
  207. package/templates/default-a4-landscape.json +97 -0
  208. package/templates/default-a4-portrait.json +97 -0
  209. package/templates/template-schema.json +1395 -0
@@ -0,0 +1,137 @@
1
+ {
2
+ "id": "a3-landscape-with-logo",
3
+ "page": { "widthMm": 420, "heightMm": 297, "marginMm": 10, "backgroundColor": "#ffffff" },
4
+ "styles": {
5
+ "body": { "fontFamily": "Arial", "fontSizeMm": 3.5 }
6
+ },
7
+ "assets": [
8
+ { "id": "logo-main", "src": "https://twinfinity.com/theme-assets/logo.svg" }
9
+ ],
10
+ "elements": [
11
+ {
12
+ "kind": "image",
13
+ "id": "logo-top-center",
14
+ "xMm": 170,
15
+ "yMm": 10,
16
+ "widthMm": 80,
17
+ "heightMm": 20,
18
+ "assetId": "logo-main",
19
+ "fit": "contain"
20
+ },
21
+ {
22
+ "kind": "line",
23
+ "id": "logo-underline",
24
+ "x1Mm": 150,
25
+ "y1Mm": 32,
26
+ "x2Mm": 270,
27
+ "y2Mm": 32,
28
+ "stroke": "#000",
29
+ "strokeWidthMm": 0.25
30
+ },
31
+ {
32
+ "kind": "rect",
33
+ "id": "page-frame",
34
+ "xMm": 2,
35
+ "yMm": 2,
36
+ "widthMm": 416,
37
+ "heightMm": 293,
38
+ "stroke": "#000",
39
+ "strokeWidthMm": 0.25,
40
+ "fill": "none"
41
+ },
42
+ {
43
+ "kind": "viewport",
44
+ "id": "main",
45
+ "xMm": 5,
46
+ "yMm": 40,
47
+ "widthMm": 410,
48
+ "heightMm": 230,
49
+ "scaleMode": "fitAndRound",
50
+ "preferredScales": [2, 10, 25, 50, 100, 150, 250, 500, 1000, 2500],
51
+ "align": "center",
52
+ "border": { "stroke": "none", "strokeWidthMm": 0.25 }
53
+ },
54
+ {
55
+ "kind": "scaleBar",
56
+ "id": "scale-bar-main",
57
+ "viewport": "main",
58
+ "xMm": 130,
59
+ "yMm": 275,
60
+ "maxLengthMm": 160,
61
+ "unit": "m",
62
+ "segments": 8,
63
+ "labelEvery": 1,
64
+ "stroke": "#000",
65
+ "strokeWidthMm": 0.25,
66
+ "textStyle": "body"
67
+ },
68
+ {
69
+ "kind": "text",
70
+ "id": "scale-text-main",
71
+ "xMm": 210,
72
+ "yMm": 265,
73
+ "textStyle": "body",
74
+ "align": "center",
75
+ "text": "Scale: {{viewport.main.scaleText}}"
76
+ },
77
+ {
78
+ "kind": "rect",
79
+ "id": "scale-box",
80
+ "xMm": 90,
81
+ "yMm": 245,
82
+ "widthMm": 240,
83
+ "heightMm": 50,
84
+ "stroke": "#000",
85
+ "strokeWidthMm": 0.25,
86
+ "fill": "none"
87
+ },
88
+ {
89
+ "kind": "labels",
90
+ "id": "room-labels",
91
+ "viewport": "main",
92
+ "text": "{{text}}",
93
+ "textStyle": "body",
94
+ "align": "center"
95
+ },
96
+ {
97
+ "kind": "qr",
98
+ "id": "qr-main",
99
+ "role": "main",
100
+ "xMm": 5,
101
+ "yMm": 267,
102
+ "sizeMm": 25,
103
+ "anchorCorner": "bottom-left",
104
+ "viewport": "main"
105
+ },
106
+ {
107
+ "kind": "qr",
108
+ "id": "qr-anchor-bottom-right",
109
+ "role": "anchor",
110
+ "anchorCorner": "bottom-right",
111
+ "xMm": 397,
112
+ "yMm": 274,
113
+ "sizeMm": 18,
114
+ "viewport": "main"
115
+ },
116
+ {
117
+ "kind": "qr",
118
+ "id": "qr-anchor-top-left",
119
+ "role": "anchor",
120
+ "anchorCorner": "top-left",
121
+ "xMm": 5,
122
+ "yMm": 5,
123
+ "sizeMm": 18,
124
+ "viewport": "main"
125
+ },
126
+ {
127
+ "kind": "qr",
128
+ "id": "qr-anchor-top-right",
129
+ "role": "anchor",
130
+ "anchorCorner": "top-right",
131
+ "xMm": 397,
132
+ "yMm": 5,
133
+ "sizeMm": 18,
134
+ "viewport": "main"
135
+ }
136
+ ]
137
+ }
package/src/types.ts ADDED
@@ -0,0 +1,49 @@
1
+ /** Line styling options for SVG rendering. */
2
+ export interface SvgLineStyle {
3
+ enabled?: boolean;
4
+ stroke?: string;
5
+ strokeWidth?: number;
6
+ strokeDasharray?: string;
7
+ opacity?: number;
8
+ }
9
+
10
+ /** Style configuration for different line categories in SVG rendering. */
11
+ export interface SvgRenderStyles {
12
+ cutLines?: SvgLineStyle;
13
+ visibleLines?: SvgLineStyle;
14
+ hiddenLines?: SvgLineStyle;
15
+ silhouettes?: SvgLineStyle;
16
+ featureEdges?: SvgLineStyle;
17
+ stairArrows?: SvgLineStyle;
18
+ outlineVisible?: SvgLineStyle;
19
+ outlineHidden?: SvgLineStyle;
20
+ }
21
+
22
+ /** Plane basis for projecting 3D points to 2D. */
23
+ export interface SvgPlaneBasis {
24
+ origin: { x: number; y: number; z: number };
25
+ right: { x: number; y: number; z: number };
26
+ up: { x: number; y: number; z: number };
27
+ }
28
+
29
+ /** Options for printToSvg. */
30
+ export interface PrintToSvgOptions {
31
+ viewBox?: [number, number, number, number];
32
+ styles?: SvgRenderStyles;
33
+ includeXmlDeclaration?: boolean;
34
+ backgroundColor?: string;
35
+ planeBasis?: SvgPlaneBasis;
36
+ bounds?: { minX: number; maxX: number; minY: number; maxY: number };
37
+ boundsPadding?: number;
38
+ }
39
+
40
+ export const DEFAULT_SVG_STYLES: Required<SvgRenderStyles> = {
41
+ cutLines: { enabled: true, stroke: '#dc2626', strokeWidth: 0.01, opacity: 1 },
42
+ visibleLines: { enabled: true, stroke: '#111827', strokeWidth: 0.005, opacity: 1 },
43
+ hiddenLines: { enabled: true, stroke: '#6b7280', strokeWidth: 0.004, strokeDasharray: '0.02,0.01', opacity: 1 },
44
+ silhouettes: { enabled: true, stroke: '#000000', strokeWidth: 0.006, opacity: 1 },
45
+ featureEdges: { enabled: true, stroke: '#374151', strokeWidth: 0.005, opacity: 1 },
46
+ stairArrows: { enabled: true, stroke: '#111827', strokeWidth: 0.005, opacity: 1 },
47
+ outlineVisible: { enabled: true, stroke: '#111827', strokeWidth: 0.004, opacity: 1 },
48
+ outlineHidden: { enabled: true, stroke: '#9ca3af', strokeWidth: 0.003, strokeDasharray: '0.015,0.008', opacity: 1 }
49
+ };
@@ -0,0 +1,209 @@
1
+ {
2
+ "$schema": "./template-schema.json",
3
+ "id": "default-a0-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": 1189, "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": 1179,
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": 1179,
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": 594.5,
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": 469.5,
78
+ "yMm": 829,
79
+ "maxLengthMm": 250,
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-29-top",
99
+ "x1Mm": 29, "y1Mm": 2,
100
+ "x2Mm": 29, "y2Mm": 8,
101
+ "stroke": "#000", "strokeWidthMm": 0.2
102
+ },
103
+ {
104
+ "kind": "line",
105
+ "id": "fold-v-29-bottom",
106
+ "x1Mm": 29, "y1Mm": 828,
107
+ "x2Mm": 29, "y2Mm": 834,
108
+ "stroke": "#000", "strokeWidthMm": 0.2
109
+ },
110
+ {
111
+ "kind": "line",
112
+ "id": "fold-v-219-top",
113
+ "x1Mm": 219, "y1Mm": 2,
114
+ "x2Mm": 219, "y2Mm": 8,
115
+ "stroke": "#000", "strokeWidthMm": 0.2
116
+ },
117
+ {
118
+ "kind": "line",
119
+ "id": "fold-v-219-bottom",
120
+ "x1Mm": 219, "y1Mm": 828,
121
+ "x2Mm": 219, "y2Mm": 834,
122
+ "stroke": "#000", "strokeWidthMm": 0.2
123
+ },
124
+ {
125
+ "kind": "line",
126
+ "id": "fold-v-409-top",
127
+ "x1Mm": 409, "y1Mm": 2,
128
+ "x2Mm": 409, "y2Mm": 8,
129
+ "stroke": "#000", "strokeWidthMm": 0.2
130
+ },
131
+ {
132
+ "kind": "line",
133
+ "id": "fold-v-409-bottom",
134
+ "x1Mm": 409, "y1Mm": 828,
135
+ "x2Mm": 409, "y2Mm": 834,
136
+ "stroke": "#000", "strokeWidthMm": 0.2
137
+ },
138
+ {
139
+ "kind": "line",
140
+ "id": "fold-v-599-top",
141
+ "x1Mm": 599, "y1Mm": 2,
142
+ "x2Mm": 599, "y2Mm": 8,
143
+ "stroke": "#000", "strokeWidthMm": 0.2
144
+ },
145
+ {
146
+ "kind": "line",
147
+ "id": "fold-v-599-bottom",
148
+ "x1Mm": 599, "y1Mm": 828,
149
+ "x2Mm": 599, "y2Mm": 834,
150
+ "stroke": "#000", "strokeWidthMm": 0.2
151
+ },
152
+ {
153
+ "kind": "line",
154
+ "id": "fold-v-789-top",
155
+ "x1Mm": 789, "y1Mm": 2,
156
+ "x2Mm": 789, "y2Mm": 8,
157
+ "stroke": "#000", "strokeWidthMm": 0.2
158
+ },
159
+ {
160
+ "kind": "line",
161
+ "id": "fold-v-789-bottom",
162
+ "x1Mm": 789, "y1Mm": 828,
163
+ "x2Mm": 789, "y2Mm": 834,
164
+ "stroke": "#000", "strokeWidthMm": 0.2
165
+ },
166
+ {
167
+ "kind": "line",
168
+ "id": "fold-v-979-top",
169
+ "x1Mm": 979, "y1Mm": 2,
170
+ "x2Mm": 979, "y2Mm": 8,
171
+ "stroke": "#000", "strokeWidthMm": 0.2
172
+ },
173
+ {
174
+ "kind": "line",
175
+ "id": "fold-v-979-bottom",
176
+ "x1Mm": 979, "y1Mm": 828,
177
+ "x2Mm": 979, "y2Mm": 834,
178
+ "stroke": "#000", "strokeWidthMm": 0.2
179
+ },
180
+ {
181
+ "kind": "line",
182
+ "id": "fold-h-247-left",
183
+ "x1Mm": 2, "y1Mm": 247,
184
+ "x2Mm": 8, "y2Mm": 247,
185
+ "stroke": "#000", "strokeWidthMm": 0.2
186
+ },
187
+ {
188
+ "kind": "line",
189
+ "id": "fold-h-247-right",
190
+ "x1Mm": 1176, "y1Mm": 247,
191
+ "x2Mm": 1182, "y2Mm": 247,
192
+ "stroke": "#000", "strokeWidthMm": 0.2
193
+ },
194
+ {
195
+ "kind": "line",
196
+ "id": "fold-h-544-left",
197
+ "x1Mm": 2, "y1Mm": 544,
198
+ "x2Mm": 8, "y2Mm": 544,
199
+ "stroke": "#000", "strokeWidthMm": 0.2
200
+ },
201
+ {
202
+ "kind": "line",
203
+ "id": "fold-h-544-right",
204
+ "x1Mm": 1176, "y1Mm": 544,
205
+ "x2Mm": 1182, "y2Mm": 544,
206
+ "stroke": "#000", "strokeWidthMm": 0.2
207
+ }
208
+ ]
209
+ }
@@ -0,0 +1,195 @@
1
+ {
2
+ "$schema": "./template-schema.json",
3
+ "id": "default-a0-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": 841, "heightMm": 1189, "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": 1179,
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": 1142,
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": 1167,
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": 1177,
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": 1176,
107
+ "x2Mm": 61, "y2Mm": 1182,
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": 1176,
121
+ "x2Mm": 251, "y2Mm": 1182,
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": 1176,
135
+ "x2Mm": 441, "y2Mm": 1182,
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": 1176,
149
+ "x2Mm": 631, "y2Mm": 1182,
150
+ "stroke": "#000", "strokeWidthMm": 0.2
151
+ },
152
+ {
153
+ "kind": "line",
154
+ "id": "fold-h-298-left",
155
+ "x1Mm": 2, "y1Mm": 298,
156
+ "x2Mm": 8, "y2Mm": 298,
157
+ "stroke": "#000", "strokeWidthMm": 0.2
158
+ },
159
+ {
160
+ "kind": "line",
161
+ "id": "fold-h-298-right",
162
+ "x1Mm": 828, "y1Mm": 298,
163
+ "x2Mm": 834, "y2Mm": 298,
164
+ "stroke": "#000", "strokeWidthMm": 0.2
165
+ },
166
+ {
167
+ "kind": "line",
168
+ "id": "fold-h-595-left",
169
+ "x1Mm": 2, "y1Mm": 595,
170
+ "x2Mm": 8, "y2Mm": 595,
171
+ "stroke": "#000", "strokeWidthMm": 0.2
172
+ },
173
+ {
174
+ "kind": "line",
175
+ "id": "fold-h-595-right",
176
+ "x1Mm": 828, "y1Mm": 595,
177
+ "x2Mm": 834, "y2Mm": 595,
178
+ "stroke": "#000", "strokeWidthMm": 0.2
179
+ },
180
+ {
181
+ "kind": "line",
182
+ "id": "fold-h-892-left",
183
+ "x1Mm": 2, "y1Mm": 892,
184
+ "x2Mm": 8, "y2Mm": 892,
185
+ "stroke": "#000", "strokeWidthMm": 0.2
186
+ },
187
+ {
188
+ "kind": "line",
189
+ "id": "fold-h-892-right",
190
+ "x1Mm": 828, "y1Mm": 892,
191
+ "x2Mm": 834, "y2Mm": 892,
192
+ "stroke": "#000", "strokeWidthMm": 0.2
193
+ }
194
+ ]
195
+ }