markmap-view 0.18.4 → 0.18.5-alpha.7
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/browser/index.js +51 -25
- package/dist/index.js +371 -348
- package/dist/types.d.ts +1 -0
- package/dist/util.d.ts +1 -0
- package/dist/view.d.ts +4 -2
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
package/dist/util.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare function deriveOptions(jsonOptions?: Partial<IMarkmapJSONOptions>
|
|
|
5
5
|
* Credit: https://gist.github.com/jlevy/c246006675becc446360a798e2b2d781?permalink_comment_id=4738050#gistcomment-4738050
|
|
6
6
|
*/
|
|
7
7
|
export declare function simpleHash(str: string): string;
|
|
8
|
+
export declare function childSelector<T extends Element>(filter?: string | ((el: T) => boolean)): () => T[];
|
package/dist/view.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export declare class Markmap {
|
|
|
12
12
|
svg: ID3SVGElement;
|
|
13
13
|
styleNode: d3.Selection<HTMLStyleElement, INode, HTMLElement, INode>;
|
|
14
14
|
g: d3.Selection<SVGGElement, INode, HTMLElement, INode>;
|
|
15
|
-
observer: ResizeObserver;
|
|
16
15
|
zoom: d3.ZoomBehavior<SVGElement, INode>;
|
|
17
|
-
|
|
16
|
+
private _observer;
|
|
17
|
+
private _disposeList;
|
|
18
18
|
constructor(svg: string | SVGElement | ID3SVGElement, opts?: Partial<IMarkmapOptions>);
|
|
19
19
|
getStyleContent(): string;
|
|
20
20
|
updateStyle(): void;
|
|
@@ -26,6 +26,8 @@ export declare class Markmap {
|
|
|
26
26
|
private _relayout;
|
|
27
27
|
setOptions(opts?: Partial<IMarkmapOptions>): void;
|
|
28
28
|
setData(data?: IPureNode | null, opts?: Partial<IMarkmapOptions>): Promise<void>;
|
|
29
|
+
setHighlight(node?: INode | null): Promise<void>;
|
|
30
|
+
private _getHighlightRect;
|
|
29
31
|
renderData(originData?: INode): Promise<void>;
|
|
30
32
|
transition<T extends d3.BaseType, U, P extends d3.BaseType, Q>(sel: d3.Selection<T, U, P, Q>): d3.Transition<T, U, P, Q>;
|
|
31
33
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-view",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5-alpha.7+41488b9",
|
|
4
4
|
"description": "View markmaps in browser",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/d3-flextree": "^2.1.1",
|
|
49
|
-
"markmap-common": "0.18.
|
|
49
|
+
"markmap-common": "0.18.5-alpha.7+41488b9"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"markmap-common": "*"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "41488b9988a1f49f7dadc029ef6be18fed981cac"
|
|
55
55
|
}
|