Skip to content

Commit 7fc4ae9

Browse files
committed
updating docs for v3.2
1 parent bdb969f commit 7fc4ae9

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
ga('send', 'pageview');
1919
</script>
2020
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
21-
<script type="application/javascript" src="https://cdn.jsdelivr.net/npm/hanzi-writer@3.0/dist/hanzi-writer.min.js"></script>
21+
<script type="application/javascript" src="https://cdn.jsdelivr.net/npm/hanzi-writer@3.2/dist/hanzi-writer.min.js"></script>
2222
</head>

cn/docs.html

+11
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,17 @@ <h4>writer.hideOutline(options = {})</h4>
10781078
</ul>
10791079
</p>
10801080

1081+
<h4>writer.updateDimensions(options = {})</h4>
1082+
<p>Update the size of the writer instance</p>
1083+
<p>
1084+
<code>options</code> object containing additional configuration options. Full options include:
1085+
<ul>
1086+
<li><code>width:</code> number, optional, the new width in px</li>
1087+
<li><code>height:</code> number, optional, the new height in px</li>
1088+
<li><code>padding:</code> number, optional, the new padding in px</li>
1089+
</ul>
1090+
</p>
1091+
10811092
<h4>writer.updateColor(colorName, colorVal, options = {})</h4>
10821093
<p>颜色设置更新</p>
10831094
<p>

docs.html

+12-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h2 id="script-loading-link">Loading Hanzi Writer in a script tag</h2>
7676
<p>
7777
The simplest option is to load the Hanzi Writer JS directly from the jsdelivr CDN. Just put the following in the head of your webpage:
7878
{% highlight html %}
79-
<script src="https://cdn.jsdelivr.net/npm/hanzi-writer@3.0/dist/hanzi-writer.min.js"></script>
79+
<script src="https://cdn.jsdelivr.net/npm/hanzi-writer@3.2/dist/hanzi-writer.min.js"></script>
8080
{% endhighlight %}
8181
</p>
8282
<p>
@@ -958,6 +958,17 @@ <h4>writer.hideOutline(options = {})</h4>
958958
<li><code>duration:</code> number, optional. How long the hiding animation should take to complete. If not provided then <code>strokeFadeDuration</code> is used. Passing 0 will make the operation instant.</li>
959959
</ul>
960960
</p>
961+
962+
<h4>writer.updateDimensions(options = {})</h4>
963+
<p>Update the size of the writer instance</p>
964+
<p>
965+
<code>options</code> object containing additional configuration options. Full options include:
966+
<ul>
967+
<li><code>width:</code> number, optional, the new width in px</li>
968+
<li><code>height:</code> number, optional, the new height in px</li>
969+
<li><code>padding:</code> number, optional, the new padding in px</li>
970+
</ul>
971+
</p>
961972

962973
<h4>writer.updateColor(colorName, colorVal, options = {})</h4>
963974
<p>Update a color setting.</p>

0 commit comments

Comments
 (0)