-
Notifications
You must be signed in to change notification settings - Fork 3
Hoveringanpassungen bei Aufgaben mit Petrinetzanzeige #572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
Funktioniert Also führt das Ausschalten auch tatsächlich dazu, dass dies nicht mehr möglich ist? Wenn ich diese Änderungen hier nämlich teste, führt dies bei mir nicht dazu, dass beim Hovern kein Highlighten mehr stattfindet. Beim Erstellen der SVGs wird aber der korrekte Wert |
|
Well this comment: #260 (comment) stated that yes, stuff is still annotated when this setting is used, but the annotations are somehow problematically structured then (for reasons beneficial elsewhere) and that
So, the highlighting should be effectively (though "accidentally") turned off, then. I guess the first thing to check now is whether flipping that config bit makes any difference for the generated |
|
Presumably the changes to That is, the modelling-tasks/src/Modelling/PetriNet/Diagram.hs Lines 251 to 253 in ded1ef6
is what should be different/relevant between |
The generated SVGs seem to be different. There are additional classes for the elements in the "without highlight" SVG (like [Interestingly, the class names also differ for me when I generate them through Autotool or manually in |
|
Could it be that the “hack” no longer works? I generally mislike the idea to implement features by abusing some kind of "bug". It probably shouldn't be too hard to just add a class to the (root) SVG element in order to disable highlighting (also updating the CSS rules accordingly). Also: attaching arbitrary data to any HTML (or SVG) element is pretty easy. You can just use That way it would be easier to separate the two concerns. |
|
Okay. I think the best way forward, then, is:
|
|
(That was written without seeing your comment. Maybe your approach is ultimately the conceptually better one. But there are other constraints here, like what the additional labels were originally meant for, and also a desire to not otherwise change the css now. I'd opt for the minimal immediate change that will have the desired impact.) |
|
It seems like my concept isn't that easy to implement here. I will elaborate more in #562. |
|
You introduced a new parameter into the lecturer-facing config data types. That is not what I had in mind above:
That was purely about having an additional parameter in the (Someone outside this codebase, but using it as a library, might call these functions with that parameter set to |
Got it. However, always setting that variable to |
|
How does setting a parameter |
Closes #229