Skip to content

Commit 363bfe4

Browse files
committed
chore: fixed demo apps
1 parent bf4cbd3 commit 363bfe4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo-snippets/canvastests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ function isOnUiThread() {
2525
}
2626
}
2727
const folder: Folder = knownFolders.currentApp();
28-
const iconLocalFile: ImageSource = ImageSource.fromFileSync(path.join(folder.path, 'images/test.jpg'));
28+
const iconLocalFile: ImageSource = ImageSource.fromFileSync(path.join(folder.path, 'assets/images/test.jpg'));
2929

3030
export function drawOnImage(scale = 3, canvas?: Canvas) {
3131
if (!canvas) {
32-
const folderPath: string = path.join(folder.path, 'images/test.jpg');
32+
const folderPath: string = path.join(folder.path, 'assets/images/test.jpg');
3333
const imageFromLocalFile: ImageSource = ImageSource.fromFileSync(folderPath);
3434
canvas = new Canvas(imageFromLocalFile);
3535
}

demo-snippets/vue/SVG.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class Image extends Vue {
3131
itemList = new Array(1000).fill(null).map((v, i) => ({
3232
index: i
3333
}));
34-
svgString = `<svg xmlns='http://www.w3.org/2000/svg' height="100" width="100">
34+
svgString = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 100 300">
3535
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
3636
</svg>`;
3737
refreshCanvas(event) {

0 commit comments

Comments
 (0)