Skip to content

Commit

Permalink
Adjust Url for markers due to new BaseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
heini208 committed Mar 1, 2024
1 parent 5b9aeb9 commit dbbaba7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions frontend-vue/src/components/ar-component/ArComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ props.conService.onConnection(() => {
var sceneEl = document.querySelector('a-scene');
//list of the markers
for (var i = 0; i < props.cardService.numberOfCards + 1; i++) {
var url = '/markers/pattern-' + i + '.patt';
var url = './markers/pattern-' + i + '.patt';
markersURLArray.push(url);
markersNameArray.push(i);
}
Expand Down Expand Up @@ -72,8 +72,8 @@ props.conService.onConnection(() => {
markerEl.appendChild(imageEl);
}
handZone = new Zone(
'/markers/ZoneMarker1.patt',
'/markers/ZoneMarker2.patt',
'./markers/ZoneMarker1.patt',
'./markers/ZoneMarker2.patt',
sceneEl,
'hand',
foundZoneMarkers
Expand Down
4 changes: 2 additions & 2 deletions frontend-vue/src/components/ar-component/CardService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class CardService {

constructor(conService: ConnectionService) {
this.conSerivce = conService;
this.cardBack = 'url(/cardImages/french-suited-cards/card-back-blue.svg)';
this.cardBack = 'url(./cardImages/french-suited-cards/card-back-blue.svg)';
this.numberOfCards = 0;
this.markerMap = new Map<string, Card>();
this.cardCallbacks = new Map<string, Function>();
Expand All @@ -22,7 +22,7 @@ export class CardService {
}

private getCardUrl(cardName: string) {
const basePath = '/cardImages/french-suited-cards';
const basePath = './cardImages/french-suited-cards';
const fileType = 'svg';
return `url(${basePath}/${cardName}.${fileType})`;
}
Expand Down

0 comments on commit dbbaba7

Please sign in to comment.