/*global $, app, File, localize, params, svg */

// Required params:
//   - layerID: ID of layer to generate SVG info for
//   - layerFilename: name to write the SVG file to.

// "File" is an ExtendScript global that does not require the use of "new".
var appFolder = { Windows: "/", Macintosh: "/Adobe Photoshop CC.app/Contents/" };
$.evalFile(app.path + appFolder[File.fs] + localize("$$$/ScriptingSupport/Required=Required") + "/ConvertSVG.jsx");

/*jshint newcap: false */
svg.generateFileByID(params.layerID, params.layerFilename);
/*jshint newcap: true */
/*global $, app, File, localize, params, svg */

// Required params:
//   - layerID: ID of layer to generate SVG info for
//   - layerFilename: name to write the SVG file to.
//   - layerScale: amount to scale SVG (value of 1 generates no scaling code).

// "File" is an ExtendScript global that does not require the use of "new".
var appFolder = { Windows: "/", Macintosh: "/Adobe Photoshop CC.app/Contents/" };
$.evalFile(app.path + appFolder[File.fs] + localize("$$$/ScriptingSupport/Required=Required") + "/ConvertSVG.jsx");

/*jshint newcap: false */
svg.generateFileByID(params.layerID, params.layerFilename, params.layerScale);
/*jshint newcap: true */
Add support for SVG scaling.
Add support for SVG scaling.
