@flowgram.ai/renderer 0.1.13 → 0.1.14
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 +4 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -2659,11 +2659,8 @@ FlowSelectorBoxLayer = __decorateClass([
|
|
|
2659
2659
|
// src/layers/flow-selector-bounds-layer.tsx
|
|
2660
2660
|
import React16 from "react";
|
|
2661
2661
|
import { inject as inject10, injectable as injectable11 } from "inversify";
|
|
2662
|
-
import {
|
|
2663
|
-
|
|
2664
|
-
FlowNodeRenderData as FlowNodeRenderData6,
|
|
2665
|
-
FlowNodeTransformData as FlowNodeTransformData9
|
|
2666
|
-
} from "@flowgram.ai/document";
|
|
2662
|
+
import { domUtils as domUtils8 } from "@flowgram.ai/utils";
|
|
2663
|
+
import { FlowNodeEntity as FlowNodeEntity8, FlowNodeRenderData as FlowNodeRenderData6, FlowNodeTransformData as FlowNodeTransformData9 } from "@flowgram.ai/document";
|
|
2667
2664
|
import {
|
|
2668
2665
|
CommandRegistry,
|
|
2669
2666
|
EditorState as EditorState3,
|
|
@@ -2672,7 +2669,6 @@ import {
|
|
|
2672
2669
|
observeEntity as observeEntity9,
|
|
2673
2670
|
observeEntityDatas as observeEntityDatas7
|
|
2674
2671
|
} from "@flowgram.ai/core";
|
|
2675
|
-
import { domUtils as domUtils8 } from "@flowgram.ai/utils";
|
|
2676
2672
|
var FlowSelectorBoundsLayer = class extends Layer9 {
|
|
2677
2673
|
constructor() {
|
|
2678
2674
|
super(...arguments);
|
|
@@ -2729,6 +2725,7 @@ var FlowSelectorBoundsLayer = class extends Layer9 {
|
|
|
2729
2725
|
render() {
|
|
2730
2726
|
const {
|
|
2731
2727
|
ignoreOneSelect,
|
|
2728
|
+
ignoreChildrenLength,
|
|
2732
2729
|
SelectorBoxPopover: SelectorBoxPopoverFromOpts,
|
|
2733
2730
|
disableBackground,
|
|
2734
2731
|
CustomBoundsRenderer
|
|
@@ -2739,7 +2736,7 @@ var FlowSelectorBoundsLayer = class extends Layer9 {
|
|
|
2739
2736
|
const isDragging = !this.selectorBoxConfigEntity.isStart;
|
|
2740
2737
|
if (bounds.width === 0 || bounds.height === 0 || // 选中单个的时候不显示
|
|
2741
2738
|
ignoreOneSelect && selectedNodes.length === 1 && // 选中的节点不包含多个子节点
|
|
2742
|
-
selectedNodes[0].childrenLength <= 1) {
|
|
2739
|
+
(ignoreChildrenLength || selectedNodes[0].childrenLength <= 1)) {
|
|
2743
2740
|
domUtils8.setStyle(bg, {
|
|
2744
2741
|
display: "none"
|
|
2745
2742
|
});
|