Skip to main content

Geometry Config

The geometry config controls the visibility and behavior of the interaction layer — hover effects and Objects Tree sync. Changes are applied as a partial merge: only the properties you pass are updated.

setGeomConfig()

setGeomConfig(config: Partial<IGeomConfig>): void;

Pass only the properties you want to change. Unspecified properties keep their current values.

var ctrl = Visu.page0.display1.getController();

// Disable hover at low zoom levels
ctrl.setGeomConfig({
hoverSensitivity: 50,
});

IGeomConfig reference

PropertyTypeDefaultDescription
hoverSensitivitynumber (0–100)100How eagerly entities respond to hover. 100 = works at any zoom. 33 = requires ~3× zoom. 0 = disabled at all zooms
hoverEnabledbooleantrueWhen false, hover effects are never shown regardless of hoverSensitivity
hoverTreeLinkbooleantrueWhen true, hovering an entity in the canvas highlights it in the Objects Tree and vice-versa