From 487606d8ad3d43d16a2f8c5e0e175ba9112f8d78 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Tue, 16 Jul 2024 21:54:16 -0700 Subject: [PATCH] update intersection defaults --- README.md | 12 ++++++------ src/components/intersection.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8a4f2bbde..be9c9418c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/components/intersection.js b/src/components/intersection.js index 3decd5764..d7f803604 100644 --- a/src/components/intersection.js +++ b/src/components/intersection.js @@ -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;