markmap-view 0.18.0 → 0.18.3

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/view.d.ts CHANGED
@@ -39,7 +39,10 @@ export declare class Markmap {
39
39
  /**
40
40
  * Pan the content to make the provided node visible in the viewport.
41
41
  */
42
- ensureView(node: INode, padding: Partial<IPadding> | undefined): Promise<void>;
42
+ ensureVisible(node: INode, padding?: Partial<IPadding>): Promise<void>;
43
+ /** @deprecated Use `ensureVisible` instead */
44
+ ensureView: (node: INode, padding?: Partial<IPadding>) => Promise<void>;
45
+ centerNode(node: INode, padding?: Partial<IPadding>): Promise<void>;
43
46
  /**
44
47
  * Scale content with it pinned at the center of the viewport.
45
48
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-view",
3
- "version": "0.18.0",
3
+ "version": "0.18.3",
4
4
  "description": "View markmaps in browser",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
@@ -51,5 +51,5 @@
51
51
  "peerDependencies": {
52
52
  "markmap-common": "*"
53
53
  },
54
- "gitHead": "652d042cdd980487e5de70c8e1405ecf0721fa9c"
54
+ "gitHead": "8d690760aa134baeb4fa5c6247c61c6c56544a29"
55
55
  }