Commit 2ac30694 authored by 李纪文's avatar 李纪文

fix: 分组层级、矩形框

parent e80c2cbe
......@@ -862,7 +862,12 @@ const ConfigurationView = (props) => {
goJS(
go.Group,
'Auto',
{ ungroupable: true },
{ ungroupable: true, zOrder: 1 },
{
// 设置其可选择
selectable: false,
layerName: 'Background'
},
goJS(
go.Shape,
'RoundedRectangle', // surrounds everything
......@@ -1093,8 +1098,9 @@ const ConfigurationView = (props) => {
roleVisibleBinding(), // 绑定角色可见
goJS(
go.Shape,
'Rectangle',
{ name: 'SHAPE', fill: 'rgba(128,128,128,0.2)', stroke: 'gray' },
'RoundedRectanglePlus',
{ name: 'SHAPE', fill: 'rgba(128,128,128,0.2)', stroke: 'gray', parameter1: 0 },
new go.Binding('parameter1', 'radius').makeTwoWay(),
new go.Binding('fill', 'fillColor').makeTwoWay(),
new go.Binding('stroke').makeTwoWay(),
new go.Binding('strokeWidth').makeTwoWay(),
......
......@@ -1277,7 +1277,12 @@ const ConfigurationView = (props) => {
goJS(
go.Group,
'Auto',
{ ungroupable: true },
{ ungroupable: true, zOrder: 1 },
{
// 设置其可选择
selectable: false,
layerName: 'Background'
},
goJS(
go.Shape,
'RoundedRectangle', // surrounds everything
......@@ -1520,8 +1525,9 @@ const ConfigurationView = (props) => {
roleVisibleBinding(), // 绑定角色可见
goJS(
go.Shape,
'Rectangle',
{ name: 'SHAPE', fill: 'rgba(128,128,128,0.2)', stroke: 'gray' },
'RoundedRectanglePlus',
{ name: 'SHAPE', fill: 'rgba(128,128,128,0.2)', stroke: 'gray', parameter1: 0 },
new go.Binding('parameter1', 'radius').makeTwoWay(),
new go.Binding('fill', 'fillColor').makeTwoWay(),
new go.Binding('stroke').makeTwoWay(),
new go.Binding('strokeWidth').makeTwoWay(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment