According to https://developer.garmin.com/connect-iq/core-topics/resources/ :
scaleX: If scaleY
is set, will default to scaleY
’s value. Otherwise will default to 100% of image width
scaley: If scaleX
is set, will default to scaleX
’s value. Otherwise will default to 100% of image height
However in the simulator (both SDK 7.4.3, 8.0.0-Beta) with fr965 (though I suspect the bug is in the compiler and not the simulator):
<?xml version="1.0" encoding="utf-8"?>
<svg width="100px" height="100px" viewBox="1 1 22 22" fill="none" stroke-width="4" stroke-linecap="square" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
<path id="4" d="M22 3h-19" stroke="#AAAAAA"/>
<path id="3" d="M22 9h-13" stroke="#AAAAAA"/>
<path id="2" d="M22 15h-7" stroke="#AAAAAA"/>
<path id="1" d="M22 21h-1" stroke="#AAAAAA"/>
</svg>
<bitmap id="test" filename="test.svg" dithering="none" scaleX="40" scaleY="40">
as expected 40x40
<bitmap id="test" filename="test.svg" dithering="none" scaleX="40">
width is 40 as expected, but the height is 100px,
(the drawing is the expected size and aspect ratio in the middle of the picture)
<bitmap id="test" filename="test.svg" dithering="none" scaleY="40">
height is 40 as expected, but the width is 100px,
(the drawing is the expected size and aspect ratio in the middle of the picture)