makerjs 0.17.2 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ and limitations under the License.
39
39
  * author: Dan Marshall / Microsoft Corporation
40
40
  * maintainers: Dan Marshall <danmar@microsoft.com>
41
41
  * homepage: https://maker.js.org
42
- * version: 0.17.2
42
+ * version: 0.17.3
43
43
  *
44
44
  * browserify:
45
45
  * license: MIT (http://opensource.org/licenses/MIT)
@@ -7742,7 +7742,8 @@ var MakerJs;
7742
7742
  "stroke": elOpts.stroke,
7743
7743
  "stroke-width": elOpts.strokeWidth,
7744
7744
  "fill": elOpts.fill,
7745
- "style": elOpts.cssStyle || cssStyle(elOpts)
7745
+ "style": elOpts.cssStyle || cssStyle(elOpts),
7746
+ "class": elOpts.className
7746
7747
  });
7747
7748
  }
7748
7749
  function colorLayerOptions(layer) {
@@ -10285,6 +10286,6 @@ var MakerJs;
10285
10286
  ];
10286
10287
  })(models = MakerJs.models || (MakerJs.models = {}));
10287
10288
  })(MakerJs || (MakerJs = {}));
10288
- MakerJs.version = "0.17.2";
10289
+ MakerJs.version = "0.17.3";
10289
10290
 
10290
10291
  },{"clone":2,"graham_scan":3,"kdbush":4}]},{},[]);
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Maker.js 0.17.2
1
+ // Type definitions for Maker.js 0.17.3
2
2
  // Project: https://github.com/Microsoft/maker.js
3
3
  // Definitions by: Dan Marshall <https://github.com/danmarshall>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -3314,6 +3314,10 @@ declare namespace MakerJs.exporter {
3314
3314
  * CSS style to apply to elements.
3315
3315
  */
3316
3316
  cssStyle?: string;
3317
+ /**
3318
+ * SVG class name of the rendered paths.
3319
+ */
3320
+ className?: string;
3317
3321
  }
3318
3322
  /**
3319
3323
  * Annotate paths with directional flow marks.
package/dist/index.js CHANGED
@@ -7325,7 +7325,8 @@ var MakerJs;
7325
7325
  "stroke": elOpts.stroke,
7326
7326
  "stroke-width": elOpts.strokeWidth,
7327
7327
  "fill": elOpts.fill,
7328
- "style": elOpts.cssStyle || cssStyle(elOpts)
7328
+ "style": elOpts.cssStyle || cssStyle(elOpts),
7329
+ "class": elOpts.className
7329
7330
  });
7330
7331
  }
7331
7332
  function colorLayerOptions(layer) {
@@ -9868,5 +9869,5 @@ var MakerJs;
9868
9869
  ];
9869
9870
  })(models = MakerJs.models || (MakerJs.models = {}));
9870
9871
  })(MakerJs || (MakerJs = {}));
9871
- MakerJs.version = "0.17.2";
9872
+ MakerJs.version = "0.17.3";
9872
9873
  var Bezier = require('bezier-js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makerjs",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",