mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-06-14 02:40:45 +08:00
feat(graph-ui): animate bounded graph layout
This commit is contained in:
@@ -5,6 +5,9 @@ const DEFAULT_NATIVE_RUNTIME_OPTIONS = Object.freeze({
|
||||
graphNativeLayoutWorkerTimeoutMs: 260,
|
||||
nativeEngineFailOpen: true,
|
||||
graphNativeForceDisable: false,
|
||||
graphAnimatedLayout: true,
|
||||
graphLayoutAnimation: true,
|
||||
graphLayoutAnimationEnabled: true,
|
||||
});
|
||||
|
||||
function clampPositiveInt(value, fallback, { min = 1, max = 120000 } = {}) {
|
||||
@@ -57,6 +60,18 @@ export function normalizeGraphNativeRuntimeOptions(options = {}) {
|
||||
source.graphNativeForceDisable,
|
||||
DEFAULT_NATIVE_RUNTIME_OPTIONS.graphNativeForceDisable,
|
||||
),
|
||||
graphAnimatedLayout: normalizeBoolean(
|
||||
source.graphAnimatedLayout,
|
||||
DEFAULT_NATIVE_RUNTIME_OPTIONS.graphAnimatedLayout,
|
||||
),
|
||||
graphLayoutAnimation: normalizeBoolean(
|
||||
source.graphLayoutAnimation,
|
||||
DEFAULT_NATIVE_RUNTIME_OPTIONS.graphLayoutAnimation,
|
||||
),
|
||||
graphLayoutAnimationEnabled: normalizeBoolean(
|
||||
source.graphLayoutAnimationEnabled,
|
||||
DEFAULT_NATIVE_RUNTIME_OPTIONS.graphLayoutAnimationEnabled,
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user