New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

markmap-view

Package Overview
Dependencies
Maintainers
0
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markmap-view - npm Package Compare versions

Comparing version 0.18.8 to 0.18.9

3

dist/constants.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc