mirror of
https://github.com/rough-stuff/rough.git
synced 2026-04-22 03:00:28 -04:00
.
This commit is contained in:
@@ -81,9 +81,9 @@ SVG Path with simplification:
|
||||
|
||||
 
|
||||
|
||||
### Using web workers with Workly
|
||||
### Using web workers
|
||||
|
||||
If you have [Workly](https://github.com/pshihn/workly) imported on your web page (~1k only), RoughJS will automatically offload all processing to a web worker - freeing up your main UI thread. This is great when creating complex drawings using RoughJs.
|
||||
If you have [Workly](https://github.com/pshihn/workly) imported on your web page (~1k only), RoughJS will automatically offload all processing to a web worker - freeing up your main UI thread. This is great when creating complex drawings using RoughJs like maps. Read more about it [here](https://github.com/pshihn/rough/wiki/RoughJS-in-a-web-worker).
|
||||
|
||||
```html
|
||||
<script src="https://cdn.jsdelivr.net/gh/pshihn/workly/dist/workly.min.js"></script>
|
||||
@@ -98,11 +98,6 @@ If you have [Workly](https://github.com/pshihn/workly) imported on your web page
|
||||
|
||||
[View examples here](https://github.com/pshihn/rough/wiki/Examples)
|
||||
|
||||
## RoughJS in a web worker
|
||||
|
||||
RoughJS processing can easily be delegated to a web worker.
|
||||
Read about it [here](https://github.com/pshihn/rough/wiki/RoughJS-in-a-web-worker).
|
||||
|
||||
## API & Documentation
|
||||
|
||||
[Full Rough.js API](https://github.com/pshihn/rough/wiki)
|
||||
|
||||
@@ -81,9 +81,9 @@ SVG Path with simplification:
|
||||
|
||||
 
|
||||
|
||||
### Using web workers with Workly
|
||||
### Using web workers
|
||||
|
||||
If you have [Workly](https://github.com/pshihn/workly) imported on your web page (~1k only), RoughJS will automatically offload all processing to a web worker - freeing up your main UI thread. This is great when creating complex drawings using RoughJs.
|
||||
If you have [Workly](https://github.com/pshihn/workly) imported on your web page (~1k only), RoughJS will automatically offload all processing to a web worker - freeing up your main UI thread. This is great when creating complex drawings using RoughJs like maps. Read more about it [here](https://github.com/pshihn/rough/wiki/RoughJS-in-a-web-worker).
|
||||
|
||||
```html
|
||||
<script src="https://cdn.jsdelivr.net/gh/pshihn/workly/dist/workly.min.js"></script>
|
||||
@@ -98,11 +98,6 @@ If you have [Workly](https://github.com/pshihn/workly) imported on your web page
|
||||
|
||||
[View examples here](https://github.com/pshihn/rough/wiki/Examples)
|
||||
|
||||
## RoughJS in a web worker
|
||||
|
||||
RoughJS processing can easily be delegated to a web worker.
|
||||
Read about it [here](https://github.com/pshihn/rough/wiki/RoughJS-in-a-web-worker).
|
||||
|
||||
## API & Documentation
|
||||
|
||||
[Full Rough.js API](https://github.com/pshihn/rough/wiki)
|
||||
|
||||
Reference in New Issue
Block a user