From 7fc4ae92fed0d9ca6777b23640ca49d8aad9f4e6 Mon Sep 17 00:00:00 2001 From: David Chanin Date: Mon, 12 Jul 2021 16:05:30 +0100 Subject: [PATCH] updating docs for v3.2 --- _includes/head.html | 2 +- cn/docs.html | 11 +++++++++++ docs.html | 13 ++++++++++++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 4e68b22fc..7577ccadd 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -18,5 +18,5 @@ ga('send', 'pageview'); - + diff --git a/cn/docs.html b/cn/docs.html index b22c7cf84..6d940b726 100644 --- a/cn/docs.html +++ b/cn/docs.html @@ -1078,6 +1078,17 @@

writer.hideOutline(options = {})

+

writer.updateDimensions(options = {})

+

Update the size of the writer instance

+

+ options object containing additional configuration options. Full options include: +

+

+

writer.updateColor(colorName, colorVal, options = {})

颜色设置更新

diff --git a/docs.html b/docs.html index 0f83daa82..22965df8f 100644 --- a/docs.html +++ b/docs.html @@ -76,7 +76,7 @@

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: {% highlight html %} - + {% endhighlight %}

@@ -958,6 +958,17 @@

writer.hideOutline(options = {})

  • duration: number, optional. How long the hiding animation should take to complete. If not provided then strokeFadeDuration is used. Passing 0 will make the operation instant.
  • + +

    writer.updateDimensions(options = {})

    +

    Update the size of the writer instance

    +

    + options object containing additional configuration options. Full options include: +

    +

    writer.updateColor(colorName, colorVal, options = {})

    Update a color setting.