bring back overrides

This commit is contained in:
Mutasem 2021-10-20 15:28:43 +02:00
parent 8d703a4b6c
commit d19b31670a

View file

@ -200,7 +200,7 @@ if (!window.localStorage.getItem('OUTLINE_STROKE_COLOR')) {
window.localStorage.setItem('OUTLINE_STROKE_COLOR', 'transparent'); window.localStorage.setItem('OUTLINE_STROKE_COLOR', 'transparent');
} }
// @ts-ignore // @ts-ignore
const _OUTLINE_STROKE_COLOR = window.localStorage.getItem('OUTLINE_STROKE_COLOR'); const _OUTLINE_STROKE_COLOR = window.localStorage.getItem('OUTLINE_STROKE_COLOR') as string;
if (!window.localStorage.getItem('OUTLINE_STROKE_WIDTH')) { if (!window.localStorage.getItem('OUTLINE_STROKE_WIDTH')) {
window.localStorage.setItem('OUTLINE_STROKE_WIDTH', '12'); window.localStorage.setItem('OUTLINE_STROKE_WIDTH', '12');
@ -223,8 +223,8 @@ const _PUSH_NODES_LENGTH = parseInt(window.localStorage.getItem('PUSH_NODES_LENG
const CONNECTOR_PAINT_STYLE_DEFAULT: PaintStyle = { const CONNECTOR_PAINT_STYLE_DEFAULT: PaintStyle = {
stroke: getStyleTokenValue('--color-foreground-dark'), stroke: getStyleTokenValue('--color-foreground-dark'),
strokeWidth: 2, strokeWidth: 2,
outlineWidth: 12, outlineWidth: _OUTLINE_STROKE_WIDTH,
outlineStroke: 'transparent', outlineStroke: _OUTLINE_STROKE_COLOR,
}; };
const CONNECTOR_PAINT_STYLE_PRIMARY = { const CONNECTOR_PAINT_STYLE_PRIMARY = {