c80_map_floors 0.1.0.8 → 0.1.0.9
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31966802b697ea9309a9b2f6200a0a5bdda7faee
|
4
|
+
data.tar.gz: 72e5e8432d971bd72cbd178eca37e7dd93c3b04f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf3b68b79cee003d5566fc9d5269fe322db7db74f274ffd8518ad72fc9feaa0c1eda21bc505d9091f84d56ffdd4421fb3af209f5465cc05e9af57f1fb99bb8c1
|
7
|
+
data.tar.gz: 48137d966c943d594adf406a92c6a67b0bf275745490c036c1c7cc0f5ba1e8e200d67fcd0726cd6c9cf80eb3a000323047b932535bfa45046e2adb0d879419cd
|
@@ -95,9 +95,9 @@ function Area() {
|
|
95
95
|
_this._options["parent_floor_json"] = parent_floor_json;
|
96
96
|
|
97
97
|
_this._polygon = Polygon.createFromSaved(options, false, _map);
|
98
|
-
_this._polygon.area = _this;
|
98
|
+
_this._polygon.area = _this; // FIXME:: после исполнения строки (****) ссылка на area исчезает, разве нет?
|
99
99
|
_this._polygon["parent_floor_json"] = parent_floor_json;
|
100
|
-
_this._polygon = $(_this._polygon.polygon);
|
100
|
+
_this._polygon = $(_this._polygon.polygon); // ****
|
101
101
|
|
102
102
|
// подпись над полигоном показываем только админам
|
103
103
|
if (IS_ADMIN) {
|
@@ -110,6 +110,7 @@ function Area() {
|
|
110
110
|
_this._polygon_overlay.hover(_this._mouse_in, _this._mouse_out);
|
111
111
|
_this._calcBBox();
|
112
112
|
|
113
|
+
// TODO:: старый код не работает: вместо area_hash должно быть data (и так далее)
|
113
114
|
var k = 'unassigned';
|
114
115
|
if (options.area_hash != undefined) {
|
115
116
|
if (typeof options.area_hash.id !== 'undefined') {
|
@@ -196,6 +196,19 @@ function Building() {
|
|
196
196
|
_polygon = Polygon.createFromSaved(options, false, _map);
|
197
197
|
_polygon.building = _this;
|
198
198
|
|
199
|
+
|
200
|
+
//<editor-fold desc="// если у полигона здания имеется Здание - добавим css класс (для разукрашивания таких полигонов в режиме редактирования)">
|
201
|
+
var k = '';
|
202
|
+
|
203
|
+
if (_options != null) {
|
204
|
+
if (_options["data"] != null) {
|
205
|
+
k = 'linked';
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
$(_polygon.polygon).addClass(k);
|
210
|
+
//</editor-fold>
|
211
|
+
|
199
212
|
_this._calcBBox();
|
200
213
|
|
201
214
|
// TODO:: подпись над зданием - сколько свободных площадей
|
@@ -1246,7 +1246,7 @@ div#map_wrapper {
|
|
1246
1246
|
g {
|
1247
1247
|
|
1248
1248
|
&.free {
|
1249
|
-
polygon, polyline { /* СВОБОДНЫЙ полигон */
|
1249
|
+
polygon, polyline { /* СВОБОДНЫЙ полигон площади */
|
1250
1250
|
fill: rgba(0, 255, 19, 0.30);
|
1251
1251
|
stroke: rgba(51, 51, 51, 0.36);
|
1252
1252
|
cursor: pointer;
|
@@ -1260,7 +1260,7 @@ div#map_wrapper {
|
|
1260
1260
|
}
|
1261
1261
|
|
1262
1262
|
&.busy {
|
1263
|
-
polygon, polyline { /* ЗАНЯТЫЙ полигон */
|
1263
|
+
polygon, polyline { /* ЗАНЯТЫЙ полигон площади */
|
1264
1264
|
fill: rgba(255, 4, 0, 0.30);
|
1265
1265
|
stroke: rgba(255, 4, 0, 0.30);
|
1266
1266
|
cursor: pointer;
|
@@ -1275,7 +1275,7 @@ div#map_wrapper {
|
|
1275
1275
|
|
1276
1276
|
&.unassigned {
|
1277
1277
|
|
1278
|
-
polygon, polyline { /* НЕНАЗНАЧЕННЫЙ полигон */
|
1278
|
+
polygon, polyline { /* НЕНАЗНАЧЕННЫЙ полигон площади */
|
1279
1279
|
fill: rgba(131, 131, 131, 0.30);
|
1280
1280
|
stroke: rgba(131, 131, 131, 0.40);
|
1281
1281
|
cursor: pointer;
|
@@ -1287,7 +1287,7 @@ div#map_wrapper {
|
|
1287
1287
|
}
|
1288
1288
|
|
1289
1289
|
&.viewing_area {
|
1290
|
-
polygon, polyline { /* НЕНАЗНАЧЕННЫЙ и просматриваемый полигон (с пунктиром) */
|
1290
|
+
polygon, polyline { /* НЕНАЗНАЧЕННЫЙ и просматриваемый полигон площади (с пунктиром) */
|
1291
1291
|
/*background: transparent url(image_path('loader_button.gif')) no-repeat 0 0;*/
|
1292
1292
|
fill: rgba(131, 131, 131, 0.50);
|
1293
1293
|
stroke: rgba(131, 131, 131, 0.60);
|
@@ -1305,7 +1305,7 @@ div#map_wrapper {
|
|
1305
1305
|
}
|
1306
1306
|
|
1307
1307
|
&.viewing_area {
|
1308
|
-
polygon, polyline { /* подразумевается НАЗНАЧЕННЫЙ полигон */
|
1308
|
+
polygon, polyline { /* подразумевается НАЗНАЧЕННЫЙ полигон площади */
|
1309
1309
|
/*background: transparent url(image_path('loader_button.gif')) no-repeat 0 0;*/
|
1310
1310
|
fill: rgba(0, 255, 19, 0.10);
|
1311
1311
|
stroke: rgba(255, 246, 242, 0.59);
|
@@ -1363,7 +1363,7 @@ div#map_wrapper {
|
|
1363
1363
|
}
|
1364
1364
|
|
1365
1365
|
g.free {
|
1366
|
-
polygon, polyline { /* когда редактируем, СВОБОДНЫЕ полигоны светятся зелёным */
|
1366
|
+
polygon, polyline { /* когда редактируем, СВОБОДНЫЕ полигоны площадей светятся зелёным */
|
1367
1367
|
fill: rgba(0, 255, 19, 0.20);
|
1368
1368
|
stroke: rgba(255, 255, 255, 0.90);
|
1369
1369
|
cursor: pointer;
|
@@ -1377,7 +1377,7 @@ div#map_wrapper {
|
|
1377
1377
|
}
|
1378
1378
|
|
1379
1379
|
g.busy {
|
1380
|
-
polygon, polyline { /* когда редактируем, ЗАНЯТЫЕ полигоны светятся красным */
|
1380
|
+
polygon, polyline { /* когда редактируем, ЗАНЯТЫЕ полигоны площадей светятся красным */
|
1381
1381
|
fill: rgba(255, 4, 0, 0.30);
|
1382
1382
|
stroke: rgba(255, 255, 255, 0.90);
|
1383
1383
|
cursor: pointer;
|
@@ -1395,7 +1395,8 @@ div#map_wrapper {
|
|
1395
1395
|
|
1396
1396
|
&.editing {
|
1397
1397
|
#svg {
|
1398
|
-
|
1398
|
+
|
1399
|
+
polygon.selected, polygon.selected.linked { /* когда редактируем карту, ВЫБРАННЫЙ полигон [здания] светится фиолетовым */
|
1399
1400
|
fill: rgba(135, 18, 237, 0.40);
|
1400
1401
|
stroke: rgba(0, 255, 19, 0.90);
|
1401
1402
|
&:hover {
|
@@ -1403,6 +1404,16 @@ div#map_wrapper {
|
|
1403
1404
|
stroke: rgba(255, 0, 169, 0.99);
|
1404
1405
|
}
|
1405
1406
|
}
|
1407
|
+
|
1408
|
+
polygon.linked { /* когда редактируем карту, НАЗНАЧЕННЫЙ полигон [здания] светится зелёным */
|
1409
|
+
fill: rgba(0, 255, 19, 0.70);
|
1410
|
+
stroke: rgba(22, 22, 22, 0.90);
|
1411
|
+
&:hover {
|
1412
|
+
fill: rgba(0, 255, 19, 0.90);
|
1413
|
+
stroke: rgba(22, 22, 22, 0.90);
|
1414
|
+
}
|
1415
|
+
}
|
1416
|
+
|
1406
1417
|
}
|
1407
1418
|
}
|
1408
1419
|
|