File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ function isOnUiThread() {
25
25
}
26
26
}
27
27
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' ) ) ;
29
29
30
30
export function drawOnImage ( scale = 3 , canvas ?: Canvas ) {
31
31
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' ) ;
33
33
const imageFromLocalFile : ImageSource = ImageSource . fromFileSync ( folderPath ) ;
34
34
canvas = new Canvas ( imageFromLocalFile ) ;
35
35
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default class Image extends Vue {
31
31
itemList = new Array (1000 ).fill (null ).map ((v , i ) => ({
32
32
index: i
33
33
}));
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 ">
35
35
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
36
36
</svg> ` ;
37
37
refreshCanvas(event ) {
You can’t perform that action at this time.
0 commit comments