Add new setting modeling.highlightEdges
(#2166)
* Add doc comment to getThemeColorForEngine * Add a user-level setting for highlightEdges * Add a custom settings action to update the edge line visibility * Make the settings pane always open to user settings first * Refactor engineConnectionMananer.start() to take a settings object * Revert alway open user settings * Set highlight edges on engine start up * fmt fml * Fix tsc error
This commit is contained in:
@ -74,13 +74,16 @@ export const ModelingMachineProvider = ({
|
||||
settings: {
|
||||
context: {
|
||||
app: { theme },
|
||||
modeling: { defaultUnit },
|
||||
modeling: { defaultUnit, highlightEdges },
|
||||
},
|
||||
},
|
||||
} = useSettingsAuthContext()
|
||||
const token = auth?.context?.token
|
||||
const streamRef = useRef<HTMLDivElement>(null)
|
||||
useSetupEngineManager(streamRef, token, theme.current)
|
||||
useSetupEngineManager(streamRef, token, {
|
||||
theme: theme.current,
|
||||
highlightEdges: highlightEdges.current,
|
||||
})
|
||||
const { htmlRef } = useStore((s) => ({
|
||||
htmlRef: s.htmlRef,
|
||||
}))
|
||||
|
Reference in New Issue
Block a user