Skip to content

Commit

Permalink
chore(extension): 【dynamic-group】transformWithContainer默认为false
Browse files Browse the repository at this point in the history
  • Loading branch information
wbccb authored and boyongjiong committed Sep 29, 2024
1 parent 8392464 commit 3c09c8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/extension/src/dynamic-group/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type IGroupNodeProperties = {
/**
* 缩放或旋转容器时,是否缩放或旋转组内节点
*/
transformWithContainer: boolean
transformWithContainer?: boolean

/**
* 当前分组元素的 zIndex
Expand Down Expand Up @@ -99,7 +99,7 @@ export class DynamicGroupNodeModel extends RectNodeModel<IGroupNodeProperties> {
// 当前分组是否在可添加状态 - 实时状态
@observable groupAddable: boolean = false
// 缩放或旋转容器时,是否缩放或旋转组内节点
@observable transformWithContainer: boolean = true
@observable transformWithContainer: boolean = false
childrenLastCollapseStateDict: Map<string, boolean> = new Map()

constructor(data: NodeConfig<IGroupNodeProperties>, graphModel: GraphModel) {
Expand Down Expand Up @@ -145,7 +145,7 @@ export class DynamicGroupNodeModel extends RectNodeModel<IGroupNodeProperties> {
this.collapsedHeight = collapsedHeight ?? DEFAULT_GROUP_COLLAPSE_HEIGHT

this.isRestrict = isRestrict ?? false
this.transformWithContainer = transformWithContainer ?? true
this.transformWithContainer = transformWithContainer ?? false
this.autoResize = autoResize ?? false
this.collapsible = collapsible ?? true
this.autoToFront = autoToFront ?? false
Expand Down
6 changes: 3 additions & 3 deletions sites/docs/docs/tutorial/extension/dynamic-group.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ export type IGroupNodeProperties = {
/**
* When scaling or rotating a container,
* do you scale or rotate the nodes within the group
* Default to true, when scaling or rotating the container,
* Default to false, when scaling or rotating the container,
* the nodes within the group are scaled or rotated by default
*/
transformWithContainer: boolean
transformWithContainer?: boolean

/**
* zIndex of the group element
Expand Down Expand Up @@ -259,4 +259,4 @@ Groups are a special type of node, so it is still possible to use [custom connec

Grouping functionality is not the same as swimlanes; developers need to implement swimlanes based on the grouping functionality. Future LogicFlow support for BPMN will include full BPMN swimlane support. Contributions for implementations are welcome.

:::
:::
4 changes: 2 additions & 2 deletions sites/docs/docs/tutorial/extension/dynamic-group.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ export type IGroupNodeProperties = {

/**
* 缩放或旋转容器时,是否缩放或旋转组内节点
* 默认为 true,缩放或旋转容器时,默认缩放或旋转组内节点
* 默认为 false,缩放或旋转容器时,默认缩放或旋转组内节点
*/
transformWithContainer: boolean
transformWithContainer?: boolean

/**
* 当前分组元素的 zIndex
Expand Down

0 comments on commit 3c09c8a

Please sign in to comment.