Skip to content

Commit

Permalink
Improved ghost mode
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Marston <[email protected]>
  • Loading branch information
richardmarston committed Jan 13, 2023
1 parent 8265f89 commit a1c5d57
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 19 deletions.
12 changes: 6 additions & 6 deletions cimsvg/images/asyn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion cimsvg/images/conn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions cimsvg/images/cons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion cimsvg/images/line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion cimsvg/images/node.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions cimsvg/images/sync.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion cimsvg/images/term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions cimsvg/images/trans.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions cimsvg/src/cimsvg.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ class cimsvg {
}

ghostModeOn() {
this.updateStyle(".fillwhenstill", "{ fill: none; stroke-dasharray: 2,4; stroke-width: 0.6px }");
this.updateStyle(".gridLine", "{ stroke: #000; stroke-dasharray: 1,20; }");
this.updateStyle(".fillwhenstill", "{ fill: none; stroke-width: 0.1px; }");
this.updateStyle(".gridLine", "{ stroke: #000; stroke-width: 0.1px; }");
}

ghostModeOff() {
this.updateStyle(".fillwhenstill", "{ fill: inherit; stroke-dasharray: 0; stroke-width: 1px; }");
this.updateStyle(".fillwhenstill", "{}");
this.updateStyle(".gridLine", "{ stroke: #aaa; stroke-dasharray: 0; }");
}

Expand Down

0 comments on commit a1c5d57

Please sign in to comment.