Skip to content

Commit

Permalink
npm run lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Mar 7, 2024
1 parent ceb44ab commit 727a8ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ function createDriveLaneElement (variantList, segmentWidthInMeters, streetLength
} else {
rotationY = rotationVariants[lineVariant];
}

if (carType === 'pedestrian') {
return createSidewalkClonedVariants(segmentWidthInMeters, 'normal', 0, streetLength, direction, animated);
}
Expand Down Expand Up @@ -413,7 +413,7 @@ function createDriveLaneElement (variantList, segmentWidthInMeters, streetLength
width: 2
}
};

// default drive-lane variant if selected variant (carType) is not supported
if (!carParams[carType]) {
carType = 'car';
Expand Down Expand Up @@ -754,13 +754,13 @@ function createSeparatorElement (positionY, rotationY, mixinId, length, repeatCo
}

// show warning message if segment or variantString are not supported
function supportCheck(segmentType, segmentVariantString) {
function supportCheck (segmentType, segmentVariantString) {
if (segmentType == 'separator') return;
// variants supported in 3DStreet
const supportedVariants = segmentsVariants[segmentType];
if (!supportedVariants) {
STREET.notify.warningMessage(`The '${segmentType}' segment type is not yet supported in 3DStreet`);
console.log(`The '${segmentType}' segment type is not yet supported in 3DStreet`)
console.log(`The '${segmentType}' segment type is not yet supported in 3DStreet`);
} else if (!supportedVariants.includes(segmentVariantString)) {
STREET.notify.warningMessage(`The '${segmentVariantString}' variant of segment '${segmentType}' is not yet supported in 3DStreet`);
console.log(`The '${segmentVariantString}' variant of segment '${segmentType}' is not yet supported in 3DStreet`);
Expand Down

0 comments on commit 727a8ec

Please sign in to comment.