- {controller.isMutable ? (
+
+
}
- disabled={controller.isProcessing || !isModified}
- onClick={onSavePositions}
+ icon={}
+ title='Сбросить вид'
+ onClick={onFitView}
/>
- ) : null}
- {controller.isMutable ? (
}
- disabled={!isModified}
- onClick={onResetPositions}
+ title={showGrid ? 'Скрыть сетку' : 'Отобразить сетку'}
+ icon={
+ showGrid ? (
+
+ ) : (
+
+ )
+ }
+ onClick={toggleShowGrid}
/>
- ) : null}
- }
- title='Сбросить вид'
- onClick={onFitView}
- />
-
- ) : (
-
- )
- }
- onClick={toggleShowGrid}
- />
- {controller.isMutable ? (
}
- disabled={controller.isProcessing}
- onClick={onCreate}
+ title={edgeStraight ? 'Связи: прямые' : 'Связи: безье'}
+ icon={
+ edgeStraight ? (
+
+ ) : (
+
+ )
+ }
+ onClick={toggleEdgeStraight}
/>
- ) : null}
- {controller.isMutable ? (
}
- disabled={controller.selected.length !== 1 || controller.isProcessing}
- onClick={onDelete}
+ title={edgeAnimate ? 'Анимация: вкл' : 'Анимация: выкл'}
+ icon={
+ edgeAnimate ? (
+
+ ) : (
+
+ )
+ }
+ onClick={toggleEdgeAnimate}
/>
+ }
+ title='Сохранить изображение'
+ onClick={onSaveImage}
+ />
+
+
+ {controller.isMutable ? (
+
+ {' '}
+ }
+ disabled={controller.isProcessing || !isModified}
+ onClick={onSavePositions}
+ />
+ }
+ disabled={!isModified}
+ onClick={onResetPositions}
+ />
+ }
+ disabled={controller.isProcessing}
+ onClick={onCreate}
+ />
+ }
+ disabled={controller.selected.length !== 1 || controller.isProcessing}
+ onClick={onDelete}
+ />
+
) : null}
-
}
- title='Сохранить изображение'
- onClick={onSaveImage}
- />
-
);
}
diff --git a/rsconcept/frontend/src/utils/constants.ts b/rsconcept/frontend/src/utils/constants.ts
index 5f1f4955..fe71fa73 100644
--- a/rsconcept/frontend/src/utils/constants.ts
+++ b/rsconcept/frontend/src/utils/constants.ts
@@ -114,6 +114,8 @@ export const storage = {
rsgraphFoldHidden: 'rsgraph.fold_hidden',
ossShowGrid: 'oss.show_grid',
+ ossEdgeStraight: 'oss.edge_straight',
+ ossEdgeAnimate: 'oss.edge_animate',
cstFilterMatch: 'cst.filter.match',
cstFilterGraph: 'cst.filter.graph'