Skip to content
Snippets Groups Projects
Commit 9d348afc authored by Elora-V's avatar Elora-V
Browse files

launch default param

parent 8118d89c
Branches hotfix/0.1.4
Tags 0.1.8
No related merge requests found
Pipeline #265184 passed
......@@ -188,7 +188,7 @@ import {putAsDraggable} from '@/composables/UseDraggable';
import {getDefaultUserParam,userParamToLayoutParam} from '@/helpers/ParametersChoices';
// Package Layout
import { GraphStyleProperties, layoutOnNetwork, Network } from "@metabohub/viz-layout";
import { GraphStyleProperties, layoutOnNetwork, Network, UserParameters } from "@metabohub/viz-layout";
/////////////////////////////////////////////////////////////////////////////////
......@@ -283,7 +283,9 @@ const resetParameters =function():void{
* Return a function that apply layout : it takes a network and networkStyle
*/
const layout = function():void{
const layoutParameters=userParamToLayoutParam(parameters.value);
let layoutParameters:UserParameters;
if(tab.value=="advanced") layoutParameters=userParamToLayoutParam(parameters.value);
else layoutParameters=userParamToLayoutParam(defaultParameters);
const applyLayout = (network:Network, networkStyle?:GraphStyleProperties):Promise<Network> =>{
if (networkStyle===undefined) networkStyle={};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment