markmap-view 0.18.5 → 0.18.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -26,6 +26,7 @@ export interface IMarkmapJSONOptions {
26
26
  spacingHorizontal: number;
27
27
  spacingVertical: number;
28
28
  zoom: boolean;
29
+ lineWidth: number | number[];
29
30
  }
30
31
  export interface IPadding {
31
32
  left: number;
package/dist/view.d.ts CHANGED
@@ -7,7 +7,27 @@ export declare const globalCSS: string;
7
7
  */
8
8
  export declare const refreshHook: Hook<[]>;
9
9
  export declare class Markmap {
10
- options: IMarkmapOptions;
10
+ options: {
11
+ autoFit: boolean;
12
+ duration: number;
13
+ embedGlobalCSS: boolean;
14
+ fitRatio: number;
15
+ id?: string;
16
+ initialExpandLevel: number;
17
+ maxInitialScale: number;
18
+ pan: boolean;
19
+ scrollForPan: boolean;
20
+ style?: (id: string) => string;
21
+ toggleRecursively: boolean;
22
+ zoom: boolean;
23
+ color: (node: INode) => string;
24
+ lineWidth: (node: INode) => number;
25
+ maxWidth: number;
26
+ nodeMinHeight: number;
27
+ paddingX: number;
28
+ spacingHorizontal: number;
29
+ spacingVertical: number;
30
+ };
11
31
  state: IMarkmapState;
12
32
  svg: ID3SVGElement;
13
33
  styleNode: d3.Selection<HTMLStyleElement, INode, HTMLElement, INode>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-view",
3
- "version": "0.18.5",
3
+ "version": "0.18.8",
4
4
  "description": "View markmaps in browser",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "url": "git+https://github.com/markmap/markmap.git"
20
20
  },
21
21
  "scripts": {
22
- "clean": "del-cli dist",
22
+ "clean": "del-cli dist tsconfig.tsbuildinfo",
23
23
  "build:types": "tsc",
24
24
  "build:js": "vite build && TARGET=es vite build",
25
25
  "build": "pnpm clean && pnpm /^build:/",
@@ -39,17 +39,17 @@
39
39
  "typings": "dist/index.d.ts",
40
40
  "dependencies": {
41
41
  "@babel/runtime": "^7.22.6",
42
- "@gera2ld/jsx-dom": "^2.2.2",
43
- "@types/d3": "^7.4.0",
44
- "d3": "^7.8.5",
45
- "d3-flextree": "^2.1.2"
42
+ "d3": "^7.8.5"
46
43
  },
47
44
  "devDependencies": {
45
+ "@gera2ld/jsx-dom": "^2.2.2",
46
+ "@types/d3": "^7.4.0",
48
47
  "@types/d3-flextree": "^2.1.1",
49
- "markmap-common": "0.18.5"
48
+ "d3-flextree": "^2.1.2",
49
+ "markmap-common": "0.18.8"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "markmap-common": "*"
53
53
  },
54
- "gitHead": "600776ac5b28110ab6f298d252263c740738660e"
54
+ "gitHead": "476d2e8abb528af6f6f0c468c6c63791b7c1911a"
55
55
  }