|
@@ -24,6 +24,11 @@
|
|
|
canvas {
|
|
|
width: 600px;
|
|
|
height: 600px;
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 50%;
|
|
|
+ margin-left: -300px;
|
|
|
+ margin-top: -300px;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
@@ -43,16 +48,39 @@
|
|
|
var cad = grendCAD($canvas, wallData, wallCamera)
|
|
|
cad.position({x: -5, y: -4.5}, 5)
|
|
|
|
|
|
- wallData[1].otherobjs = [{
|
|
|
- id: "door_1",
|
|
|
- points2d: [{
|
|
|
- "x": 1.62,
|
|
|
- "y": -4.124
|
|
|
- }, {
|
|
|
- x: 3.845,
|
|
|
- y: -4.707333333333333
|
|
|
- }]
|
|
|
- }]
|
|
|
+ wallData[1].otherobjs = [
|
|
|
+ {
|
|
|
+ id: "door_1",
|
|
|
+ points2d: [{
|
|
|
+ "x": 1.62,
|
|
|
+ "y": -4.124
|
|
|
+ }, {
|
|
|
+ x: 3.845,
|
|
|
+ y: -4.707333333333333
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+
|
|
|
+ // wallData[4].otherobjs = [
|
|
|
+ // {
|
|
|
+ // id: 'column_1',
|
|
|
+ // points2d: [
|
|
|
+ // {x: -6, y: -10.924},
|
|
|
+ // {x: 0, y: -10.924},
|
|
|
+ // { x: 0, y: -8 },
|
|
|
+ // { x: -6, y: -8 },
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // id: 'column_1',
|
|
|
+ // points2d: [
|
|
|
+ // { x: -8, y: -10.924 },
|
|
|
+ // { x: -10, y: -10.924 },
|
|
|
+ // { x: -10, y: -8 },
|
|
|
+ // { x: -8, y: -8 },
|
|
|
+ // ]
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
|
|
|
cad.updateComponents()
|
|
|
</script>
|