SVG support in NATFlixel. Close #165

This commit is contained in:
2022-12-05 00:06:54 +00:00
parent 8579b6b8f0
commit 4811395d43
6 changed files with 19 additions and 7 deletions

View File

@@ -73,5 +73,5 @@
(method fullString [:Entry e]
(haxe.Json.stringify e null "\t"))
(method filePath [file]
(method :String filePath [file]
(joinPath archiveDir "files" file))

View File

@@ -2,7 +2,7 @@
(defNew []
(super
["jpg" "jpeg" "png"]
["jpg" "jpeg" "png" "svg"]
->[archive e imageFiles &opt ui]
(unless (upgradeToVersion2 archive e)
// TODO an edge case exists when more image files are added to an Entry