文件名从 src/views/project/yw/systemManage/metricAgentMgr/graph/shape.ts 修改 |
| | |
| | | }; |
| | | |
| | | export const rectShape = (id, name) => ({ |
| | | shape:'rect', |
| | | width: 80, |
| | | height: 42, |
| | | attrs: { |
| | |
| | | fill: '#080808', |
| | | class: 'name', |
| | | |
| | | refX: '50%', |
| | | refY: '100%', |
| | | refY2: NODE_TEXT_SPACE, |
| | | yAlign: 'top', |
| | | refY: '0', |
| | | refY2: -NODE_TEXT_SPACE, |
| | | yAlign: 'bottom', |
| | | }, |
| | | }, |
| | | markup: [ |
| | |
| | | ports: { ...directionPorts(id) }, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | export const ellipseShape = (id, name) => ({ |
| | | shape:'rect', |
| | | width: 80, |
| | | height: 42, |
| | | attrs: { |
| | | body: { |
| | | stroke: useCssVar('--el-color-warning').value, |
| | | strokeWidth: 1, |
| | | fill: useCssVar('--el-color-warning-light-7').value, |
| | | }, |
| | | text: { |
| | | text: name, |
| | | fontSize: BASE_FONT_SIZE, |
| | | fill: '#080808', |
| | | class: 'name', |
| | | |
| | | refX: '100%', |
| | | refX2: NODE_TEXT_SPACE, |
| | | xAlign: 'left', |
| | | }, |
| | | }, |
| | | markup: [ |
| | | { |
| | | tagName: 'rect', |
| | | selector: 'body', |
| | | }, |
| | | { |
| | | tagName: 'text', |
| | | selector: 'text', |
| | | }, |
| | | ], |
| | | ports: { ...directionPorts(id) }, |
| | | }); |
| | | export const verticalRectShape = (id, name) => ({ |
| | | width: 30, |
| | | height: 100, |
| | |
| | | fill: '#080808', |
| | | // writingMode: 'tb-rl', |
| | | class: 'name', |
| | | refX: '100%', |
| | | refX2: NODE_TEXT_SPACE, |
| | | refY: '50%', |
| | | xAlign: 'left', |
| | | // refX: '100%', |
| | | // refX2: NODE_TEXT_SPACE, |
| | | // refY: '50%', |
| | | // xAlign: 'left', |
| | | |
| | | |
| | | refX: '50%', |
| | | refY: '100%', |
| | | refY2: NODE_TEXT_SPACE, |
| | | yAlign: 'top', |
| | | }, |
| | | }, |
| | | }; |