Dockview
    Preparing search index...

    Interface ISmartGuidesService

    interface ISmartGuidesService {
        enabled: boolean;
        onDidSnapFloat: DockviewEvent<SmartGuidesSnapEvent>;
        onDidSnapTogether: DockviewEvent<SmartGuidesSnapTogetherEvent>;
        dispose(): void;
        setEnabled(enabled: boolean): void;
        transformFloatingGroupDrag(
            context: FloatingGroupDragContext,
        ): void | { left: number; top: number };
        updateOptions(options: Partial<SmartGuidesOptions>): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    enabled: boolean

    Whether snapping is currently active (option present + enabled).

    Methods

    • Toggle snapping at runtime (overrides smartGuides.enabled).

      Parameters

      • enabled: boolean

      Returns void

    • Snap the proposed drag position against the other floating groups, drawing an alignment guide on the snapped edge. Returns an adjusted top-left, or nothing to leave the proposed position unchanged, which is also the pass-through when smartGuides is unset / disabled.

      Parameters

      Returns void | { left: number; top: number }