@flowgram.ai/free-layout-core 0.1.0-alpha.27 → 0.1.0-alpha.28

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
@@ -2740,10 +2740,7 @@ var WorkflowDragService = class {
2740
2740
  */
2741
2741
  async startDragSelectedNodes(triggerEvent) {
2742
2742
  let { selectedNodes } = this.selectService;
2743
- if (selectedNodes.length === 0 || this.isDragging) {
2744
- return Promise.resolve(false);
2745
- }
2746
- if (!this.document.options.enableReadonlyNodeDragging && (this.playgroundConfig.readonly || this.playgroundConfig.disabled)) {
2743
+ if (selectedNodes.length === 0 || this.playgroundConfig.readonly || this.playgroundConfig.disabled || this.isDragging) {
2747
2744
  return Promise.resolve(false);
2748
2745
  }
2749
2746
  this.isDragging = true;
@@ -3200,6 +3197,7 @@ var WorkflowDragService = class {
3200
3197
  const dragPos = config.getPosFromMouseEvent(e);
3201
3198
  newLineInfo = this.updateDrawingLine(isDrawingTo, line, dragPos, originLine);
3202
3199
  },
3200
+ // eslint-disable-next-line complexity
3203
3201
  onDragEnd: async (e) => {
3204
3202
  const dragPos = config.getPosFromMouseEvent(e);
3205
3203
  const onDragLineEndCallbacks = Array.from(this._onDragLineEndCallbacks.values());