Skip to content

Commit

Permalink
lint fix and npm run dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Apr 11, 2024
1 parent 4fae032 commit 87dc3aa
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 269 deletions.
4 changes: 2 additions & 2 deletions dist/aframe-street-component.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function getBusLaneMixin (variant) {
}
if (variant === 'blue') {
return 'surface-blue bus-lane';
}
}
if (variant === 'grass') {
return 'surface-green bus-lane';
}
Expand Down Expand Up @@ -804,7 +804,7 @@ function processSegments (segments, showStriping, length, globalAnimated, showVe
var positionY = 0;

// get variantString
var variantList = segments[i].variantString ? segments[i].variantString.split('|'): "";
var variantList = segments[i].variantString ? segments[i].variantString.split('|') : '';

// show warning message if segment or variantString are not supported
supportCheck(segments[i].type, segments[i].variantString);
Expand Down
2 changes: 1 addition & 1 deletion src/components/streetplan-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ AFRAME.registerComponent('streetplan-loader', {
const streetplanAltName = streetData.altName;

console.log('streetplanName', streetplanName);
//el.setAttribute('streetplan-loader', 'name', streetplanName);
// el.setAttribute('streetplan-loader', 'name', streetplanName);

let currentSceneTitle;
const sceneEl = this.el.sceneEl;
Expand Down
54 changes: 27 additions & 27 deletions src/segments-variants.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
const segmentVariants = {
/* sidewalk segments */
"sidewalk": ["empty", "sparse", "normal", "dense"],
"sidewalk-wayfinding": ["large"],
"sidewalk-bench": ["left", "right", "center"],
"sidewalk-bike-rack":["left|sidewalk-parallel", "right|sidewalk-parallel", "left|sidewalk", "right|sidewalk"],
"sidewalk-tree": ["big", "palm-tree"],
sidewalk: ['empty', 'sparse', 'normal', 'dense'],
'sidewalk-wayfinding': ['large'],
'sidewalk-bench': ['left', 'right', 'center'],
'sidewalk-bike-rack': ['left|sidewalk-parallel', 'right|sidewalk-parallel', 'left|sidewalk', 'right|sidewalk'],
'sidewalk-tree': ['big', 'palm-tree'],
/* lights and utilities */
"utilities": ["left", "right"],
"sidewalk-lamp": ["right|modern","both|modern", "left|modern", "right|traditional", "both|traditional", "left|traditional", "right|pride", "both|pride", "left|pride"],
utilities: ['left', 'right'],
'sidewalk-lamp': ['right|modern', 'both|modern', 'left|modern', 'right|traditional', 'both|traditional', 'left|traditional', 'right|pride', 'both|pride', 'left|pride'],
// furniture segments
"parklet": ["left", "right"],
"outdoor-dining": ["empty|sidewalk", "empty|road"],
"bikeshare": ["left|road", "right|road", "left|sidewalk", "right|sidewalk"],
parklet: ['left', 'right'],
'outdoor-dining': ['empty|sidewalk', 'empty|road'],
bikeshare: ['left|road', 'right|road', 'left|sidewalk', 'right|sidewalk'],
// bike and scooter segments
"bike-lane": ["inbound|green|sidewalk", "inbound|green|road", "outbound|green|sidewalk", "outbound|green|road", "inbound|regular|sidewalk", "inbound|regular|road", "outbound|regular|sidewalk", "outbound|regular|road", "inbound|red|sidewalk", "inbound|red|road", "outbound|red|sidewalk", "outbound|red|road"],
"scooter": ["inbound|regular", "inbound|green", "inbound|red", "outbound|regular", "outbound|green", "outbound|red"],
'bike-lane': ['inbound|green|sidewalk', 'inbound|green|road', 'outbound|green|sidewalk', 'outbound|green|road', 'inbound|regular|sidewalk', 'inbound|regular|road', 'outbound|regular|sidewalk', 'outbound|regular|road', 'inbound|red|sidewalk', 'inbound|red|road', 'outbound|red|sidewalk', 'outbound|red|road'],
scooter: ['inbound|regular', 'inbound|green', 'inbound|red', 'outbound|regular', 'outbound|green', 'outbound|red'],
// road segments
"bus-lane": ["inbound|colored|typical", "outbound|colored|typical", "inbound|regular|typical", "outbound|regular|typical", "inbound|red|typical", "outbound|red|typical"],
"drive-lane": ["inbound|car","outbound|car", "inbound|truck","outbound|truck", "outbound|av", "inbound|av", "outbound|pedestrian", "inbound|pedestrian", "inbound|sharrow", "outbound|sharrow"],
"turn-lane": ["inbound|left", "inbound|right", "inbound|left-right-straight", "inbound|shared", "inbound|both", "inbound|left-straight", "inbound|right-straight", "inbound|straight", "outbound|left", "outbound|right", "outbound|left-right-straight", "outbound|shared", "outbound|both", "outbound|left-straight", "outbound|right-straight", "outbound|straight"],
"parking-lane": ["sideways|right", "sideways|left", "inbound|right", "inbound|left", "outbound|left", "outbound|right", "angled-front-left|left", "angled-front-right|left", "angled-rear-left|left", "angled-rear-right|left", "angled-front-left|right", "angled-front-right|right", "angled-rear-left|right", "angled-rear-right|right"],
"food-truck": ["left", "right"],
"flex-zone": ["taxi|inbound|right", "taxi|inbound|left", "taxi|outbound|right", "taxi|outbound|left", "rideshare|outbound|right", "rideshare|outbound|right", "rideshare|inbound|right", "rideshare|inbound|left"],
'bus-lane': ['inbound|colored|typical', 'outbound|colored|typical', 'inbound|regular|typical', 'outbound|regular|typical', 'inbound|red|typical', 'outbound|red|typical'],
'drive-lane': ['inbound|car', 'outbound|car', 'inbound|truck', 'outbound|truck', 'outbound|av', 'inbound|av', 'outbound|pedestrian', 'inbound|pedestrian', 'inbound|sharrow', 'outbound|sharrow'],
'turn-lane': ['inbound|left', 'inbound|right', 'inbound|left-right-straight', 'inbound|shared', 'inbound|both', 'inbound|left-straight', 'inbound|right-straight', 'inbound|straight', 'outbound|left', 'outbound|right', 'outbound|left-right-straight', 'outbound|shared', 'outbound|both', 'outbound|left-straight', 'outbound|right-straight', 'outbound|straight'],
'parking-lane': ['sideways|right', 'sideways|left', 'inbound|right', 'inbound|left', 'outbound|left', 'outbound|right', 'angled-front-left|left', 'angled-front-right|left', 'angled-rear-left|left', 'angled-rear-right|left', 'angled-front-left|right', 'angled-front-right|right', 'angled-rear-left|right', 'angled-rear-right|right'],
'food-truck': ['left', 'right'],
'flex-zone': ['taxi|inbound|right', 'taxi|inbound|left', 'taxi|outbound|right', 'taxi|outbound|left', 'rideshare|outbound|right', 'rideshare|outbound|right', 'rideshare|inbound|right', 'rideshare|inbound|left'],
// rail vehicles
"streetcar": ["inbound|regular", "inbound|colored", "inbound|grass", "outbound|regular", "outbound|colored", "outbound|grass"],
"light-rail": ["inbound|regular", "inbound|colored", "inbound|grass", "outbound|regular", "outbound|colored", "outbound|grass"],
streetcar: ['inbound|regular', 'inbound|colored', 'inbound|grass', 'outbound|regular', 'outbound|colored', 'outbound|grass'],
'light-rail': ['inbound|regular', 'inbound|colored', 'inbound|grass', 'outbound|regular', 'outbound|colored', 'outbound|grass'],
// stations
"brt-station": ["center"],
"transit-shelter": ["left|street-level", "right|street-level", "right|light-rail", "left|light-rail"],
'brt-station': ['center'],
'transit-shelter': ['left|street-level', 'right|street-level', 'right|light-rail', 'left|light-rail'],
// divider and temporary
"divider": ["buffer", "flowers", "planting-strip", "planter-box", "palm-tree", "big-tree", "bush", "dome", "bollard", "striped-buffer"],
"temporary": ["barricade", "traffic-cone", "jersey-barrier-plastic", "jersey-barrier-concrete"],
divider: ['buffer', 'flowers', 'planting-strip', 'planter-box', 'palm-tree', 'big-tree', 'bush', 'dome', 'bollard', 'striped-buffer'],
temporary: ['barricade', 'traffic-cone', 'jersey-barrier-plastic', 'jersey-barrier-concrete'],
// magic segment
"magic-carpet": ["aladdin"]
}
'magic-carpet': ['aladdin']
};

module.exports.segmentVariants = segmentVariants;
module.exports.segmentVariants = segmentVariants;
Loading

0 comments on commit 87dc3aa

Please sign in to comment.