| @@ -138,11 +138,11 @@ export default { | |||||
| dataMapDownloadStyle: '<style> #graph0 > polygon { fill: transparent; }' + | dataMapDownloadStyle: '<style> #graph0 > polygon { fill: transparent; }' + | ||||
| '.node, .cluster { cursor: pointer; }' + | '.node, .cluster { cursor: pointer; }' + | ||||
| '.selected { polygon, ellipse { stroke: red !important; stroke-width: 2px; } }' + | '.selected { polygon, ellipse { stroke: red !important; stroke-width: 2px; } }' + | ||||
| '.CreatDataset > polygon, .Operator > ellipse { stroke: #4ea6e6; fill: #b8e0ff; }' + | |||||
| '.Create > polygon, .Operator > ellipse { stroke: #4ea6e6; fill: #b8e0ff; }' + | |||||
| '.cluster > polygon { fill: #8df1f2; stroke: #00a5a7; }' + | '.cluster > polygon { fill: #8df1f2; stroke: #00a5a7; }' + | ||||
| '.RepeatDataset > polygon { stroke: #fdca5a; fill: #fff2d4; }' + | |||||
| '.ShuffleDataset > polygon { stroke: #e37d29; fill: #ffd0a6; }' + | |||||
| '.BatchDataset > polygon { stroke: #de504e; fill: #ffbcba; }' + | |||||
| '.edge { path { stroke: rgb(167, 167, 167); }' + | |||||
| 'polygon { fill: rgb(167, 167, 167); stroke: rgb(167, 167, 167); } }</style>', | |||||
| '.Repeat > polygon { stroke: #fdca5a; fill: #fff2d4; }' + | |||||
| '.Shuffle > polygon { stroke: #e37d29; fill: #ffd0a6; }' + | |||||
| '.Batch > polygon { stroke: #de504e; fill: #ffbcba; }' + | |||||
| '.edge path { stroke: rgb(167, 167, 167); }' + | |||||
| '.edge polygon { fill: rgb(167, 167, 167); stroke: rgb(167, 167, 167); }</style>', | |||||
| }; | }; | ||||
| @@ -255,19 +255,23 @@ export default { | |||||
| 'ShuffleDataset', | 'ShuffleDataset', | ||||
| 'RepeatDataset', | 'RepeatDataset', | ||||
| 'MapDataset', | 'MapDataset', | ||||
| 'Batch', | |||||
| 'Shuffle', | |||||
| 'Repeat', | |||||
| 'Map', | |||||
| ]; | ]; | ||||
| let nodeStr = ''; | let nodeStr = ''; | ||||
| let edgeStr = ''; | let edgeStr = ''; | ||||
| Object.keys(this.allGraphData).forEach((key) => { | Object.keys(this.allGraphData).forEach((key) => { | ||||
| const node = this.allGraphData[key]; | const node = this.allGraphData[key]; | ||||
| if (node.op_type === 'MapDataset') { | |||||
| if (node.op_type.startsWith('Map')) { | |||||
| nodeStr += this.packageSubGraph(key); | nodeStr += this.packageSubGraph(key); | ||||
| } else { | } else { | ||||
| node.id = key; | node.id = key; | ||||
| nodeStr += | nodeStr += | ||||
| `<${node.key}>[id="${node.key}";label="${node.op_type}";` + | `<${node.key}>[id="${node.key}";label="${node.op_type}";` + | ||||
| `class=${ | `class=${ | ||||
| nodeType.includes(node.op_type) ? node.op_type : 'CreatDataset' | |||||
| nodeType.includes(node.op_type) ? node.op_type.replace('Dataset', '') : 'Create' | |||||
| };shape=rect;fillcolor="#9cc3e5";];`; | };shape=rect;fillcolor="#9cc3e5";];`; | ||||
| } | } | ||||
| }); | }); | ||||
| @@ -277,12 +281,8 @@ export default { | |||||
| node.children.forEach((k) => { | node.children.forEach((k) => { | ||||
| const child = this.allGraphData[k]; | const child = this.allGraphData[k]; | ||||
| edgeStr += `<${child.id}>-><${node.id}>[${ | edgeStr += `<${child.id}>-><${node.id}>[${ | ||||
| child.op_type === 'MapDataset' | |||||
| ? `ltail=<cluster_${child.key}>;` | |||||
| : '' | |||||
| }${ | |||||
| node.op_type === 'MapDataset' ? `lhead=<cluster_${node.key}>;` : '' | |||||
| }];`; | |||||
| child.op_type.startsWith('Map') ? `ltail=<cluster_${child.key}>;` : '' | |||||
| }${node.op_type.startsWith('Map') ? `lhead=<cluster_${node.key}>;` : ''}];`; | |||||
| }); | }); | ||||
| }); | }); | ||||
| const initSetting = | const initSetting = | ||||
| @@ -692,7 +692,7 @@ export default { | |||||
| stroke: red !important; | stroke: red !important; | ||||
| stroke-width: 2px; | stroke-width: 2px; | ||||
| } | } | ||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .CreatDataset > polygon, | |||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .Create > polygon, | |||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .Operator > ellipse { | .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .Operator > ellipse { | ||||
| stroke: #4ea6e6; | stroke: #4ea6e6; | ||||
| fill: #b8e0ff; | fill: #b8e0ff; | ||||
| @@ -701,15 +701,15 @@ export default { | |||||
| fill: #8df1f2; | fill: #8df1f2; | ||||
| stroke: #00a5a7; | stroke: #00a5a7; | ||||
| } | } | ||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .RepeatDataset > polygon { | |||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .Repeat > polygon { | |||||
| stroke: #fdca5a; | stroke: #fdca5a; | ||||
| fill: #fff2d4; | fill: #fff2d4; | ||||
| } | } | ||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .ShuffleDataset > polygon { | |||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .Shuffle > polygon { | |||||
| stroke: #e37d29; | stroke: #e37d29; | ||||
| fill: #ffd0a6; | fill: #ffd0a6; | ||||
| } | } | ||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .BatchDataset > polygon { | |||||
| .cl-data-map-manage #data-maps .cl-data-map .data-map-container #graph .Batch > polygon { | |||||
| stroke: #de504e; | stroke: #de504e; | ||||
| fill: #ffbcba; | fill: #ffbcba; | ||||
| } | } | ||||
| @@ -2011,19 +2011,23 @@ export default { | |||||
| 'ShuffleDataset', | 'ShuffleDataset', | ||||
| 'RepeatDataset', | 'RepeatDataset', | ||||
| 'MapDataset', | 'MapDataset', | ||||
| 'Batch', | |||||
| 'Shuffle', | |||||
| 'Repeat', | |||||
| 'Map', | |||||
| ]; | ]; | ||||
| let nodeStr = ''; | let nodeStr = ''; | ||||
| let edgeStr = ''; | let edgeStr = ''; | ||||
| Object.keys(this.allDatasetGraphData).forEach((key) => { | Object.keys(this.allDatasetGraphData).forEach((key) => { | ||||
| const node = this.allDatasetGraphData[key]; | const node = this.allDatasetGraphData[key]; | ||||
| if (node.op_type === 'MapDataset') { | |||||
| if (node.op_type.startsWith('Map')) { | |||||
| nodeStr += this.packageSubGraph(key); | nodeStr += this.packageSubGraph(key); | ||||
| } else { | } else { | ||||
| node.id = key; | node.id = key; | ||||
| nodeStr += | nodeStr += | ||||
| `<${node.key}>[id="${node.key}";label="${node.op_type}";` + | `<${node.key}>[id="${node.key}";label="${node.op_type}";` + | ||||
| `class=${ | `class=${ | ||||
| nodeType.includes(node.op_type) ? node.op_type : 'CreatDataset' | |||||
| nodeType.includes(node.op_type) ? node.op_type.replace('Dataset', '') : 'Create' | |||||
| };shape=rect;fillcolor="#9cc3e5";];`; | };shape=rect;fillcolor="#9cc3e5";];`; | ||||
| } | } | ||||
| }); | }); | ||||
| @@ -2033,12 +2037,8 @@ export default { | |||||
| node.children.forEach((k) => { | node.children.forEach((k) => { | ||||
| const child = this.allDatasetGraphData[k]; | const child = this.allDatasetGraphData[k]; | ||||
| edgeStr += `<${child.id}>-><${node.id}>[${ | edgeStr += `<${child.id}>-><${node.id}>[${ | ||||
| child.op_type === 'MapDataset' | |||||
| ? `ltail=<cluster_${child.key}>;` | |||||
| : '' | |||||
| }${ | |||||
| node.op_type === 'MapDataset' ? `lhead=<cluster_${node.key}>;` : '' | |||||
| }];`; | |||||
| child.op_type.startsWith('Map') ? `ltail=<cluster_${child.key}>;` : '' | |||||
| }${node.op_type.startsWith('Map') ? `lhead=<cluster_${node.key}>;` : ''}];`; | |||||
| }); | }); | ||||
| }); | }); | ||||
| const initSetting = | const initSetting = | ||||
| @@ -2345,7 +2345,7 @@ export default { | |||||
| white-space: nowrap; | white-space: nowrap; | ||||
| overflow: hidden; | overflow: hidden; | ||||
| } | } | ||||
| .cl-dashboard #dataMapGraph .CreatDataset > polygon, | |||||
| .cl-dashboard #dataMapGraph .Create > polygon, | |||||
| .cl-dashboard #dataMapGraph .Operator > ellipse { | .cl-dashboard #dataMapGraph .Operator > ellipse { | ||||
| stroke: #4ea6e6; | stroke: #4ea6e6; | ||||
| fill: #b8e0ff; | fill: #b8e0ff; | ||||
| @@ -2354,15 +2354,15 @@ export default { | |||||
| fill: #8df1f2; | fill: #8df1f2; | ||||
| stroke: #00a5a7; | stroke: #00a5a7; | ||||
| } | } | ||||
| .cl-dashboard #dataMapGraph .RepeatDataset > polygon { | |||||
| .cl-dashboard #dataMapGraph .Repeat > polygon { | |||||
| stroke: #fdca5a; | stroke: #fdca5a; | ||||
| fill: #fff2d4; | fill: #fff2d4; | ||||
| } | } | ||||
| .cl-dashboard #dataMapGraph .ShuffleDataset > polygon { | |||||
| .cl-dashboard #dataMapGraph .Shuffle > polygon { | |||||
| stroke: #e37d29; | stroke: #e37d29; | ||||
| fill: #ffd0a6; | fill: #ffd0a6; | ||||
| } | } | ||||
| .cl-dashboard #dataMapGraph .BatchDataset > polygon { | |||||
| .cl-dashboard #dataMapGraph .Batch > polygon { | |||||
| stroke: #de504e; | stroke: #de504e; | ||||
| fill: #ffbcba; | fill: #ffbcba; | ||||
| } | } | ||||