@rotorsoft/act-diagram 1.4.0 → 1.4.1

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.js CHANGED
@@ -1222,7 +1222,7 @@ function position_at(content, index) {
1222
1222
  const before = content.slice(0, index);
1223
1223
  const line = before.split("\n").length;
1224
1224
  const last_nl = before.lastIndexOf("\n");
1225
- const col = index - (last_nl >= 0 ? last_nl : 0);
1225
+ const col = index - Math.max(last_nl, 0);
1226
1226
  return { line, col };
1227
1227
  }
1228
1228
  function build_patterns(esc, type) {
@@ -2458,7 +2458,7 @@ function Diagram({
2458
2458
  title: "@rotorsoft/act-diagram version",
2459
2459
  children: [
2460
2460
  "v",
2461
- "1.3.0"
2461
+ "1.4.0"
2462
2462
  ]
2463
2463
  }
2464
2464
  )