Skip to content

Commit

Permalink
add fuzziness to edge labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddykasp committed Nov 8, 2024
1 parent b181d9c commit 03e8c71
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import de.cau.cs.kieler.klighd.kgraph.KNode
import de.cau.cs.kieler.klighd.krendering.ViewSynthesisShared
import de.cau.cs.kieler.sccharts.Scope
import de.cau.cs.kieler.sccharts.Transition
import de.cau.cs.kieler.sccharts.ui.synthesis.hooks.SynthesisActionHook
import de.cau.cs.kieler.sccharts.ui.synthesis.GeneralSynthesisOptions
import de.cau.cs.kieler.sccharts.ui.synthesis.labels.LabelFocusSelectionListener
import de.cau.cs.kieler.sccharts.ui.synthesis.labels.LabelShorteningStrategies
import org.eclipse.elk.core.labels.LabelManagementOptions
import org.eclipse.elk.core.options.CoreOptions

import static extension de.cau.cs.kieler.klighd.syntheses.DiagramSyntheses.*
import static extension de.cau.cs.kieler.klighd.util.ModelingUtil.*
Expand Down Expand Up @@ -81,6 +81,9 @@ class LabelShorteningHook extends SynthesisActionHook {
if (HIDE_LABELS.booleanValue) {
edge.eContents.filter(KLabel).forEach[initiallyHide]
}
edge.labels.forEach[
it.setProperty(CoreOptions::SOFTWRAPPING_FUZZINESS, 0.3)
]
}

override executeAction(KNode rootNode) {
Expand Down

0 comments on commit 03e8c71

Please sign in to comment.