- fillTemplate(root, assets, extra?): string
Parameters
- root: null | IPureNode
- assets: IAssets
Optional
extra: {
baseJs?: JSItem[];
getOptions?: ((jsonOptions: Partial<{
color: string[];
colorFreezeLevel: number;
duration: number;
extraCss: string[];
extraJs: string[];
fitRatio: number;
htmlParser: any;
initialExpandLevel: number;
maxInitialScale: number;
maxWidth: number;
nodeMinHeight: number;
paddingX: number;
pan: boolean;
spacingHorizontal: number;
spacingVertical: number;
zoom: boolean;
}>) => Partial<IMarkmapOptions>);
jsonOptions?: Partial<{
color: string[];
colorFreezeLevel: number;
duration: number;
extraCss: string[];
extraJs: string[];
fitRatio: number;
htmlParser: any;
initialExpandLevel: number;
maxInitialScale: number;
maxWidth: number;
nodeMinHeight: number;
paddingX: number;
pan: boolean;
spacingHorizontal: number;
spacingVertical: number;
zoom: boolean;
}>;
urlBuilder?: UrlBuilder;
}Optional
baseJs?: JSItem[]
Optional
getOptions?: ((jsonOptions: Partial<{
color: string[];
colorFreezeLevel: number;
duration: number;
extraCss: string[];
extraJs: string[];
fitRatio: number;
htmlParser: any;
initialExpandLevel: number;
maxInitialScale: number;
maxWidth: number;
nodeMinHeight: number;
paddingX: number;
pan: boolean;
spacingHorizontal: number;
spacingVertical: number;
zoom: boolean;
}>) => Partial<IMarkmapOptions>)
- (jsonOptions): Partial<IMarkmapOptions>
Parameters
- jsonOptions: Partial<{
color: string[];
colorFreezeLevel: number;
duration: number;
extraCss: string[];
extraJs: string[];
fitRatio: number;
htmlParser: any;
initialExpandLevel: number;
maxInitialScale: number;
maxWidth: number;
nodeMinHeight: number;
paddingX: number;
pan: boolean;
spacingHorizontal: number;
spacingVertical: number;
zoom: boolean;
}>
Optional
jsonOptions?: Partial<{
color: string[];
colorFreezeLevel: number;
duration: number;
extraCss: string[];
extraJs: string[];
fitRatio: number;
htmlParser: any;
initialExpandLevel: number;
maxInitialScale: number;
maxWidth: number;
nodeMinHeight: number;
paddingX: number;
pan: boolean;
spacingHorizontal: number;
spacingVertical: number;
zoom: boolean;
}>
Optional
urlBuilder?: UrlBuilder
Returns string