Merge branch 'sprotty' of https://github.com/spring-projects/sts4 into sprotty

This commit is contained in:
BoykoAlex
2019-08-29 12:37:56 -04:00
2 changed files with 7 additions and 4 deletions

View File

@@ -15,9 +15,9 @@
********************************************************************************/
.sprotty-node {
fill: #aae;
fill: rgb(229, 231, 231);
stroke: #66b;
stroke-width: 3;
stroke-width: 2;
}
.sprotty-text {
@@ -28,7 +28,7 @@
.sprotty-edge {
fill: none;
stroke: #488;
stroke-width: 2;
stroke-width: 1;
}
.sprotty-node.selected {

View File

@@ -112,7 +112,10 @@ export class ChannelNodeView extends RectangularNodeView {
const h = Math.max(node.size.height, 0);
const path = `M 0 ${h} H ${w-8} A 8 ${h/2} 0 0 0 ${w-8} 0 H 0`;
return <g>
<g class-sprotty-node={node instanceof SNode}>
<g class-sprotty-node={node instanceof SNode}
class-mouseover={node.hoverFeedback}
class-selected={node.selected}
>
<path d={path}/>
<ellipse cx="0" cy={h/2} rx="8" ry={h/2}/>
</g>