Closed hunkim98 closed 1 year ago
🚀 [Related Issue: #74 ]
https://github.com/hunkim98/dotting/assets/57612141/455fcae0-6ae8-4a3e-ac5b-7755d30ab81d
setLayers
[🪝Hooks] Added setLayers callback in useDotting hook
useDotting
[🎨Component] Add setLayers in both Editor.tsx and DataLayer.tsx
Editor.tsx
DataLayer.tsx
setData
[📒Docs] Update setLayers callback in useDotting storybook
[🔗Other] Add error class for ease of testing
utils
error.ts
This feature is necessary if a developer is planning to initialize the dotting canvas with saved layers information!
dotting
PR Preview Action v1.4.4 :---: Preview removed because the pull request was closed. 2023-10-01 06:57 UTC
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 2 Code Smells
83.6% Coverage 2.4% Duplication
🚀 [Related Issue: #74 ]
Preview
https://github.com/hunkim98/dotting/assets/57612141/455fcae0-6ae8-4a3e-ac5b-7755d30ab81d
Changes
Add
setLayers
callback in Dotting[🪝Hooks] Added
setLayers
callback inuseDotting
hooksetLayers
through importinguseDotting
hook[🎨Component] Add
setLayers
in bothEditor.tsx
andDataLayer.tsx
setLayers
callback in bothEditor.tsx
andDataLayer.tsx
Editor.tsx
setLayers
callback andsetData
callback[📒Docs] Update
setLayers
callback inuseDotting
storybooksetLayers
callback in section 8.[🔗Other] Add error class for ease of testing
utils
folder namederror.ts
Notes
This feature is necessary if a developer is planning to initialize the
dotting
canvas with saved layers information!Next Up?