markmap-view
Advanced tools
Comparing version 0.18.8 to 0.18.9
@@ -1,2 +0,3 @@ | ||
import { IMarkmapOptions, INode } from 'markmap-common'; | ||
import { INode } from 'markmap-common'; | ||
import { IMarkmapOptions } from './types'; | ||
export declare const isMacintosh: boolean; | ||
@@ -3,0 +4,0 @@ export declare const defaultColorFn: import("d3").ScaleOrdinal<string, string, never>; |
@@ -13,2 +13,5 @@ import { INode } from 'markmap-common'; | ||
} | ||
/** | ||
* Portable options that can be derived into `IMarkmapOptions`. | ||
*/ | ||
export interface IMarkmapJSONOptions { | ||
@@ -32,2 +35,23 @@ color: string[]; | ||
} | ||
export interface IMarkmapOptions { | ||
autoFit: boolean; | ||
duration: number; | ||
embedGlobalCSS: boolean; | ||
fitRatio: number; | ||
id?: string; | ||
initialExpandLevel: number; | ||
maxInitialScale: number; | ||
pan: boolean; | ||
scrollForPan: boolean; | ||
style?: (id: string) => string; | ||
toggleRecursively: boolean; | ||
zoom: boolean; | ||
color: (node: INode) => string; | ||
lineWidth: (node: INode) => number; | ||
maxWidth: number; | ||
nodeMinHeight: number; | ||
paddingX: number; | ||
spacingHorizontal: number; | ||
spacingVertical: number; | ||
} | ||
export interface IPadding { | ||
@@ -34,0 +58,0 @@ left: number; |
@@ -1,3 +0,2 @@ | ||
import { IMarkmapOptions } from 'markmap-common'; | ||
import { IMarkmapJSONOptions } from './types'; | ||
import { IMarkmapJSONOptions, IMarkmapOptions } from './types'; | ||
export declare function deriveOptions(jsonOptions?: Partial<IMarkmapJSONOptions>): Partial<IMarkmapOptions>; | ||
@@ -4,0 +3,0 @@ /** |
import type * as d3 from 'd3'; | ||
import { Hook, IMarkmapOptions, INode, IPureNode } from 'markmap-common'; | ||
import { ID3SVGElement, IMarkmapState, IPadding } from './types'; | ||
import { Hook, INode, IPureNode } from 'markmap-common'; | ||
import { ID3SVGElement, IMarkmapOptions, IMarkmapState, IPadding } from './types'; | ||
export declare const globalCSS: string; | ||
@@ -5,0 +5,0 @@ /** |
{ | ||
"name": "markmap-view", | ||
"version": "0.18.8", | ||
"version": "0.18.9", | ||
"description": "View markmaps in browser", | ||
@@ -49,3 +49,3 @@ "author": "Gerald <gera2ld@live.com>", | ||
"d3-flextree": "^2.1.2", | ||
"markmap-common": "0.18.8" | ||
"markmap-common": "0.18.9" | ||
}, | ||
@@ -55,3 +55,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "476d2e8abb528af6f6f0c468c6c63791b7c1911a" | ||
"gitHead": "4247555f57017ffc9297e5e5e031c4119de3ebaf" | ||
} |
89771
2479