@freesewing/core
Advanced tools
+1
-1
| { | ||
| "id": "core", | ||
| "description": "A library for creating made-to-measure sewing patterns", | ||
| "version": "4.5.0" | ||
| "version": "4.6.0" | ||
| } |
+2
-2
| { | ||
| "name": "@freesewing/core", | ||
| "version": "4.5.0", | ||
| "version": "4.6.0", | ||
| "description": "A library for creating made-to-measure sewing patterns", | ||
@@ -45,3 +45,3 @@ "author": "Joost De Cock <joost@joost.at> (https://codeberg.org/joostdecock)", | ||
| "dependencies": { | ||
| "@freesewing/core-plugins": "4.5.0", | ||
| "@freesewing/core-plugins": "4.6.0", | ||
| "bezier-js": "6.1.4", | ||
@@ -48,0 +48,0 @@ "hooks": "0.3.2", |
+2
-0
@@ -33,2 +33,3 @@ import { Bezier } from './bezier.mjs' | ||
| pctBasedOn, | ||
| pctBasedOnSa, | ||
| pointOnBeam, | ||
@@ -88,2 +89,3 @@ pointOnCurve, | ||
| pctBasedOn, | ||
| pctBasedOnSa, | ||
| pointOnBeam, | ||
@@ -90,0 +92,0 @@ pointOnCurve, |
+1
-1
@@ -136,3 +136,3 @@ import set from 'lodash.set' | ||
| } else { | ||
| this.log.info(`Extending store with \`${path}\``) | ||
| this.log.debug(`Extending store with \`${path}\``) | ||
| set(this, path, (...args) => method(this, ...args)) | ||
@@ -139,0 +139,0 @@ } |
+13
-1
@@ -607,3 +607,3 @@ import { Bezier } from './bezier.mjs' | ||
| /** | ||
| * Helper method to calculate abolute option value based on a measurement | ||
| * Helper method to calculate absolute option value based on a measurement | ||
| * | ||
@@ -621,2 +621,14 @@ * @param {string} measurement - The measurement to base the calculation on | ||
| /** | ||
| * Helper method to calculate absolute option value based on the seam allowance | ||
| * | ||
| * @return {object} result - An object with the toAbs() and fromAbs() methods | ||
| */ | ||
| export function pctBasedOnSa() { | ||
| return { | ||
| toAbs: (val, { sa }) => (sa || 10) * val, | ||
| fromAbs: (val, { sa }) => Math.round((10000 * val) / (sa || 10)) / 10000, | ||
| } | ||
| } | ||
| export function snappedPctOption(measurement, config) { | ||
@@ -623,0 +635,0 @@ return { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
228022
0.17%6538
0.2%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed