|
22 | 22 | PackageScope["$typeGraphLayout"]
|
23 | 23 | PackageScope["$typeGraphBackground"]
|
24 | 24 | PackageScope["$evolutionObjectIcon"]
|
| 25 | +PackageScope["$setReplaceTypeDisplayFunction"] |
| 26 | +PackageScope["$setReplaceTypeDisplayFunctionVersioned"] |
25 | 27 | PackageScope["$destroyedEdgeStyle"]
|
26 | 28 | PackageScope["$createdEdgeStyle"]
|
27 | 29 | PackageScope["$destroyedAndCreatedEdgeStyle"]
|
|
102 | 104 | "Background" -> $typeGraphBackground
|
103 | 105 | |>,
|
104 | 106 | "EvolutionObject" -> <|"Icon" -> $evolutionObjectIcon|>,
|
| 107 | + "SetReplaceType" -> <| |
| 108 | + "DisplayFunction" -> $setReplaceTypeDisplayFunction, |
| 109 | + "DisplayFunctionVersioned" -> $setReplaceTypeDisplayFunctionVersioned |
| 110 | + |>, |
105 | 111 | "SpatialGraph" -> <|
|
106 | 112 | "DestroyedEdgeStyle" -> $destroyedEdgeStyle,
|
107 | 113 | "CreatedEdgeStyle" -> $createdEdgeStyle,
|
|
247 | 253 | (* Evolution object *)
|
248 | 254 | $evolutionObjectIcon -> $graphIcon,
|
249 | 255 |
|
| 256 | + (* SetReplaceType *) |
| 257 | + $setReplaceTypeDisplayFunction -> (FrameBox[ |
| 258 | + PanelBox[ |
| 259 | + GridBox[ |
| 260 | + {{StyleBox[#1, FontSize -> 13, FontColor -> RGBColor[0.034, 0.3, 0.42], FontWeight -> "SemiBold"]}}, |
| 261 | + BaselinePosition -> {1, 1}], |
| 262 | + Background -> RGBColor[0.9517, 0.965, 0.971], |
| 263 | + BaselinePosition -> Baseline, |
| 264 | + FrameMargins -> {{3, 3}, {1.5, 1.5}}], |
| 265 | + FrameMargins -> None, |
| 266 | + FrameStyle -> RGBColor[0.65, 0.65, 0.65], |
| 267 | + BaselinePosition -> Baseline, |
| 268 | + RoundingRadius -> 4] &), |
| 269 | + |
| 270 | + $setReplaceTypeDisplayFunctionVersioned -> (FrameBox[ |
| 271 | + PanelBox[ |
| 272 | + GridBox[{{ |
| 273 | + StyleBox[#1, FontSize -> 13, FontColor -> RGBColor[0.034, 0.3, 0.42], FontWeight -> "SemiBold"], |
| 274 | + StyleBox[#2, FontColor -> RGBColor[0.517, 0.65, 0.71], FontSize -> 13, FontWeight -> "Plain"]}}, |
| 275 | + GridBoxSpacings -> {"Columns" -> {{0.3}}, "Rows" -> {{0}}}, |
| 276 | + BaselinePosition -> {1, 1}], |
| 277 | + Background -> RGBColor[0.9517, 0.965, 0.971], |
| 278 | + BaselinePosition -> Baseline, |
| 279 | + FrameMargins -> {{3, 3}, {1.5, 1.5}}], |
| 280 | + FrameMargins -> None, |
| 281 | + FrameStyle -> RGBColor[0.65, 0.65, 0.65], |
| 282 | + BaselinePosition -> Baseline, |
| 283 | + RoundingRadius -> 4] &), |
| 284 | + |
250 | 285 | (* Hypergraph diffs *)
|
251 | 286 | $destroyedEdgeStyle -> Directive[Hue[0.08, 0, 0.42], AbsoluteDashing[{1, 2}]],
|
252 | 287 | $createdEdgeStyle -> Directive[Hue[0.02, 0.94, 0.83], Thick],
|
|
0 commit comments