@weasel-js/paint 1.9.4 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # @weasel-js/paint
2
2
 
3
- Paint vocabulary for weasel: `FillStyle`, `Stroke`, gradients, dashes. Plain
3
+ Paint vocabulary for weasel: `Paint`, `Stroke`, gradients, dashes. Plain
4
4
  data — nothing here draws anything.
5
5
 
6
6
  Part of [weasel](https://github.com/orochi235/weasel), a domain-agnostic 2D
7
7
  scene-graph canvas kit for React. See the
8
- [API reference](https://orochi235.github.io/weasel/api/).
8
+ [API reference](https://orochi235.github.io/weasel/#pkg/paint).
9
9
 
10
10
  ## Install
11
11
 
@@ -16,9 +16,9 @@ npm install @weasel-js/paint
16
16
  ## Usage
17
17
 
18
18
  ```ts
19
- import type { FillStyle, Stroke } from '@weasel-js/paint';
19
+ import type { Fill, Stroke } from '@weasel-js/paint';
20
20
 
21
- const fill: FillStyle = { color: '#c0ffee' };
21
+ const fill: Fill = { paint: { color: '#c0ffee' } };
22
22
  const stroke: Stroke = { paint: { color: '#000' }, width: 2, join: 'round' };
23
23
  ```
24
24