[gnome-maps/wip/mlundblad/transit-tweaks: 3/5] transitPlan: Add addtional setters on Leg
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/transit-tweaks: 3/5] transitPlan: Add addtional setters on Leg
- Date: Thu, 24 Oct 2019 20:10:00 +0000 (UTC)
commit efc2af88e629432e50e86a61d2f9ef12053a3de7
Author: Marcus Lundblad <ml update uu se>
Date: Sat Oct 19 23:14:41 2019 +0200
transitPlan: Add addtional setters on Leg
Tweaks will need to be able to override
route, route type, and colors.
src/transitPlan.js | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index 7f3d27db..a63c07eb 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -488,6 +488,10 @@ var Leg = class Leg {
return this._route;
}
+ set route(route) {
+ this._route = route;
+ }
+
// try to get a shortened route name, suitable for overview rendering
get compactRoute() {
if (this._compactRoute)
@@ -527,6 +531,10 @@ var Leg = class Leg {
return this._routeType;
}
+ set routeType(routeType) {
+ this._routeType = routeType;
+ }
+
get departure() {
return this._departure;
}
@@ -619,10 +627,18 @@ var Leg = class Leg {
return this._color || DEFAULT_ROUTE_COLOR;
}
+ set color(color) {
+ this._color = color;
+ }
+
get textColor() {
return this._textColor || DEFAULT_ROUTE_TEXT_COLOR;
}
+ set textColor(textColor) {
+ this._textColor = textColor;
+ }
+
get tripShortName() {
return this._tripShortName;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]