@flowgram.ai/free-layout-core 0.3.5 → 0.3.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.
package/dist/esm/index.js CHANGED
@@ -110,8 +110,8 @@ function nanoid(n) {
110
110
  import { compose, composeAsync } from "@flowgram.ai/utils";
111
111
 
112
112
  // src/utils/fit-view.ts
113
- import { TransformData } from "@flowgram.ai/core";
114
113
  import { Rectangle } from "@flowgram.ai/utils";
114
+ import { TransformData } from "@flowgram.ai/core";
115
115
  var fitView = (doc, playgroundConfig, easing = true) => {
116
116
  const bounds = Rectangle.enlarge(
117
117
  doc.getAllNodes().map((node) => node.getData(TransformData).bounds)
@@ -1933,6 +1933,11 @@ var WorkflowDocument = class extends FlowDocument {
1933
1933
  get loading() {
1934
1934
  return this._loading;
1935
1935
  }
1936
+ /**
1937
+ * use `ctx.tools.fitView()` instead
1938
+ * @deprecated
1939
+ * @param easing
1940
+ */
1936
1941
  async fitView(easing) {
1937
1942
  return fitView(this, this.playgroundConfig, easing).then(() => {
1938
1943
  this.linesManager.forceUpdate();