Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit b520ae0

Browse files
committed
[DEV] Add new resize function for smart guide
1 parent 7072385 commit b520ae0

File tree

71 files changed

+30063
-39218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+30063
-39218
lines changed

dist/myscript.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/myscript.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ast/source/Editor.js.json

Lines changed: 8522 additions & 8522 deletions
Large diffs are not rendered by default.

docs/ast/source/configuration/DefaultConfiguration.js.json

Lines changed: 18481 additions & 20284 deletions
Large diffs are not rendered by default.

docs/class/src/Editor.js~Editor.html

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -61,33 +61,6 @@
6161
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-Constants">Constants</a></span></span></li>
6262
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-Behavior">Behavior</a></span></span></li>
6363
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-Behaviors">Behaviors</a></span></span></li>
64-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-AnalyzerV3Parameters">AnalyzerV3Parameters</a></span></span></li>
65-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-ApiV3RecognitionParameters">ApiV3RecognitionParameters</a></span></span></li>
66-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-ApiV4RecognitionParameters">ApiV4RecognitionParameters</a></span></span></li>
67-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span></span></li>
68-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-DebugRendererV4Parameters">DebugRendererV4Parameters</a></span></span></li>
69-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-DiagramV4Parameters">DiagramV4Parameters</a></span></span></li>
70-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-ExportV4Parameters">ExportV4Parameters</a></span></span></li>
71-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-GuideLines">GuideLines</a></span></span></li>
72-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-JiixExportV4Parameters">JiixExportV4Parameters</a></span></span></li>
73-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MathSolverV4Parameters">MathSolverV4Parameters</a></span></span></li>
74-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MathV3Parameters">MathV3Parameters</a></span></span></li>
75-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MathV4Parameters">MathV4Parameters</a></span></span></li>
76-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MusicClefV3Parameters">MusicClefV3Parameters</a></span></span></li>
77-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MusicStaffV3Parameters">MusicStaffV3Parameters</a></span></span></li>
78-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MusicV3Parameters">MusicV3Parameters</a></span></span></li>
79-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-RecognitionParameters">RecognitionParameters</a></span></span></li>
80-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-RendererV4Parameters">RendererV4Parameters</a></span></span></li>
81-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-RenderingParameters">RenderingParameters</a></span></span></li>
82-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-ServerParameters">ServerParameters</a></span></span></li>
83-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-ShapeV3Parameters">ShapeV3Parameters</a></span></span></li>
84-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-SmartGuideFadeOut">SmartGuideFadeOut</a></span></span></li>
85-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-TextMarginV4Parameters">TextMarginV4Parameters</a></span></span></li>
86-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-TextV3Parameters">TextV3Parameters</a></span></span></li>
87-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-TextV3Properties">TextV3Properties</a></span></span></li>
88-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-TextV4Parameters">TextV4Parameters</a></span></span></li>
89-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-TriggerSettings">TriggerSettings</a></span></span></li>
90-
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-WebSocketConf">WebSocketConf</a></span></span></li>
9164
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PenStyle">PenStyle</a></span></span></li>
9265
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-GeneratedTheme">GeneratedTheme</a></span></span></li>
9366
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-InkTheme">InkTheme</a></span></span></li>
@@ -278,6 +251,7 @@
278251
<li data-ice="doc"><div data-ice="dirPath" class="nav-dir-path">smartguide</div><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createSmartGuide">createSmartGuide</a></span></span></li>
279252
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertSmartGuide">insertSmartGuide</a></span></span></li>
280253
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-launchSmartGuide">launchSmartGuide</a></span></span></li>
254+
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-resize">resize</a></span></span></li>
281255
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-SmartGuide">SmartGuide</a></span></span></li>
282256
<li data-ice="doc"><div data-ice="dirPath" class="nav-dir-path">util</div><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-computeStats">computeStats</a></span></span></li>
283257
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-destructurePromise">destructurePromise</a></span></span></li>
@@ -346,7 +320,7 @@ <h1 data-ice="name">Editor</h1>
346320
<p>
347321

348322

349-
<span data-ice="name"><span><a href="class/src/Editor.js~Editor.html#instance-constructor-constructor">constructor</a></span></span><span data-ice="signature">(element: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, configuration: <span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span>, theme: <span><a href="typedef/index.html#static-typedef-Theme">Theme</a></span>, penStyle: <span><a href="typedef/index.html#static-typedef-PenStyle">PenStyle</a></span>, behaviors: <span><a href="typedef/index.html#static-typedef-Behaviors">Behaviors</a></span>)</span>
323+
<span data-ice="name"><span><a href="class/src/Editor.js~Editor.html#instance-constructor-constructor">constructor</a></span></span><span data-ice="signature">(element: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, configuration: <span>Configuration</span>, theme: <span><a href="typedef/index.html#static-typedef-Theme">Theme</a></span>, penStyle: <span><a href="typedef/index.html#static-typedef-PenStyle">PenStyle</a></span>, behaviors: <span><a href="typedef/index.html#static-typedef-Behaviors">Behaviors</a></span>)</span>
350324
</p>
351325
</div>
352326
<div>
@@ -604,7 +578,7 @@ <h1 data-ice="name">Editor</h1>
604578
<p>
605579

606580

607-
<span data-ice="name"><span><a href="class/src/Editor.js~Editor.html#instance-get-configuration">configuration</a></span></span><span data-ice="signature">: <span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span>: <span>*</span></span>
581+
<span data-ice="name"><span><a href="class/src/Editor.js~Editor.html#instance-get-configuration">configuration</a></span></span><span data-ice="signature">: <span>Configuration</span>: <span>*</span></span>
608582
</p>
609583
</div>
610584
<div>
@@ -632,7 +606,7 @@ <h1 data-ice="name">Editor</h1>
632606
<p>
633607

634608

635-
<span data-ice="name"><span><a href="class/src/Editor.js~Editor.html#instance-set-configuration">configuration</a></span></span><span data-ice="signature">(configuration: <span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span>): <span>*</span></span>
609+
<span data-ice="name"><span><a href="class/src/Editor.js~Editor.html#instance-set-configuration">configuration</a></span></span><span data-ice="signature">(configuration: <span>Configuration</span>): <span>*</span></span>
636610
</p>
637611
</div>
638612
<div>
@@ -1983,7 +1957,7 @@ <h3 data-ice="anchor" id="instance-constructor-constructor">
19831957

19841958

19851959

1986-
<span data-ice="name">constructor</span><span data-ice="signature">(element: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, configuration: <span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span>, theme: <span><a href="typedef/index.html#static-typedef-Theme">Theme</a></span>, penStyle: <span><a href="typedef/index.html#static-typedef-PenStyle">PenStyle</a></span>, behaviors: <span><a href="typedef/index.html#static-typedef-Behaviors">Behaviors</a></span>)</span>
1960+
<span data-ice="name">constructor</span><span data-ice="signature">(element: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, configuration: <span>Configuration</span>, theme: <span><a href="typedef/index.html#static-typedef-Theme">Theme</a></span>, penStyle: <span><a href="typedef/index.html#static-typedef-PenStyle">PenStyle</a></span>, behaviors: <span><a href="typedef/index.html#static-typedef-Behaviors">Behaviors</a></span>)</span>
19871961
<span class="right-info">
19881962

19891963

@@ -2015,7 +1989,7 @@ <h4 data-ice="title">Params:</h4>
20151989
</tr>
20161990
<tr data-ice="property" data-depth="0">
20171991
<td data-ice="name" data-depth="0">configuration</td>
2018-
<td data-ice="type"><span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span></td>
1992+
<td data-ice="type"><span>Configuration</span></td>
20191993
<td data-ice="appendix"><ul><li>optional</li></ul></td>
20201994
<td data-ice="description"><p>Configuration to apply</p>
20211995
</td>
@@ -2522,7 +2496,7 @@ <h3 data-ice="anchor" id="instance-get-configuration">
25222496

25232497

25242498

2525-
<span data-ice="name">configuration</span><span data-ice="signature">: <span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span>: <span>*</span></span>
2499+
<span data-ice="name">configuration</span><span data-ice="signature">: <span>Configuration</span>: <span>*</span></span>
25262500
<span class="right-info">
25272501

25282502

@@ -2546,7 +2520,7 @@ <h4>Return:</h4>
25462520
<table>
25472521
<tbody>
25482522
<tr>
2549-
<td class="return-type" data-ice="returnType"><span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span></td>
2523+
<td class="return-type" data-ice="returnType"><span>Configuration</span></td>
25502524

25512525
</tr>
25522526
</tbody>
@@ -2578,7 +2552,7 @@ <h3 data-ice="anchor" id="instance-set-configuration">
25782552

25792553

25802554

2581-
<span data-ice="name">configuration</span><span data-ice="signature">(configuration: <span><a href="typedef/index.html#static-typedef-Configuration">Configuration</a></span>): <span>*</span></span>
2555+
<span data-ice="name">configuration</span><span data-ice="signature">(configuration: <span>Configuration</span>): <span>*</span></span>
25822556
<span class="right-info">
25832557

25842558

docs/coverage.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"coverage": "91.9%",
3-
"expectCount": 247,
2+
"coverage": "91.53%",
3+
"expectCount": 248,
44
"actualCount": 227,
55
"files": {
66
"src/model/RecognizerContext.js": {
@@ -154,9 +154,11 @@
154154
"undocumentLines": []
155155
},
156156
"src/smartguide/SmartGuide.js": {
157-
"expectCount": 3,
157+
"expectCount": 4,
158158
"actualCount": 3,
159-
"undocumentLines": []
159+
"undocumentLines": [
160+
312
161+
]
160162
},
161163
"src/model/UndoRedoContext.js": {
162164
"expectCount": 2,
@@ -204,12 +206,12 @@
204206
"actualCount": 1,
205207
"undocumentLines": []
206208
},
207-
"src/renderer/canvas/stroker/QuadraticCanvasStroker.js": {
209+
"src/renderer/svg/stroker/QuadraticSVGStroker.js": {
208210
"expectCount": 2,
209211
"actualCount": 2,
210212
"undocumentLines": []
211213
},
212-
"src/renderer/svg/stroker/QuadraticSVGStroker.js": {
214+
"src/renderer/canvas/stroker/QuadraticCanvasStroker.js": {
213215
"expectCount": 2,
214216
"actualCount": 2,
215217
"undocumentLines": []

docs/dump.json

Lines changed: 455 additions & 2216 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)