@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 CHANGED
@@ -831,7 +831,7 @@ function docToState(doc, fallbackLength, moduleTracks = []) {
831
831
  const len = fallbackLength > 0 ? fallbackLength : hasDoc ? d.lengthInches : 24;
832
832
  const docLen = hasDoc && d.lengthInches > 0 ? d.lengthInches : len;
833
833
  const scale = docLen > 0 ? len / docLen : 1;
834
- const sc = (p) => Math.round(p * scale);
834
+ const sc = (p) => Math.round(p * scale * 100) / 100;
835
835
  const nameOf = (id) => {
836
836
  const mt = id != null ? moduleTracks.find((m) => m.id === id) : void 0;
837
837
  return mt?.track_name ?? "";