-
Notifications
You must be signed in to change notification settings - Fork 96
/
index.html
622 lines (586 loc) · 34.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HOME ROUGH EDITOR v0.95</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> -->
<link rel="stylesheet" href="css/style.css">
</head>
<body style="background:#f2eee5;margin:0;padding:0; ">
<header>Make by Home Rough Editor Ver.0.95</header>
<svg id="lin" viewBox="0 0 1100 700" preserveAspectRatio="xMidYMin slice" xmlns="http://www.w3.org/2000/svg"
style="z-index:2;margin:0;padding:0;width:100vw;height:100vh;position:absolute;top:0;left:0;right:0;bottom:0">
<defs>
<linearGradient id="gradientRed" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#e65d5e" stop-opacity="1" />
<stop offset="100%" stop-color="#e33b3c" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientYellow" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#FDEB71" stop-opacity="1" />
<stop offset="100%" stop-color="#F8D800" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientGreen" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#c0f7d9" stop-opacity="1" />
<stop offset="100%" stop-color="#6ce8a3" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientSky" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#c4e0f4" stop-opacity="1" />
<stop offset="100%" stop-color="#87c8f7" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientOrange" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#f9ad67" stop-opacity="1" />
<stop offset="100%" stop-color="#f97f00" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientWhite" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#ffffff" stop-opacity="1" />
<stop offset="100%" stop-color="#f0f0f0" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientGrey" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#666" stop-opacity="1" />
<stop offset="100%" stop-color="#aaa" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientBlue" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#4f72a6" stop-opacity="1" />
<stop offset="100%" stop-color="#365987" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientPurple" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#E2B0FF" stop-opacity="1" />
<stop offset="100%" stop-color="#9F44D3" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientPink" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#f6c4dd" stop-opacity="1" />
<stop offset="100%" stop-color="#f699c7" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientBlack" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#3c3b3b" stop-opacity="1" />
<stop offset="100%" stop-color="#000000" stop-opacity="1" />
</linearGradient>
<linearGradient id="gradientNeutral" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#dbc6a0" stop-opacity="1" />
<stop offset="100%" stop-color="#c69d56" stop-opacity="1" />
</linearGradient>
<pattern id="grass" patternUnits="userSpaceOnUse" width="256" height="256">
<image
xlink:href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRWh5nEP_Trwo96CJjev6lnKe0_dRdA63RJFaoc3-msedgxveJd"
x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="wood" patternUnits="userSpaceOnUse" width="32" height="256">
<image
xlink:href="https://orig00.deviantart.net/e1f2/f/2015/164/8/b/old_oak_planks___seamless_texture_by_rls0812-d8x6htl.jpg"
x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="tiles" patternUnits="userSpaceOnUse" width="25" height="25">
<image
xlink:href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQrkoI2Eiw8ya3J_swhfpZdi_ug2sONsI6TxEd1xN5af3DX9J3R"
x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="granite" patternUnits="userSpaceOnUse" width="256" height="256">
<image
xlink:href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9_nEMhnWVV47lxEn5T_HWxvFwkujFTuw6Ff26dRTl4rDaE8AdEQ"
x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="smallGrid" width="60" height="60" patternUnits="userSpaceOnUse">
<path d="M 60 0 L 0 0 0 60" fill="none" stroke="#777" stroke-width="0.25" />
</pattern>
<pattern id="grid" width="180" height="180" patternUnits="userSpaceOnUse">
<rect width="180" height="180" fill="url(#smallGrid)" />
<path d="M 200 10 L 200 0 L 190 0 M 0 10 L 0 0 L 10 0 M 0 190 L 0 200 L 10 200 M 190 200 L 200 200 L 200 190"
fill="none" stroke="#999" stroke-width="0.8" />
</pattern>
<pattern id="hatch" width="5" height="5" patternTransform="rotate(50 0 0)" patternUnits="userSpaceOnUse">
<path d="M 0 0 L 0 5 M 10 0 L 10 10 Z" style="stroke:#666;stroke-width:5;" />
</pattern>
</defs>
<g id="boxgrid">
<rect width="8000" height="5000" x="-3500" y="-2000" fill="url(#grid)" />
</g>
<g id="boxpath"></g>
<g id="boxSurface"></g>
<g id="boxRoom"></g>
<g id="boxwall"></g>
<g id="boxcarpentry"></g>
<g id="boxEnergy"></g>
<g id="boxFurniture"></g>
<g id="boxbind"></g>
<g id="boxArea"></g>
<g id="boxRib"></g>
<g id="boxScale"></g>
<g id="boxText"></g>
<g id="boxDebug"></g>
</svg>
<div id="areaValue"></div>
<div id="reportTools" class="leftBox" style="width:500px;overflow-y: scroll;overflow-x: hidden">
<h2><i class="fa fa-calculator" aria-hidden="true"></i> Report plan.</h2>
<br /><br />
<h2 class="toHide" id="reportTotalSurface" style="display:none"></h2>
<h2 class="toHide" id="reportNumberSurface" style="display:none"></h2>
<hr />
<section id="reportRooms" class="toHide" style="display:none">
</section>
<button class="btn btn-info fully" style="margin-top:50px"
onclick="$('#reportTools').hide('500', function(){$('#panel').show(300);});mode = 'select_mode';"><i
class="fa fa-2x fa-backward" aria-hidden="true"></i></button>
</div>
<div id="wallTools" class="leftBox">
<h2 id="titleWallTools">Modify the wall</h2>
<hr />
<section id="rangeThick">
<p>Width [<span id="wallWidthScale"></span>] : <span id="wallWidthVal"></span> cm</span></p>
<input type="range" id="wallWidth" step="0.1" class="range" />
</section>
<ul class="list-unstyled">
<section id="cutWall">
<p>Cut the wall :<br /><small>A cut will be made at each wall encountered.</small></p>
<li><button class="btn btn-light shadow fully" onclick="editor.splitWall();"><i class="fa fa-2x fa-cutlery"
aria-hidden="true"></i></button></li>
</section>
<br />
<section id="separate">
<p>Separation wall :<br /><small>Transform the wall into simple separation line.</small></p>
<li><button class="btn btn-light shadow fully" onclick="editor.invisibleWall();" id="wallInvisible"><i
class="fa fa-2x fa-crop" aria-hidden="true"></i></button></li>
</section>
<section id="recombine">
<p>Transform to wall :<br /><small>The thickness will be identical to the last known.</small></p>
<li><button class="btn btn-light shadow fully" onclick="editor.visibleWall();" id="wallVisible"><i
class="fa fa-2x fa-crop" aria-hidden="true"></i></button></li>
</section>
<br />
<li><button class="btn btn-danger fully" id="wallTrash"><i class="fa fa-2x fa-trash"
aria-hidden="true"></i></button></li>
<li><button class="btn btn-info fully" style="margin-top:50px"
onclick="fonc_button('select_mode');$('#boxinfo').html('Selection mode');$('#wallTools').hide('300');$('#panel').show('300');"><i
class="fa fa-2x fa-backward" aria-hidden="true"></i></button></li>
</ul>
</div>
<div id="objBoundingBox" class="leftBox">
<h2>Modify object</h2>
<hr />
<section id="objBoundingBoxScale">
<p>Width [<span id="bboxWidthScale"></span>] : <span id="bboxWidthVal"></span> cm</span></p>
<input type="range" id="bboxWidth" step="1" class="range" />
<p>Length [<span id="bboxHeightScale"></span>] : <span id="bboxHeightVal"></span> cm</span></p>
<input type="range" id="bboxHeight" step="1" class="range" />
</section>
<section id="objBoundingBoxRotation">
<p><i class="fa fa-compass" aria-hidden="true"></i> Rotation : <span id="bboxRotationVal"></span> °</p>
<input type="range" id="bboxRotation" step="1" class="range" min="-180" max="180" />
</section>
<div id="stepsCounter" style="display:none;">
<p><span id="bboxSteps">Nb steps [2-15] : <span id="bboxStepsVal">0</span></span></p>
<button class="btn btn-info" id="bboxStepsAdd"><i class="fa fa-plus" aria-hidden="true"></i></button>
<button class="btn btn-info" id="bboxStepsMinus"><i class="fa fa-minus" aria-hidden="true"></i></button>
</div>
<div id="objBoundingBoxColor" style="display:none">
<div class="color textEditorColor" data-type="gradientRed"
style="color:#f55847;background:linear-gradient(30deg, #f55847, #f00);"></div>
<div class="color textEditorColor" data-type="gradientYellow"
style="color:#e4c06e;background:linear-gradient(30deg,#e4c06e, #ffb000);"></div>
<div class="color textEditorColor" data-type="gradientGreen"
style="color:#88cc6c;background:linear-gradient(30deg,#88cc6c, #60c437);"></div>
<div class="color textEditorColor" data-type="gradientSky"
style="color:#77e1f4;background:linear-gradient(30deg,#77e1f4, #00d9ff);"></div>
<div class="color textEditorColor" data-type="gradientBlue"
style="color:#4f72a6;background:linear-gradient(30deg,#4f72a6, #284d7e);"></div>
<div class="color textEditorColor" data-type="gradientGrey"
style="color:#666666;background:linear-gradient(30deg,#666666, #aaaaaa);"></div>
<div class="color textEditorColor" data-type="gradientWhite"
style="color:#fafafa;background:linear-gradient(30deg,#fafafa, #eaeaea);"></div>
<div class="color textEditorColor" data-type="gradientOrange"
style="color:#f9ad67;background:linear-gradient(30deg, #f9ad67, #f97f00);"></div>
<div class="color textEditorColor" data-type="gradientPurple"
style="color:#a784d9;background:linear-gradient(30deg,#a784d9, #8951da);"></div>
<div class="color textEditorColor" data-type="gradientPink"
style="color:#df67bd;background:linear-gradient(30deg,#df67bd, #e22aae);"></div>
<div class="color textEditorColor" data-type="gradientBlack"
style="color:#3c3b3b;background:linear-gradient(30deg,#3c3b3b, #000000);"></div>
<div class="color textEditorColor" data-type="gradientNeutral"
style="color:#e2c695;background:linear-gradient(30deg,#e2c695, #c69d56);"></div>
<div style="clear:both"></div>
</div>
<br /><br />
<button class="btn btn-danger fully" id="bboxTrash"><i class="fa fa-2x fa-trash" aria-hidden="true"></i></button>
<button class="btn btn-info" style="margin-top:100px"
onclick="fonc_button('select_mode');$('#boxinfo').html('Selection mode');$('#objBoundingBox').hide(100);$('#panel').show(200);binder.graph.remove();delete binder;"><i
class="fa fa-2x fa-backward" aria-hidden="true"></i></button>
</div>
<div id="objTools" class="leftBox">
<h2>Modify door/window</h2>
<hr />
<ul class="list-unstyled">
<br /><br />
<li><button class="btn btn-light shadow fully" id="objToolsHinge">Reverse hinges</button></li>
<p>Width [<span id="doorWindowWidthScale"></span>] : <span id="doorWindowWidthVal"></span> cm</span></p>
<input type="range" id="doorWindowWidth" step="1" class="range" />
<br />
<li><button class="btn btn-danger fully objTrash"><i class="fa fa-2x fa-trash" aria-hidden="true"></i></button>
</li>
<li><button class="btn btn-info" style="margin-top:100px"
onclick="fonc_button('select_mode');$('#boxinfo').html('Selection mode');$('#objTools').hide('100');$('#panel').show('200');binder.graph.remove();delete binder;rib();"><i
class="fa fa-2x fa-backward" aria-hidden="true"></i></button></li>
</ul>
</div>
<div id="roomTools" class="leftBox">
<span style="color:#08d">Home Rough Editor</span> estimated a surface of :<br /><b><span class="size"></span></b>
<br /><br />
<p>If you have the actual area, you can write it</p>
<div class="input-group">
<input type="text" class="form-control" id="roomSurface" placeholder="surface réelle"
aria-describedby="basic-addon2">
<span class="input-group-addon" id="basic-addon2">m²</span>
</div>
<br />
<input type="hidden" id="roomName" value="" />
Wording :<br />
<select class="form-select" aria-label="Default select example" id="roomLabel">
<option selected value="0">None</option>
<option value="1">Lounge</option>
<option value="2">Lunchroom</option>
<option value="3">Kitchen</option>
<option value="4">Toilet</option>
<option value="5">Bathroom</option>
<option value="6">Bedroom 1</option>
<option value="7">Bedroom 2</option>
<option value="8">Bedroom 3</option>
<option value="9">Locker</option>
<option value="10">Office</option>
<option value="11">Hall</option>
<option value="12">Loggia</option>
<option value="13">Bath 2</option>
<option value="14">Toilet 2</option>
<option value="15">Bedroom 4</option>
<option value="16">Bedroom 5</option>
<option value="17">Balcony</option>
<option value="18">Terrace</option>
<option value="19">Corridor</option>
<option value="20">Garage</option>
<option value="21">Clearance</option>
</select>
<br />
<br />
Meter :
<div class="funkyradio">
<div class="funkyradio-success">
<input type="checkbox" name="roomShow" value="showSurface" id="seeArea" checked />
<label for="seeArea">Show the surface</label>
</div>
</div>
<div class="funkyradio">
<div class="funkyradio-success">
<input type="radio" name="roomAction" id="addAction" value="add" checked />
<label for="addAction">Add the surface</label>
</div>
<div class="funkyradio-warning">
<input type="radio" name="roomAction" id="passAction" value="pass" />
<label for="passAction">Ignore the surface</label>
</div>
</div>
<hr />
<p>Colors</p>
<div class="roomColor" data-type="gradientRed" style="background:linear-gradient(30deg, #f55847, #f00);"></div>
<div class="roomColor" data-type="gradientYellow" style="background:linear-gradient(30deg,#e4c06e, #ffb000);"></div>
<div class="roomColor" data-type="gradientGreen" style="background:linear-gradient(30deg,#88cc6c, #60c437);"></div>
<div class="roomColor" data-type="gradientSky" style="background:linear-gradient(30deg,#77e1f4, #00d9ff);"></div>
<div class="roomColor" data-type="gradientBlue" style="background:linear-gradient(30deg,#4f72a6, #284d7e);"></div>
<div class="roomColor" data-type="gradientGrey" style="background:linear-gradient(30deg,#666666, #aaaaaa);"></div>
<div class="roomColor" data-type="gradientWhite" style="background:linear-gradient(30deg,#fafafa, #eaeaea);"></div>
<div class="roomColor" data-type="gradientOrange" style="background:linear-gradient(30deg, #f9ad67, #f97f00);">
</div>
<div class="roomColor" data-type="gradientPurple" style="background:linear-gradient(30deg,#a784d9, #8951da);"></div>
<div class="roomColor" data-type="gradientPink" style="background:linear-gradient(30deg,#df67bd, #e22aae);"></div>
<div class="roomColor" data-type="gradientBlack" style="background:linear-gradient(30deg,#3c3b3b, #000000);"></div>
<div class="roomColor" data-type="gradientNeutral" style="background:linear-gradient(30deg,#e2c695, #c69d56);">
</div>
<br /><br />
<p>Matérials</p>
<div class="roomColor" data-type="wood"
style="background: url('https://orig00.deviantart.net/e1f2/f/2015/164/8/b/old_oak_planks___seamless_texture_by_rls0812-d8x6htl.jpg');">
</div>
<div class="roomColor" data-type="tiles"
style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQrkoI2Eiw8ya3J_swhfpZdi_ug2sONsI6TxEd1xN5af3DX9J3R');">
</div>
<div class="roomColor" data-type="granite"
style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9_nEMhnWVV47lxEn5T_HWxvFwkujFTuw6Ff26dRTl4rDaE8AdEQ');">
</div>
<div class="roomColor" data-type="grass"
style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRWh5nEP_Trwo96CJjev6lnKe0_dRdA63RJFaoc3-msedgxveJd');">
</div>
<div data-type="#ff008a" style="clear:both"></div>
<br /><br />
<input type="hidden" id="roomBackground" value="gradientNeutral" />
<input type="hidden" id="roomIndex" value="" />
<button type="button" class="btn btn-primary" id="applySurface">Apply</button>
<button type="button" class="btn btn-danger" id="resetRoomTools">Cancel</button>
<br />
</div>
<div id="panel" class="leftBox">
<ul class="list-unstyled">
<li><button class="btn disabled halfy " id="undo" title="undo"><i class="fa fa-chevron-circle-left"
aria-hidden="true"></i>
<button class="btn disabled halfy pull-right" id="redo" title="redo"><i class="fa fa-chevron-circle-right"
aria-hidden="true"></i></button>
</li>
<br />
<li><button class="btn btn-success fully " id="select_mode" style="box-shadow:2px 2px 3px #ccc;"><i
class="fa fa-2x fa-mouse-pointer" aria-hidden="true"></i></button></li>
<br />
<li>
<button class="btn btn-light shadow fully " style="margin-bottom:0px" id="line_mode" data-toggle="tooltip"
data-placement="right" title="Make walls">WALL</button>
<button class="mt-2 btn btn-light shadow fully " style="margin-bottom:0px" id="partition_mode"
data-toggle="tooltip" data-placement="right" title="Make partitions wall">PARTITION</button>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-success">
<input type="checkbox" id="multi" checked />
<label for="multi">MULTIPLE</label>
</div>
</div>
</li>
<br />
<li><button class="btn btn-light shadow fully " id="room_mode">CONFIG. ROOMS</button></li>
<br />
<li><button class="btn btn-light shadow fully " id="node_mode"><i class="fa fa-2x fa-scissors"
aria-hidden="true"></i></button></li>
<br />
<li><button class="btn btn-light shadow fully " id="distance_mode" data-toggle="tooltip" data-placement="right"
title="Add a measurement">MEASURE</button></li>
<li><button class="btn btn-light shadow fully " id="text_mode" data-toggle="tooltip" data-placement="right"
title="Add text">TEXT</button></li>
<br />
<div id="door_list" class="list-unstyled sub"
style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;width:150px">
<button class="btn fully door" id="aperture">Aperture</button>
<button class="btn fully door" id="simple">Simple</button>
<button class="btn fully door" id="double">Double</button>
<button class="btn fully door" id="pocket">Pocket</button>
</div>
<li><button class="btn btn-light shadow fully " id="door_mode"
onclick="$('.sub').hide();$('#door_list').toggle(200);$('#window_list').hide();">DOOR</button></li>
<div id="window_list" class="list-unstyled sub"
style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;width:150px">
<button class="btn fully window" id="fix">Fix</button>
<button class="btn fully window" id="flap">Simple</button>
<button class="btn fully window" id="twin">Double</button>
<button class="btn fully window" id="bay">Slide</button>
</div>
<li><button class="btn btn-light shadow fully " id="window_mode"
onclick="$('.sub').hide();$('#window_list').toggle(200);$('#door_list').hide()">WINDOW</button></li>
<li><button class="btn btn-light shadow fully object" id="stair_mode"
onclick="$('.sub').hide();$('#door_list').hide()">STAIR</button></li>
<br />
<div id="energy_list" class="list-unstyled sub"
style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;bottom:40px;width:600px">
<div style="width:600px;float:left;padding:10px">
<p>Energy</p>
<div style="float:left;padding:10px;margin:5px;border:1px solid #ddd;border-radius:5px">
<p>High current</p>
<div style="width:120px;float:left;padding:2px">
<button class="btn btn-light fully object" id="gtl">Switchboard</button>
<button class="btn btn-light fully object" id="switch">Switch</button>
<button class="btn btn-light fully object" id="doubleSwitch">Multiways</button>
<button class="btn btn-light fully object" id="dimmer">Variator</button>
</div>
<div style="width:120px;float:left;padding:2px">
<button class="btn btn-light fully object" id="plug">Electrical outlet</button>
<button class="btn btn-light fully object" id="plug20">Outlet 20A</button>
<button class="btn btn-light fully object" id="plug32">Outlet 32A</button>
<button class="btn btn-light fully object" id="rooflight shadow">Ceiling lamp</button>
<button class="btn btn-light fully object" id="walllight shadow">Wall light</button>
</div>
</div>
<div style="width:130px;float:left;padding:10px;margin:5px;border:1px solid #ddd;border-radius:5px">
<p>Low current</p>
<button class="btn btn-light fully object" id="www">Internet access</button>
<button class="btn btn-light fully object" id="rj45">RJ45 plug</button>
<button class="btn btn-light fully object" id="tv">Antenna plug</button>
</div>
<div style="width:130px;float:left;padding:10px;margin:5px;border:1px solid #ddd;border-radius:5px">
<p>Thermal</p>
<button class="btn btn-light fully object" id="boiler">Boiler</button>
<button class="btn btn-light fully object" id="heater">Water heater</button>
<button class="btn btn-light fully object" id="radiator">Radiator</button>
</div>
</div>
</div>
<li><button class="btn btn-light shadow fully " id="object_mode"
onclick="$('.sub').hide();$('#energy_list').toggle(200);">ENERGY</button></li>
<!-- <li><button class="btn btn-light shadow fully " id="object_mode" onclick="$('.sub').hide();$('#object_list').toggle(200);">FURNITURE</button></li> -->
<br />
<li><button class="btn btn-light shadow fully " id="layer_mode"
onclick="$('.sub').hide();$('#layer_list').toggle(200);">Layers</button></li>
<div id="layer_list" class="list-unstyled sub"
style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;bottom:100px;width:200px">
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showRib" checked />
<label for="showRib">Measurement</label>
</div>
</div>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showArea" checked />
<label for="showArea">Surface</label>
</div>
</div>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showLayerRoom" checked />
<label for="showLayerRoom">Texture</label>
</div>
</div>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showLayerEnergy" checked />
<label for="showLayerEnergy">Energy</label>
</div>
</div>
</div>
<li><button class="btn btn-light shadow halfy " id="report_mode" title="Show report"><i class="fa fa-calculator"
aria-hidden="true"></i>
<button class="btn btn-light shadow halfy pull-right"
onclick="fullscreen();this.style.display='none';$('#nofull_mode').show();" id="full_mode"
title="Full screen"><i class="fa fa-expand" aria-hidden="true"></i></button>
<button class="btn btn-light shadow halfy pull-right" style="display:none"
onclick="outFullscreen();this.style.display='none';$('#full_mode').show();" id="nofull_mode"
data-toggle="tooltip" data-placement="right" title="Full screen"><i class="fa fa-compress"
aria-hidden="true"></i></button>
<li>
<div style="clear:both"></div>
</ul>
</div>
<div class="modal fade " id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Welcome Home Rough Editor v0.95</h4>
</div>
<div class="modal-body m-2">
<div id="recover">
<p>A plan exists in historical, would you like recover him ?</p>
<button class="btn btn-success shadow" data-bs-dismiss="modal"
onclick="initHistory('recovery');">YES</button></p>
<hr />
<p>Or are you prefer start a new plan ?</p>
</div>
<div class="w-100 d-flex justify-content-center flex-column gap-4 flex-md-row">
<div class="boxMouseOver"><img src="img/newPlanEmpty.jpg" class="img-fluid" onclick="initHistory();"
data-bs-dismiss="modal" /></div>
<div class=" boxMouseOver"><img src="img/newPlanSquare.jpg" class="img-fluid"
onclick="initHistory('newSquare');" data-bs-dismiss="modal" /></div>
<div class=" boxMouseOver"><img src="img/newPlanL.jpg" class="img-fluid" onclick="initHistory('newL');"
data-bs-dismiss="modal" /></div>
</div>
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-light shadow" data-dismiss="modal">CLOSE</button>
<button type="button" class="btn btn-primary">YES</button>
</div> -->
</div>
</div>
</div>
<div class="modal fade" id="textToLayer" tabindex="-1" role="dialog" aria-labelledby="textToLayerLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title" id="textToLayerLabel">Text editor</h4>
</div>
<div class="modal-body">
<p>Choose police color</p>
<div class="color textEditorColor" data-type="gradientRed"
style="color:#f55847;background:linear-gradient(30deg, #f55847, #f00);"></div>
<div class="color textEditorColor" data-type="gradientYellow"
style="color:#e4c06e;background:linear-gradient(30deg,#e4c06e, #ffb000);"></div>
<div class="color textEditorColor" data-type="gradientGreen"
style="color:#88cc6c;background:linear-gradient(30deg,#88cc6c, #60c437);"></div>
<div class="color textEditorColor" data-type="gradientSky"
style="color:#77e1f4;background:linear-gradient(30deg,#77e1f4, #00d9ff);"></div>
<div class="color textEditorColor" data-type="gradientBlue"
style="color:#4f72a6;background:linear-gradient(30deg,#4f72a6, #284d7e);"></div>
<div class="color textEditorColor" data-type="gradientGrey"
style="color:#666666;background:linear-gradient(30deg,#666666, #aaaaaa);"></div>
<div class="color textEditorColor" data-type="gradientWhite"
style="color:#fafafa;background:linear-gradient(30deg,#fafafa, #eaeaea);"></div>
<div class="color textEditorColor" data-type="gradientOrange"
style="color:#f9ad67;background:linear-gradient(30deg, #f9ad67, #f97f00);"></div>
<div class="color textEditorColor" data-type="gradientPurple"
style="color:#a784d9;background:linear-gradient(30deg,#a784d9, #8951da);"></div>
<div class="color textEditorColor" data-type="gradientPink"
style="color:#df67bd;background:linear-gradient(30deg,#df67bd, #e22aae);"></div>
<div class="color textEditorColor" data-type="gradientBlack"
style="color:#3c3b3b;background:linear-gradient(30deg,#3c3b3b, #000000);"></div>
<div class="color textEditorColor" data-type="gradientNeutral"
style="color:#e2c695;background:linear-gradient(30deg,#e2c695, #c69d56);"></div>
<div style="clear:both"></div>
<hr />
<p>Police size</p>
<input type="range" list="tickmarks" id="sizePolice" step="0.1" min="10" max="30" value="15" class="range"
style="width:200px" />
<hr />
<p contenteditable="true" id="labelBox" onfocus="this.innerHTML='';"
style="font-size:15px;padding:5px;border-radius:5px;color:#333">Your text</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light shadow" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" onclick="$('#textToLayer').modal('hide');">Apply</button>
</div>
</div>
</div>
</div>
<div style="position:absolute;bottom:10px;left:210px;font-size:1.5em;color:#08d" id="boxinfo">
</div>
<div id="moveBox"
style="position:absolute;right:-150px;top:10px;color:#08d;background:transparent;z-index:2;text-align:center;transition-duration: 0.2s;transition-timing-function: ease-in;">
<p style="margin:0px 0 0 0;font-size:11px" onclick="document.location='https://github.com/ekymoz/homeRoughEditor'">
<img src="https://cdn4.iconfinder.com/data/icons/mathematics-doodle-3/48/102-128.png" width=20px /> Home Rough
Editor
</p>
<div class="pull-right" style="margin:10px">
<p style="margin:0"><button class="btn btn-xs btn-info zoom" data-zoom="zoomtop"
style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-arrow-up" aria-hidden="true"></i></button></p>
<p style="margin:0">
<button class="btn btn-xs btn-info zoom" data-zoom="zoomleft" style="box-shadow:2px 2px 3px #ccc;"><i
class="fa fa-arrow-left" aria-hidden="true"></i></button>
<button class="btn btn-xs btn-light shadow zoom" data-zoom="zoomreset" style="box-shadow:2px 2px 3px #ccc;"><i
class="fa fa-bullseye" aria-hidden="true"></i></button>
<button class="btn btn-xs btn-info zoom" data-zoom="zoomright" style="box-shadow:2px 2px 3px #ccc;"><i
class="fa fa-arrow-right" aria-hidden="true"></i></button>
</p>
<p style="margin:0"><button class="btn btn-xs btn-info zoom" data-zoom="zoombottom"
style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-arrow-down" aria-hidden="true"></i></button></p>
</div>
</div>
<div id="zoomBox"
style="position:absolute;z-index:100;right:-150px;bottom:20px;text-align:center;background:transparent;padding:0px;color:#fff;transition-duration: 0.2s;transition-timing-function: ease-in;">
<div class="pull-right" style="margin-right:10px">
<button class="btn btn btn-light shadow zoom" data-zoom="zoomin" style="box-shadow:2px 2px 3px #ccc;"><i
class="fa fa-plus" aria-hidden="true"></i></button>
<button class="btn btn btn-light shadow zoom" data-zoom="zoomout" style="box-shadow:2px 2px 3px #ccc;"><i
class="fa fa-minus" aria-hidden="true"></i></button>
</div>
<div style="clear:both"></div>
<div id="scaleVal" class="pull-right"
style="box-shadow:2px 2px 3px #ccc;width:60px;height:20px;background:#4b79aa;border-radius:4px;margin-right:10px">
1m
</div>
<div style="clear:both"></div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.6.1.slim.min.js"
integrity="sha256-w8CvhFs7iHNVUtnSP0YKEg00p9Ih13rlL9zGqvLdePA=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-IDwe1+LCz02ROU9k972gdyvl+AESN10+x7tBKgc9I5HFtuNz0wWnPclzo6p9vxnk" crossorigin="anonymous"></script>
<script src="mousewheel.js"></script>
<script src="func.js"></script>
<script src="qSVG.js"></script>
<script src="editor.js"></script>
<script src="engine.js"></script>
</html>