@abi-software/flatmap-viewer 4.4.2 → 4.4.3
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 +1 -1
- package/dist/index.js +42 -51
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -28869,7 +28869,7 @@ t5 = new WeakMap(), e5 = new WeakMap(), G0 = new WeakMap(), gf = new WeakMap(),
|
|
|
28869
28869
|
}
|
|
28870
28870
|
}), w(this, J7).features = t, Ct(this, k3, ep).call(this);
|
|
28871
28871
|
};
|
|
28872
|
-
const jh = "vector-tiles", IB = "blue", DB = "#C8F", zu = "#
|
|
28872
|
+
const jh = "vector-tiles", IB = "blue", DB = "#C8F", zu = "#8EF35D", yg = "#D8D8D8", kB = "#888", VB = "#8FF", zit = "black", $it = "blue", Uit = "black", _g = [
|
|
28873
28873
|
"interpolate",
|
|
28874
28874
|
["exponential", 2],
|
|
28875
28875
|
["zoom"],
|
|
@@ -29029,7 +29029,7 @@ class qit extends I2 {
|
|
|
29029
29029
|
["boolean", ["feature-state", "hidden"], !1],
|
|
29030
29030
|
0.01,
|
|
29031
29031
|
["boolean", ["feature-state", "selected"], !1],
|
|
29032
|
-
|
|
29032
|
+
1,
|
|
29033
29033
|
["has", "opacity"],
|
|
29034
29034
|
["get", "opacity"],
|
|
29035
29035
|
["has", "colour"],
|
|
@@ -29530,57 +29530,48 @@ class o1t extends I2 {
|
|
|
29530
29530
|
["==", ["get", "type"], "nerve"]
|
|
29531
29531
|
];
|
|
29532
29532
|
}
|
|
29533
|
+
paintStyle(t, e = !1) {
|
|
29534
|
+
const n = t.dimmed || !1, i = {
|
|
29535
|
+
"line-color": [
|
|
29536
|
+
"case",
|
|
29537
|
+
["boolean", ["feature-state", "hidden"], !1],
|
|
29538
|
+
yg,
|
|
29539
|
+
["boolean", ["feature-state", "active"], !1],
|
|
29540
|
+
$it,
|
|
29541
|
+
["boolean", ["feature-state", "selected"], !1],
|
|
29542
|
+
Uit,
|
|
29543
|
+
"#888"
|
|
29544
|
+
],
|
|
29545
|
+
"line-opacity": [
|
|
29546
|
+
"case",
|
|
29547
|
+
["boolean", ["feature-state", "hidden"], !1],
|
|
29548
|
+
0.3,
|
|
29549
|
+
["boolean", ["get", "invisible"], !1],
|
|
29550
|
+
1e-3,
|
|
29551
|
+
["boolean", ["feature-state", "active"], !1],
|
|
29552
|
+
0.9,
|
|
29553
|
+
["boolean", ["feature-state", "selected"], !1],
|
|
29554
|
+
0.9,
|
|
29555
|
+
n ? 0.05 : 0.9
|
|
29556
|
+
],
|
|
29557
|
+
"line-dasharray": [2, 2],
|
|
29558
|
+
"line-width": [
|
|
29559
|
+
"case",
|
|
29560
|
+
["boolean", ["feature-state", "selected"], !1],
|
|
29561
|
+
1.5,
|
|
29562
|
+
["boolean", ["feature-state", "active"], !1],
|
|
29563
|
+
1.5,
|
|
29564
|
+
n ? 0.2 : 1.5
|
|
29565
|
+
]
|
|
29566
|
+
};
|
|
29567
|
+
return super.changedPaintStyle(i, e);
|
|
29568
|
+
}
|
|
29533
29569
|
style(t, e) {
|
|
29534
29570
|
return {
|
|
29535
29571
|
...super.style(t, e),
|
|
29536
29572
|
type: "line",
|
|
29537
29573
|
filter: this.defaultFilter(),
|
|
29538
|
-
paint:
|
|
29539
|
-
"line-color": [
|
|
29540
|
-
"case",
|
|
29541
|
-
["boolean", ["feature-state", "hidden"], !1],
|
|
29542
|
-
yg,
|
|
29543
|
-
["boolean", ["feature-state", "selected"], !1],
|
|
29544
|
-
Uit,
|
|
29545
|
-
["boolean", ["feature-state", "active"], !1],
|
|
29546
|
-
$it,
|
|
29547
|
-
"#888"
|
|
29548
|
-
],
|
|
29549
|
-
"line-opacity": [
|
|
29550
|
-
"case",
|
|
29551
|
-
["boolean", ["feature-state", "hidden"], !1],
|
|
29552
|
-
0.3,
|
|
29553
|
-
["boolean", ["get", "invisible"], !1],
|
|
29554
|
-
1e-3,
|
|
29555
|
-
["boolean", ["feature-state", "active"], !1],
|
|
29556
|
-
0.9,
|
|
29557
|
-
["boolean", ["feature-state", "selected"], !1],
|
|
29558
|
-
0.9,
|
|
29559
|
-
0.9
|
|
29560
|
-
],
|
|
29561
|
-
"line-dasharray": [2, 1],
|
|
29562
|
-
"line-width": [
|
|
29563
|
-
"let",
|
|
29564
|
-
"width",
|
|
29565
|
-
[
|
|
29566
|
-
"case",
|
|
29567
|
-
["boolean", ["feature-state", "active"], !1],
|
|
29568
|
-
0.8,
|
|
29569
|
-
["boolean", ["feature-state", "selected"], !1],
|
|
29570
|
-
1.2,
|
|
29571
|
-
0.6
|
|
29572
|
-
],
|
|
29573
|
-
[
|
|
29574
|
-
"interpolate",
|
|
29575
|
-
["exponential", 2],
|
|
29576
|
-
["zoom"],
|
|
29577
|
-
2,
|
|
29578
|
-
["*", ["var", "width"], ["^", 2, -1]],
|
|
29579
|
-
10,
|
|
29580
|
-
["*", ["var", "width"], ["^", 2, 6]]
|
|
29581
|
-
]
|
|
29582
|
-
]
|
|
29583
|
-
}
|
|
29574
|
+
paint: this.paintStyle(e)
|
|
29584
29575
|
};
|
|
29585
29576
|
}
|
|
29586
29577
|
}
|
|
@@ -29676,7 +29667,7 @@ class s1t extends I2 {
|
|
|
29676
29667
|
["boolean", ["feature-state", "hidden"], !1],
|
|
29677
29668
|
0.01,
|
|
29678
29669
|
["boolean", ["feature-state", "selected"], !1],
|
|
29679
|
-
|
|
29670
|
+
1,
|
|
29680
29671
|
["has", "opacity"],
|
|
29681
29672
|
["get", "opacity"],
|
|
29682
29673
|
["has", "colour"],
|
|
@@ -29695,7 +29686,7 @@ class s1t extends I2 {
|
|
|
29695
29686
|
["==", ["get", "type"], "junction"]
|
|
29696
29687
|
],
|
|
29697
29688
|
n ? 0.1 : 0.5,
|
|
29698
|
-
0.5
|
|
29689
|
+
n ? 0.2 : 0.5
|
|
29699
29690
|
]
|
|
29700
29691
|
};
|
|
29701
29692
|
return super.changedPaintStyle(i, e);
|
|
@@ -94224,7 +94215,7 @@ cA = function() {
|
|
|
94224
94215
|
return w(this, kl).set(t, e[0].label);
|
|
94225
94216
|
}
|
|
94226
94217
|
};
|
|
94227
|
-
const H_t = "4.4.
|
|
94218
|
+
const H_t = "4.4.3", P_t = 1.4;
|
|
94228
94219
|
var ng, od, Rl, E2, ad, B3, hA, fA, v$;
|
|
94229
94220
|
class O_t {
|
|
94230
94221
|
// also have a callback for viewer events...
|