Skip to content

Commit 5ded4bd

Browse files
committed
#331 Fixed
1 parent d0abe16 commit 5ded4bd

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Sketch Measure.sketchplugin/Contents/Sketch/library/common.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -2484,16 +2484,16 @@ SM.extend({
24842484
matchFormat = /png|jpg|tiff|webp/.exec(fileFormat);
24852485
var exportFormats =
24862486
(self.configs.unit == "dp/sp" && matchFormat)? [
2487-
{ scale: 1 / self.configs.scale, prefix: "drawable-mdpi/", format: "png" },
2488-
{ scale: 1.5 / self.configs.scale, prefix: "drawable-hdpi/", format: "png" },
2489-
{ scale: 2 / self.configs.scale, prefix: "drawable-xhdpi/", format: "png" },
2490-
{ scale: 3 / self.configs.scale, prefix: "drawable-xxhdpi/", format: "png" },
2491-
{ scale: 4 / self.configs.scale, prefix: "drawable-xxxhdpi/", format: "png" }
2487+
{ scale: 1 / self.configs.scale, prefix: "drawable-mdpi/", format: fileFormat },
2488+
{ scale: 1.5 / self.configs.scale, prefix: "drawable-hdpi/", format: fileFormat },
2489+
{ scale: 2 / self.configs.scale, prefix: "drawable-xhdpi/", format: fileFormat },
2490+
{ scale: 3 / self.configs.scale, prefix: "drawable-xxhdpi/", format: fileFormat },
2491+
{ scale: 4 / self.configs.scale, prefix: "drawable-xxxhdpi/", format: fileFormat }
24922492
]:
24932493
(this.configs.unit == "pt" && matchFormat)? [
2494-
{ scale: 1 / self.configs.scale, suffix: "", format: "png" },
2495-
{ scale: 2 / self.configs.scale, suffix: "@2x", format: "png" },
2496-
{ scale: 3 / self.configs.scale, suffix: "@3x", format: "png" }
2494+
{ scale: 1 / self.configs.scale, suffix: "", format: fileFormat },
2495+
{ scale: 2 / self.configs.scale, suffix: "@2x", format: fileFormat },
2496+
{ scale: 3 / self.configs.scale, suffix: "@3x", format: fileFormat }
24972497
]:
24982498
self.getFormats(sizes);
24992499

Sketch Measure.sketchplugin/Contents/Sketch/library/i18n/manifest-en.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"identifier": "com.utom.measure",
178178
"appcast": "https://api.sketchpacks.com/v1/plugins/com.utom.measure/appcast",
179179
"homepage": "http://utom.design/measure/",
180-
"version": "2.6.5",
180+
"version": "2.6.6",
181181
"description" : "Make it a fun to create spec for developers and teammates",
182182
"authorEmail" : "[email protected]",
183183
"name" : "Sketch Measure"

Sketch Measure.sketchplugin/Contents/Sketch/library/i18n/manifest-zh-Hans.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
"identifier": "com.utom.measure",
181181
"appcast": "https://api.sketchpacks.com/v1/plugins/com.utom.measure/appcast",
182182
"homepage": "http://utom.design/measure/",
183-
"version": "2.6.5",
183+
"version": "2.6.6",
184184
"description" : "Make it a fun to create spec for developers and teammates",
185185
"authorEmail" : "[email protected]",
186186
"name" : "Sketch Measure"

Sketch Measure.sketchplugin/Contents/Sketch/library/i18n/manifest-zh-Hant.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
"identifier": "com.utom.measure",
181181
"appcast": "https://api.sketchpacks.com/v1/plugins/com.utom.measure/appcast",
182182
"homepage": "http://utom.design/measure/",
183-
"version": "2.6.5",
183+
"version": "2.6.6",
184184
"description" : "Make it a fun to create spec for developers and teammates",
185185
"authorEmail" : "[email protected]",
186186
"name" : "Sketch Measure"

Sketch Measure.sketchplugin/Contents/Sketch/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"identifier": "com.utom.measure",
178178
"appcast": "https://api.sketchpacks.com/v1/plugins/com.utom.measure/appcast",
179179
"homepage": "http://utom.design/measure/",
180-
"version": "2.6.5",
180+
"version": "2.6.6",
181181
"description" : "Make it a fun to create spec for developers and teammates",
182182
"authorEmail" : "[email protected]",
183183
"name" : "Sketch Measure"

0 commit comments

Comments
 (0)