@willcgage/module-schematic 0.50.0 → 0.51.0
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -829,7 +829,7 @@ function docToState(doc, fallbackLength, moduleTracks = []) {
|
|
|
829
829
|
const len = fallbackLength > 0 ? fallbackLength : hasDoc ? d.lengthInches : 24;
|
|
830
830
|
const docLen = hasDoc && d.lengthInches > 0 ? d.lengthInches : len;
|
|
831
831
|
const scale = docLen > 0 ? len / docLen : 1;
|
|
832
|
-
const sc = (p) => Math.round(p * scale);
|
|
832
|
+
const sc = (p) => Math.round(p * scale * 100) / 100;
|
|
833
833
|
const nameOf = (id) => {
|
|
834
834
|
const mt = id != null ? moduleTracks.find((m) => m.id === id) : void 0;
|
|
835
835
|
return mt?.track_name ?? "";
|