@yorab/react-paint 0.4.0 → 0.5.0
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 +1 -0
- package/dist/components/App.js +61 -72
- package/dist/components/Canvas.js +31 -18
- package/dist/components/common/Button.js +4 -4
- package/dist/components/common/Loading.js +3 -3
- package/dist/components/common/Modal.js +3 -3
- package/dist/components/common/Panel.js +2 -2
- package/dist/components/common/Snackbar.js +2 -2
- package/dist/components/settings/ColorField.js +11 -15
- package/dist/components/settings/FontFamilyField.js +7 -5
- package/dist/components/settings/LayoutButton.js +1 -1
- package/dist/components/settings/Layouts.js +9 -9
- package/dist/components/settings/LineArrowField.js +8 -6
- package/dist/components/settings/LineTypeField.js +7 -5
- package/dist/components/settings/PointsNumberField.js +19 -29
- package/dist/components/settings/RangeField.js +2 -1
- package/dist/components/settings/SelectField.js +2 -1
- package/dist/components/settings/SettingsBar.js +107 -80
- package/dist/components/toolbox/EditTextBox.js +6 -6
- package/dist/components/toolbox/LoadFileTool.js +5 -3
- package/dist/components/toolbox/MenuGroup.js +55 -29
- package/dist/components/toolbox/PictureUrlInput.js +1 -1
- package/dist/components/toolbox/Tool.js +4 -4
- package/dist/components/toolbox/Toolbar.js +82 -59
- package/dist/components/toolbox/ToolbarGroup.js +21 -25
- package/dist/constants/style.js +3 -1
- package/dist/constants/tools.js +420 -0
- package/dist/hooks/useComponent.js +6 -2
- package/dist/hooks/useDrawableCanvas.js +28 -19
- package/dist/styles.css +51 -54
- package/dist/types/Shapes.js +2 -16
- package/dist/types/tools.js +22 -0
- package/dist/utils/data.js +81 -25
- package/dist/utils/style.js +4 -2
- package/dist/utils/toolbar.js +66 -11
- package/dist/utils/transform.js +3 -3
- package/package.json +1 -1
- package/Changelog.md +0 -62
package/Changelog.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# V.0.4.0
|
|
2
|
-
|
|
3
|
-
- Add possibility to customize UI from props
|
|
4
|
-
|
|
5
|
-
# V.0.3.1
|
|
6
|
-
|
|
7
|
-
- Add prop to change canvas background color
|
|
8
|
-
- Move some props to options
|
|
9
|
-
- fix Picture shape not being saved and not triggering onDataChanged
|
|
10
|
-
- small picture are upscaled to fit container when imported
|
|
11
|
-
- Add prop to choose to display save/load/export
|
|
12
|
-
|
|
13
|
-
# V.0.3.0 :
|
|
14
|
-
|
|
15
|
-
- prevent picture from url submit to reload page
|
|
16
|
-
- add gridVisible prop and default to false
|
|
17
|
-
- rename withLayouts to layersManipulation and reduce possible values
|
|
18
|
-
- move every options inside options prop
|
|
19
|
-
- remove ajv and any kind of json validation
|
|
20
|
-
- limit snackbar use on success and always log errors
|
|
21
|
-
- fit size and center uploaded picture
|
|
22
|
-
- Add new viewer mode
|
|
23
|
-
- add borders on bars
|
|
24
|
-
- display shape id in layer panel
|
|
25
|
-
- Export : round values to 2 decimal points
|
|
26
|
-
- Export and import : remove temporary values (id) from stored file
|
|
27
|
-
- Clean unknown shape format from imported data
|
|
28
|
-
- Use ref for onDataChanged prop to avoid rerender if callback changes
|
|
29
|
-
- Calculate container size to resize canvas instead of CSS
|
|
30
|
-
- use requestAnimationFrame to improve perf
|
|
31
|
-
- fix TextEdit position and size not working with canvas resized
|
|
32
|
-
- fix anchors area becoming too small after rezsize
|
|
33
|
-
- add MIT license to project
|
|
34
|
-
- other minor fixes
|
|
35
|
-
- minor design improvements
|
|
36
|
-
|
|
37
|
-
# V.0.2.2 :
|
|
38
|
-
|
|
39
|
-
- Migrate to react 18
|
|
40
|
-
- fix Picture type
|
|
41
|
-
- change pen join and cap to round
|
|
42
|
-
- replace loading snackbar with proper loader
|
|
43
|
-
- support for canGrow and canShrink prop
|
|
44
|
-
- rename project
|
|
45
|
-
- release on npm
|
|
46
|
-
|
|
47
|
-
# V.0.2.1 :
|
|
48
|
-
|
|
49
|
-
- better ui for input modal
|
|
50
|
-
- lock functionnality
|
|
51
|
-
- toggle grid
|
|
52
|
-
- layouts panel UI
|
|
53
|
-
|
|
54
|
-
# V.0.2.0 :
|
|
55
|
-
|
|
56
|
-
- fix for scaling brush
|
|
57
|
-
- fix snackbar
|
|
58
|
-
- refonte UI toolbar
|
|
59
|
-
- update examples
|
|
60
|
-
- button with icons
|
|
61
|
-
- mini toolbar to fix
|
|
62
|
-
- provide tool for url only
|