x
This commit is contained in:
parent
7dc0088bd2
commit
4f47c736ce
|
@ -1,8 +1,8 @@
|
|||
// Dialog for read-only display of the TermGraph for OSS. Currently ignores activeCst and only shows the schema graph.
|
||||
'use client';
|
||||
|
||||
import { ReactFlowProvider } from 'reactflow';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
// import { useDialogsStore } from '@/stores/dialogs';
|
||||
import { type IRSForm } from '@/features/rsform';
|
||||
import { RSTabID } from '@/features/rsform/pages/rsform-page/rsedit-context';
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ import { SelectColoring } from '@/features/rsform/components/term-graph/select-c
|
|||
import { ToolbarFocusedCst } from '@/features/rsform/components/term-graph/toolbar-focused-cst';
|
||||
import { applyLayout, produceFilteredGraph, type TGNodeData } from '@/features/rsform/models/graph-api';
|
||||
import { type IConstituenta, type IRSForm } from '@/features/rsform/models/rsform';
|
||||
import { flowOptions } from '@/features/rsform/pages/rsform-page/editor-term-graph/tg-flow';
|
||||
import { useTermGraphStore } from '@/features/rsform/stores/term-graph';
|
||||
|
||||
import { DiagramFlow, useReactFlow } from '@/components/flow/diagram-flow';
|
||||
|
@ -17,6 +16,16 @@ import { PARAMETER } from '@/utils/constants';
|
|||
|
||||
import ToolbarGraphFilter from './toolbar-graph-filter';
|
||||
|
||||
export const flowOptions = {
|
||||
fitView: true,
|
||||
fitViewOptions: { padding: 0.3, duration: PARAMETER.zoomDuration },
|
||||
edgesFocusable: false,
|
||||
nodesFocusable: false,
|
||||
nodesConnectable: false,
|
||||
maxZoom: 3,
|
||||
minZoom: 0.25
|
||||
} as const;
|
||||
|
||||
export interface TGReadonlyFlowProps {
|
||||
schema: IRSForm;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import { MiniButton } from '@/components/control';
|
|||
import { IconClustering, IconClusteringOff, IconFitImage, IconText, IconTextOff } from '@/components/icons';
|
||||
import { PARAMETER } from '@/utils/constants';
|
||||
|
||||
import { flowOptions } from '../../pages/oss-page/editor-oss-graph/oss-flow';
|
||||
import { flowOptions } from './tg-readonly-flow';
|
||||
|
||||
export default function ToolbarGraphFilter() {
|
||||
const filter = useTermGraphStore(state => state.filter);
|
||||
|
|
Loading…
Reference in New Issue
Block a user