Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build demo error #27

Merged
merged 3 commits into from
Oct 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/Content/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class TopBar extends PureComponent {
1,
val => {
const { x, y, alpha } = line.pathData.getPointAtLength(val * totalLength);
line.arrow.setAttribute('transform', `translate(${x.toFixed(0)} ${y.toFixed(0)}) rotate(${alpha - 90})`);//同步箭头
line.arrow.setAttribute('transform', `translate(${x.toFixed(0)} ${y.toFixed(0)}) rotate(${alpha})`);//同步箭头
},
totalLength * 30,
() => {
Expand Down
904 changes: 396 additions & 508 deletions dist/VEditor.browser.js

Large diffs are not rendered by default.

875 changes: 375 additions & 500 deletions dist/VEditor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
--dark-hl-7: #4FC1FF;
--light-hl-8: #795E26;
--dark-hl-8: #DCDCAA;
--light-hl-9: #267F99;
--dark-hl-9: #4EC9B0;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand All @@ -33,7 +31,6 @@
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--code-background: var(--light-code-background);
} }

Expand All @@ -47,7 +44,6 @@
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--code-background: var(--dark-code-background);
} }

Expand All @@ -61,7 +57,6 @@
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--code-background: var(--light-code-background);
}

Expand All @@ -75,7 +70,6 @@
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--code-background: var(--dark-code-background);
}

Expand All @@ -88,5 +82,4 @@
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
.hl-9 { color: var(--hl-9); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ ul.tsd-type-parameter-list h5 {
display: flex;
justify-content: space-between;
height: 2.5rem;
margin: 0 auto;
}
.tsd-page-toolbar .table-cell {
position: relative;
Expand Down
Binary file removed docs/assets/widgets.png
Binary file not shown.
Binary file removed docs/assets/[email protected]
Binary file not shown.
62 changes: 21 additions & 41 deletions docs/classes/AnchorLine.default.html

Large diffs are not rendered by default.

96 changes: 38 additions & 58 deletions docs/classes/Controller.default.html

Large diffs are not rendered by default.

42 changes: 11 additions & 31 deletions docs/classes/Event.default.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,16 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | @vesoft-inc/veditor - v4.3.3-beta.2</title><meta name="description" content="Documentation for @vesoft-inc/veditor - v4.3.3-beta.2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><style>
.tsd-navigation.primary ul li a.tsd-kind-icon {
padding-left: 25px;
}
.tsd-breadcrumb li:last-child:after {
content: none;
}
span.title-version {
background: #4d0082;
border: 1px solid #9700ff;
border-radius: 3px;
font-size: 12px;
font-weight: normal;
padding: 1px 4px;
margin-left: 3px;
}
#tsd-search.has-focus span.title-version {
opacity: 0;
z-index: 0;
}
</style></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | @vesoft-inc/veditor - v4.3.3-beta.4</title><meta name="description" content="Documentation for @vesoft-inc/veditor - v4.3.3-beta.4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<div class="tsd-toolbar-contents container">
<div class="table-cell" id="tsd-search" data-base="..">
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vesoft-inc/veditor - v4.3.3-beta.2</a></div>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vesoft-inc/veditor - v4.3.3-beta.4</a></div>
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
<div class="container container-main">
<div class="col-8 col-content">
<div class="tsd-page-title">
<ul class="tsd-breadcrumb">
<li><a href="../modules.html">@vesoft-inc/veditor - v4.3.3-beta.2</a></li>
<li><a href="../modules.html">@vesoft-inc/veditor - v4.3.3-beta.4</a></li>
<li><a href="../modules/Event.html">Event</a></li>
<li><a href="Event.default.html">default</a></li></ul>
<h1>Class default</h1></div>
Expand All @@ -39,7 +19,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">default</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/a16abde/src/Utils/Event.ts#L1">Utils/Event.ts:1</a></li></ul></aside>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/f91bcea/src/Utils/Event.ts#L1">Utils/Event.ts:1</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -90,15 +70,15 @@ <h5>event: <span class="tsd-signature-type">string</span></h5></li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> data: <span class="tsd-signature-type">any</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/a16abde/src/Utils/Event.ts#L47">Utils/Event.ts:47</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/f91bcea/src/Utils/Event.ts#L47">Utils/Event.ts:47</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="events" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>events</span><a href="#events" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">events<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters"></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/a16abde/src/Utils/Event.ts#L2">Utils/Event.ts:2</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/f91bcea/src/Utils/Event.ts#L2">Utils/Event.ts:2</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="clear" class="tsd-anchor"></a>
Expand All @@ -110,7 +90,7 @@ <h3 class="tsd-anchor-link"><span>clear</span><a href="#clear" aria-label="Perma
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/a16abde/src/Utils/Event.ts#L43">Utils/Event.ts:43</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/f91bcea/src/Utils/Event.ts#L43">Utils/Event.ts:43</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="fire" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>fire</span><a href="#fire" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -125,7 +105,7 @@ <h5>event: <span class="tsd-signature-type">string</span></h5></li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> data: <span class="tsd-signature-type">any</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/a16abde/src/Utils/Event.ts#L16">Utils/Event.ts:16</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/f91bcea/src/Utils/Event.ts#L16">Utils/Event.ts:16</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="off" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>off</span><a href="#off" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -142,7 +122,7 @@ <h5>event: <span class="tsd-signature-type">string</span></h5></li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> offFunc: <span class="tsd-signature-type">Function</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/a16abde/src/Utils/Event.ts#L30">Utils/Event.ts:30</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/f91bcea/src/Utils/Event.ts#L30">Utils/Event.ts:30</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="on" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>on</span><a href="#on" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -161,7 +141,7 @@ <h5>func: <span class="tsd-signature-type">Function</span></h5></li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> index: <span class="tsd-signature-type">number</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/a16abde/src/Utils/Event.ts#L6">Utils/Event.ts:6</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/mizy/nebulagraph-veditor/blob/f91bcea/src/Utils/Event.ts#L6">Utils/Event.ts:6</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand All @@ -181,7 +161,7 @@ <h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
<div class="tsd-accordion-details">
<ul>
<li class="current"><a href="../modules.html">@vesoft-<wbr/>inc/veditor -<wbr/> v4.3.3-<wbr/>beta.2</a>
<li class="current"><a href="../modules.html">@vesoft-<wbr/>inc/veditor -<wbr/> v4.3.3-<wbr/>beta.4</a>
<ul>
<li class="tsd-kind-namespace"><a href="../modules/AnchorLine.html">Anchor<wbr/>Line</a></li>
<li class="tsd-kind-namespace"><a href="../modules/Controller.html">Controller</a></li>
Expand Down
Loading