@types/angular-ui-tree
TypeScript icon, indicating that this package has built-in type declarations

2.8.34 • Public • Published

Installation

npm install --save @types/angular-ui-tree

Summary

This package contains type definitions for angular-ui-tree (https://github.com/angular-ui-tree/angular-ui-tree).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-ui-tree.

index.d.ts

/// <reference types="angular" />

declare namespace AngularUITree {
    interface IEventSourceInfo {
        cloneModel: any;
        index: number;
        nodeScope: ITreeNodeScope;
        nodesScope: ITreeNodeScope;
    }

    interface IPosition {
        dirAx: number;
        dirX: number;
        dirY: number;
        distAxX: number;
        distAxY: number;
        distX: number;
        distY: number;
        lastDirX: number;
        lastDirY: number;
        lastX: number;
        lastY: number;
        moving: boolean;
        nowX: number;
        nowY: number;
        offsetX: number;
        offsetY: number;
        startX: number;
        startY: number;
    }

    interface IEventInfo {
        dest: {
            index: number;
            nodesScope: IParentTreeNodeScope;
        };
        elements: any;
        pos: IPosition;
        source: IEventSourceInfo;
    }

    interface IAcceptCallback {
        (source: ITreeNodeScope, destination: ITreeNodeScope, destinationIndex: number): boolean;
    }

    interface IDroppedCallback {
        (eventInfo: IEventInfo): void;
    }

    interface ICallbacks {
        accept: IAcceptCallback;
        dragStart: IDroppedCallback;
        dropped: IDroppedCallback;
    }

    /**
     * Internal representation of node in the UI
     */
    interface ITreeNodeScope extends ng.IScope {
        node: ITreeNode;
    }

    interface IParentTreeNodeScope extends ITreeNodeScope {
        isParent(nodeScope: ITreeNodeScope): boolean;
    }

    /**
     * Node in list
     */
    interface ITreeNode {
        id: number | string;
        nodes: ITreeNode[];
        title: string;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Calvin Fernandez.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/angular-ui-tree

Weekly Downloads

845

Version

2.8.34

License

MIT

Unpacked Size

6.07 kB

Total Files

5

Last publish

Collaborators

  • types