-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
919 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cp -r ./dist/assets/dark_modern* ./node_modules/.vite/deps/dark_modern.json | ||
cp -r ./dist/assets/dark_plus* ./node_modules/.vite/deps/dark_plus.json | ||
cp -r ./dist/assets/dark_vs* ./node_modules/.vite/deps/dark_vs.json | ||
cp -r ./dist/assets/light_modern* ./node_modules/.vite/deps/light_modern.json | ||
cp -r ./dist/assets/light_plus* ./node_modules/.vite/deps/light_plus.json | ||
cp -r ./dist/assets/light_vs* ./node_modules/.vite/deps/light_vs.json |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.splitter { | ||
width: 100%; | ||
height: 80vh; | ||
display: flex; | ||
|
||
} | ||
|
||
#separator { | ||
cursor: col-resize; | ||
background-color: #aaa; | ||
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='30'><path d='M2 0 v30 M5 0 v30 M8 0 v30' fill='none' stroke='black'/></svg>"); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
width: 10px; | ||
height: 100%; | ||
|
||
/* Prevent the browser's built-in drag from interfering */ | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
} | ||
|
||
#first { | ||
background-color: rgb(255, 255, 255); | ||
width: 100%; | ||
height: 100%; | ||
min-width: 10px; | ||
} | ||
|
||
#second { | ||
background-color: rgb(255, 255, 255); | ||
width: 0%; | ||
height: 100%; | ||
min-width: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import introJs from "intro.js"; | ||
import { sendGenerateGraphCommand } from "./main"; | ||
|
||
|
||
export const initIntroJS = () => { | ||
|
||
|
||
var intro = introJs(); | ||
|
||
intro.setOptions({ | ||
steps: [{ | ||
element: '#container', intro: 'This is the texteditor where you write and edit your uvl feature model.', | ||
}, { | ||
element: '.codelens-decoration', intro: 'You can use the buttons to activate and deactivate functionality.' | ||
}, { | ||
element: "[id='1']", | ||
intro: 'Click here to visualize your feature model und click on it again to hide it again.' | ||
}, { | ||
element: "#separator", intro: 'You can change the size of the editor and the visualization with your mouse.' | ||
}], | ||
}); | ||
|
||
const button = document.getElementById("tutorialButton"); | ||
|
||
intro.onchange(function(targetElement) { | ||
if(targetElement.id === "1"){ | ||
sendGenerateGraphCommand(); | ||
} | ||
|
||
}); | ||
|
||
button?.addEventListener("click", () => { | ||
intro.setOption("exitOnOverlayClick", false); | ||
intro.setOption("overlayOpacity", 0); | ||
intro.setOption("disableInteraction", true); | ||
intro.setOption("highlightClass", "tmpClass"); | ||
intro.start(); | ||
|
||
var helperLayer = document.getElementsByClassName("tmpClass"); | ||
setTimeout(() => { | ||
if(helperLayer[0] instanceof HTMLElement){ | ||
helperLayer[0].style["box-shadow"] = "rgb(255, 255, 255) 0px 0px 1px 2px, rgba(230, 230, 230, 0.44) 0px 0px 0px 5000px"; | ||
} | ||
}, 100); | ||
|
||
|
||
}); | ||
|
||
} |
Oops, something went wrong.