Closed hunkim98 closed 1 year ago
PR Preview Action v1.4.4 :---: Preview removed because the pull request was closed. 2023-10-29 05:44 UTC
Closing this PR since there needs to be some change to the panzoom logic for foreground canvas and background canvas to work
Kudos, SonarCloud Quality Gate passed!
🚀 [Resolves #77]
Preview
https://github.com/hunkim98/dotting/assets/57612141/01c70678-02ea-41eb-b5f1-e775454ef3f4
Changes
Add foreground canvas and background canvas
[🪝Hooks] Update
useDotting
to havegetForegroundCanvas
andgetBackgroundCanvas
useDotting
const DottingComponent = () => { const { getForegroundCanvas, getBackgroundCanvas } = useDotting(ref);
// use getForegroundCanvas or getBackgroundCanvas
return ;
};
[🎨Component] Add additional canvas elements for foreground and background
[📒Docs] Update
useDotting
documentation for manipulating the foreground and background canvasChange rendering logic of layers
[🎨Component] Change offset of rendering
Dotting
made the left top point of the grid canvas always become (0,0). This can confusion to people who would like to customize their render logic on foreground canvas or background canvas.leftTopPoint
set to the correct indexsetPanZoom
logic that happened when I extended or shortened the grids of the left or the top direction! This allowed for more optimization!🙏Notes
Next Up?