makerjs 0.17.5 → 0.17.6

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.5
42
+ * version: 0.17.6
43
43
  *
44
44
  * browserify:
45
45
  * license: MIT (http://opensource.org/licenses/MIT)
@@ -2356,7 +2356,7 @@ var MakerJs;
2356
2356
  var captions = [];
2357
2357
  function tryAddCaption(m, offset, layer) {
2358
2358
  if (m.caption) {
2359
- captions.push({ text: m.caption.text, anchor: MakerJs.path.clone(m.caption.anchor, offset), layer: (m.caption.anchor.layer || layer) });
2359
+ captions.push({ text: m.caption.text, anchor: MakerJs.path.clone(m.caption.anchor, MakerJs.point.add(m.origin, offset)), layer: (m.caption.anchor.layer || layer) });
2360
2360
  }
2361
2361
  }
2362
2362
  tryAddCaption(modelContext, modelContext.origin, modelContext.layer);
@@ -10318,6 +10318,6 @@ var MakerJs;
10318
10318
  ];
10319
10319
  })(models = MakerJs.models || (MakerJs.models = {}));
10320
10320
  })(MakerJs || (MakerJs = {}));
10321
- MakerJs.version = "0.17.5";
10321
+ MakerJs.version = "0.17.6";
10322
10322
 
10323
10323
  },{"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.5
1
+ // Type definitions for Maker.js 0.17.6
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
package/dist/index.js CHANGED
@@ -1939,7 +1939,7 @@ var MakerJs;
1939
1939
  var captions = [];
1940
1940
  function tryAddCaption(m, offset, layer) {
1941
1941
  if (m.caption) {
1942
- captions.push({ text: m.caption.text, anchor: MakerJs.path.clone(m.caption.anchor, offset), layer: (m.caption.anchor.layer || layer) });
1942
+ captions.push({ text: m.caption.text, anchor: MakerJs.path.clone(m.caption.anchor, MakerJs.point.add(m.origin, offset)), layer: (m.caption.anchor.layer || layer) });
1943
1943
  }
1944
1944
  }
1945
1945
  tryAddCaption(modelContext, modelContext.origin, modelContext.layer);
@@ -9901,5 +9901,5 @@ var MakerJs;
9901
9901
  ];
9902
9902
  })(models = MakerJs.models || (MakerJs.models = {}));
9903
9903
  })(MakerJs || (MakerJs = {}));
9904
- MakerJs.version = "0.17.5";
9904
+ MakerJs.version = "0.17.6";
9905
9905
  var Bezier = require('bezier-js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makerjs",
3
- "version": "0.17.5",
3
+ "version": "0.17.6",
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",