Skip to content

Commit

Permalink
[shgraph] Fix comment preventing move of child boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
EspeuteClement committed Nov 20, 2024
1 parent 506e078 commit b89f56b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
28 changes: 16 additions & 12 deletions bin/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2396,15 +2396,26 @@ input[type=checkbox]:checked:after {
.graph-view .heaps-scene svg foreignObject .container input:hover {
outline-color: rgba(114, 180, 255, 0.5);
}
.graph-view .heaps-scene svg g.selected .outline {
stroke: #668fff;
.graph-view .heaps-scene svg g.box {
pointer-events: all;
}
.graph-view .heaps-scene svg g.error .outline {
stroke: #ff6666;
.graph-view .heaps-scene svg g.box.comment {
pointer-events: none;
}
.graph-view .heaps-scene svg g.box {
.graph-view .heaps-scene svg g.box.comment .head-box {
fill: rgba(80, 80, 80, 0.5);
pointer-events: all;
}
.graph-view .heaps-scene svg g.box.comment .resize {
pointer-events: all;
}
.graph-view .heaps-scene svg g.box.comment .outline {
stroke: rgba(80, 80, 80, 0.5);
stroke-width: 3;
}
.graph-view .heaps-scene svg g.box.selected .outline {
stroke: #668fff;
}
.graph-view .heaps-scene svg .outline {
fill: none;
}
Expand All @@ -2419,13 +2430,6 @@ input[type=checkbox]:checked:after {
fill: rgba(0, 0, 0, 0);
stroke: none;
}
.graph-view .heaps-scene svg .comment .head-box {
fill: rgba(80, 80, 80, 0.5);
}
.graph-view .heaps-scene svg .comment .outline {
stroke: rgba(80, 80, 80, 0.5);
stroke-width: 3;
}
.graph-view .heaps-scene svg .comment-title {
display: inline-block;
max-width: calc(100% - 30px);
Expand Down
48 changes: 25 additions & 23 deletions bin/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -2722,19 +2722,33 @@ input[type=checkbox] {
}

g {
&.selected {
.outline {
stroke: #668fff;
}
}
&.error {
.outline {
stroke: #ff6666;
}
}

&.box {
pointer-events: all;

&.comment {
.head-box {
fill: rgba(80,80,80,0.5);
//stroke-width: 3;
pointer-events: all;
}

.resize {
pointer-events: all;
}

.outline {
stroke: rgba(80,80,80,0.5);
stroke-width: 3;
}

pointer-events: none;
}

&.selected {
.outline {
stroke: #668fff;
}
}
}
}

Expand All @@ -2756,18 +2770,6 @@ input[type=checkbox] {
stroke: none;
}

.comment {
.head-box {
fill: rgba(80,80,80,0.5);
//stroke-width: 3;
}

.outline {
stroke: rgba(80,80,80,0.5);
stroke-width: 3;
}
}

.comment-title {
display: inline-block;
max-width: calc(100% - 30px);
Expand Down
7 changes: 0 additions & 7 deletions hrt/shgraph/ShaderGlobalInput.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ class ShaderGlobalInput extends ShaderNode {
}
}

// override function generate(ctx: NodeGenContext) {
// var input = ctx.getGlobalInput(globalInputs[variableIdx].g);

// ctx.setOutput(0, input);
// ctx.addPreview(input);
// }

override public function getAliases(name: String, group: String, description: String) {
var aliases = super.getAliases(name, group, description);
for (i => input in globalInputs) {
Expand Down

0 comments on commit b89f56b

Please sign in to comment.