Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markmap-view

Package Overview
Dependencies
Maintainers
0
Versions
89
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.17.1-alpha.5 to 0.17.1

6

dist/browser/index.js

@@ -404,6 +404,8 @@ (function(exports, d32) {

"duration",
"maxWidth",
"fitRatio",
"initialExpandLevel",
"fitRatio",
"maxInitialScale",
"maxWidth",
"nodeMinHeight",
"paddingX",
"spacingHorizontal",

@@ -410,0 +412,0 @@ "spacingVertical"

@@ -1,4 +0,4 @@

import { Hook as st, getId as at, debounce as lt, addClass as ct, walkTree as T, childSelector as C, noop as M } from "markmap-common";
import { Hook as st, getId as at, debounce as lt, addClass as ct, walkTree as M, childSelector as C, noop as T } from "markmap-common";
import { loadCSS as Ce, loadJS as we } from "markmap-common";
import { scaleOrdinal as Y, schemeCategory10 as ht, zoomTransform as A, select as dt, zoom as ut, linkHorizontal as pt, min as I, max as H, zoomIdentity as mt, minIndex as ft } from "d3";
import { scaleOrdinal as Y, schemeCategory10 as ht, zoomTransform as A, select as dt, zoom as ut, linkHorizontal as pt, min as H, max as I, zoomIdentity as mt, minIndex as ft } from "d3";
const K = typeof navigator < "u" && navigator.userAgent.includes("Macintosh"), gt = Y(ht), P = {

@@ -46,6 +46,8 @@ autoFit: !1,

"duration",
"maxWidth",
"fitRatio",
"initialExpandLevel",
"fitRatio",
"maxInitialScale",
"maxWidth",
"nodeMinHeight",
"paddingX",
"spacingHorizontal",

@@ -192,3 +194,3 @@ "spacingVertical"

}
function Tt(e) {
function Mt(e) {
for (var t = this, n = [t], i, o; t = n.pop(); )

@@ -200,3 +202,3 @@ if (e(t), i = t.children, i)

}
function Mt(e) {
function Tt(e) {
for (var t = this, n = [t], i = [], o, a, c; t = n.pop(); )

@@ -254,3 +256,3 @@ if (i.push(t), o = t.children, o)

}
function It() {
function Ht() {
var e = this, t = [];

@@ -269,3 +271,3 @@ return e.each(function(n) {

}
function Ht() {
function It() {
return F(this).eachBefore(Wt);

@@ -292,4 +294,4 @@ }

each: Rt,
eachAfter: Mt,
eachBefore: Tt,
eachAfter: Tt,
eachBefore: Mt,
sum: At,

@@ -301,4 +303,4 @@ sort: _t,

leaves: Ft,
links: It,
copy: Ht
links: Ht,
copy: It
};

@@ -670,3 +672,3 @@ const Yt = "d3-flextree", Kt = "2.1.2", Pt = "build/d3-flextree.js", Ut = "index", Gt = {

const i = (o = t.payload) != null && o.fold ? 0 : 1;
n ? T(t, (c, s) => {
n ? M(t, (c, s) => {
c.payload = {

@@ -692,3 +694,3 @@ ...c.payload,

let u = 0, g = 0;
T(t, (m, y, f) => {
M(t, (m, y, f) => {
var b, w, z;

@@ -721,3 +723,3 @@ g += 1, m.children = (b = m.children) == null ? void 0 : b.map((E) => ({ ...E })), n += 1;

(y = m.parentNode) == null || y.append(m.cloneNode(!0));
}), T(t, (m, y, f) => {
}), M(t, (m, y, f) => {
var b;

@@ -768,3 +770,3 @@ const k = m.state, v = k.el.getBoundingClientRect();

s(l);
const p = l.descendants().reverse(), h = l.links(), u = pt(), g = I(p, (r) => r.x - r.xSize / 2), x = H(p, (r) => r.x + r.xSize / 2), m = I(p, (r) => r.y), y = H(p, (r) => r.y + r.ySize - n);
const p = l.descendants().reverse(), h = l.links(), u = pt(), g = H(p, (r) => r.x - r.xSize / 2), x = I(p, (r) => r.x + r.xSize / 2), m = H(p, (r) => r.y), y = I(p, (r) => r.y + r.ySize - n);
Object.assign(this.state, {

@@ -896,3 +898,3 @@ minX: g,

).scale(g);
return this.transition(this.svg).call(this.zoom.transform, x).end().catch(M);
return this.transition(this.svg).call(this.zoom.transform, x).end().catch(T);
}

@@ -933,3 +935,3 @@ findElement(t) {

const v = s.translate(y, f);
return this.transition(this.svg).call(this.zoom.transform, v).end().catch(M);
return this.transition(this.svg).call(this.zoom.transform, v).end().catch(T);
}

@@ -945,3 +947,3 @@ }

).scale(t);
return this.transition(this.svg).call(this.zoom.transform, l).end().catch(M);
return this.transition(this.svg).call(this.zoom.transform, l).end().catch(T);
}

@@ -948,0 +950,0 @@ destroy() {

@@ -0,3 +1,3 @@

import { FlextreeNode } from 'd3-flextree';
import { INode } from 'markmap-common';
import { FlextreeNode } from 'd3-flextree';
export interface IMarkmapState {

@@ -11,15 +11,19 @@ id: string;

}
export interface IMarkmapJSONOptions {
color?: string[];
colorFreezeLevel?: number;
duration?: number;
maxWidth?: number;
initialExpandLevel?: number;
fitRatio?: number;
maxInitialScale?: number;
extraJs?: string[];
extraCss?: string[];
zoom?: boolean;
pan?: boolean;
}
export type IMarkmapJSONOptions = Partial<{
color: string[];
colorFreezeLevel: number;
duration: number;
extraCss: string[];
extraJs: string[];
fitRatio: number;
initialExpandLevel: number;
maxInitialScale: number;
maxWidth: number;
nodeMinHeight: number;
paddingX: number;
pan: boolean;
spacingHorizontal: number;
spacingVertical: number;
zoom: boolean;
}>;
export interface IPadding {

@@ -26,0 +30,0 @@ left: number;

{
"name": "markmap-view",
"version": "0.17.1-alpha.5+a813e1e",
"version": "0.17.1",
"description": "View markmaps in browser",

@@ -49,3 +49,3 @@ "author": "Gerald <gera2ld@live.com>",

"@types/d3-flextree": "^2.1.1",
"markmap-common": "0.17.0"
"markmap-common": "0.17.1"
},

@@ -55,3 +55,3 @@ "peerDependencies": {

},
"gitHead": "a813e1efd3ad5a1f011fd71320bc36ac3e2b2402"
"gitHead": "628f06a60d0c06f4d2f70b6df786ecb8b4124241"
}
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