Skip to content

Commit

Permalink
update intersection defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jul 17, 2024
1 parent 53e177d commit 487606d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ The `intersection` component creates an intersection surface with options for ad
| --------- | --------- | --------- |
| dimensions | Specifies the width and depth of the intersection. First value represents width, second value represents depth. | '20 20' |
| sidewalk | Sets the width of the sidewalk at each side of the intersection. Values are set in the order of west, east, north, south. | '0 0 0 0' |
| northeastcurb | Sets the curb dimensions for the north east curb. Values are updated as width, then depth. | '0 0' |
| southwestcurb | Sets the curb dimensions for the south west curb. Values are updated as width, then depth. | '0 0' |
| southeastcurb | Sets the curb dimensions for the south east curb. Values are updated as width, then depth. | '0 0' |
| northwestcurb | Sets the curb dimensions for the north west curb. Values are updated as width, then depth. | '0 0' |
| northeastcurb | Sets the curb dimensions for the north east curb. Values are updated as width, then depth. | '4 4' |
| southwestcurb | Sets the curb dimensions for the south west curb. Values are updated as width, then depth. | '4 4' |
| southeastcurb | Sets the curb dimensions for the south east curb. Values are updated as width, then depth. | '4 4' |
| northwestcurb | Sets the curb dimensions for the north west curb. Values are updated as width, then depth. | '4 4' |
| stopsign | Sets if each side of the intersection has a stop sign. Values are set in the order of east, west, north, south. 0 is false, 1 is true. | '0 0 0 0' |
| trafficsignal | Sets if each side of the intersection has a traffic signal. Values are set in the order of east, west, north, south. 0 is false, 1 is true. | '0 0 0 0' |
| crosswalk | ​​Sets if each side of the intersection has a crosswalk. Values are set in the order of east, west, north, south. 0 is false, 1 is true. | '0 0 0 0' |
| trafficsignal | Sets if each side of the intersection has a traffic signal. Values are set in the order of east, west, north, south. 0 is false, 1 is true. | '1 1 1 1' |
| crosswalk | ​​Sets if each side of the intersection has a crosswalk. Values are set in the order of east, west, north, south. 0 is false, 1 is true. | '1 1 1 1' |

### A-Frame `streetmix-loader` Component API

Expand Down
2 changes: 1 addition & 1 deletion src/components/intersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ AFRAME.registerComponent('intersection', {
northwestcurb: { type: 'string', default: '4 4' },
stopsign: { type: 'string', default: '0 0 0 0' },
trafficsignal: { type: 'string', default: '1 1 1 1' },
crosswalk: { type: 'string', default: '2 2 2 2' }
crosswalk: { type: 'string', default: '1 1 1 1' }
},
update: function () {
var data = this.data;
Expand Down

0 comments on commit 487606d

Please sign in to comment.