Commit d0982168 authored by 李纪文's avatar 李纪文

fix: 组态增加分组

parent d7390d66
......@@ -856,6 +856,33 @@ const ConfigurationView = (props) => {
},
);
/** **********************************分组模型************************************* */
myDiagram.groupTemplate =
('groupCase',
goJS(
go.Group,
'Auto',
{ ungroupable: true },
goJS(
go.Shape,
'RoundedRectangle', // surrounds everything
{
parameter1: 10,
fill: 'transparent',
strokeWidth: 0,
stroke: 'transparent',
},
),
goJS(
go.Panel,
'Auto', // position header above the subgraph
goJS(
go.Placeholder, // represents area for all member parts
{ background: 'transparent' },
),
),
));
// 自定义矩形
go.Shape.defineFigureGenerator('RoundedRectanglePlus', (shape, w, h) => {
// this figure takes one parameter, the size of the corner
......
......@@ -1271,6 +1271,33 @@ const ConfigurationView = (props) => {
},
);
/** **********************************分组模型************************************* */
myDiagram.groupTemplate =
('groupCase',
goJS(
go.Group,
'Auto',
{ ungroupable: true },
goJS(
go.Shape,
'RoundedRectangle', // surrounds everything
{
parameter1: 10,
fill: 'transparent',
strokeWidth: 0,
stroke: 'transparent',
},
),
goJS(
go.Panel,
'Auto', // position header above the subgraph
goJS(
go.Placeholder, // represents area for all member parts
{ background: 'transparent' },
),
),
));
// 自定义矩形
go.Shape.defineFigureGenerator('RoundedRectanglePlus', (shape, w, h) => {
// this figure takes one parameter, the size of the corner
......
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