movy icon indicating copy to clipboard operation
movy copied to clipboard

SVG render

Open ravirathore opened this issue 1 year ago • 1 comments

Hi,

Thanks for developing movyjs. Its a great software. Request your help regarding one thing.

I tried to use this code, for rendering svg files.

const key = mo.addImage('images/key.svg', { x: 0.35, y: 0.5, z: 0.01, scale: 6, color: rainbowPalette[0], ccw: false, });

key.moveTo({ x: 5, rz: -Math.PI * 4, duration: 1, ease: 'linear', t: 0, });

It executes for the svg files from your examples directory e.g. key.svg, logo-without-triangle.svg

However, it does not render any other svg files.

Both your svg files have this written in them:

Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)

Please let know whether movyjs onky supports Adobe Illustrator generated svg files.

Or, if anything can be done to render other files.

Thanks,

ravirathore avatar Jul 27 '22 09:07 ravirathore

Hi,

Please let know if there's any requirement that needs to be fulfiiled to render the svg files.

thanks,

ravirathore avatar Jul 30 '22 09:07 ravirathore