From b9679651519dcd925a489548d30a0c8e4f7144f2 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Thu, 11 Oct 2018 21:22:31 +0100 Subject: [PATCH] Began defining functions --- types/d3-graphviz/index.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 8dc81e1f1c..7adf792638 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -3,6 +3,24 @@ // Definitions by: Dom Parfitt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export function extractElementData(element: any): any; +export function extractAllElementsData(element: any): any; +export function createElement(data: any): any; +export function createElementWithAttributes(data: any): any; +export function replaceElement(element: any, data: any): any; +export function insertElementData(element: any, datum: any): void; +export function insertAllElementsData(element: any, datum: any): void; +export function insertChildren(element: any, index: any): void; +export function attributeElement(data: any): void; +export function shallowCopyObject(obj: any): any; +export function roundTo4Decimals(x: number): number; +// var zoom$1 = function (enable) +export function createZoomBehavior(): any; +export function getTranslatedZoomTransform(selection$$1: any): any; +export function translateZoomBehaviorTransform(selection$$1: any): any; + +// ======================================================================== + /*~ If this module is a UMD module that exposes a global variable 'myLib' when *~ loaded outside a module loader environment, declare that global here. *~ Otherwise, delete this declaration.