@tremolo-ui/react 0.1.0-alpha.0 → 0.1.0-alpha.2
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/dist/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/AnimationCanvas/index.tsx +3 -1
- package/src/index.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -110,7 +110,9 @@ function AnimationCanvas(_a) {
|
|
|
110
110
|
memoCanvas.width = w * dpr;
|
|
111
111
|
memoCanvas.height = h * dpr;
|
|
112
112
|
memoContext.scale(1 / dpr, 1 / dpr);
|
|
113
|
-
|
|
113
|
+
if (canvas.width > 0 && canvas.height > 0) {
|
|
114
|
+
memoContext.drawImage(canvas, 0, 0);
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
117
|
setDprConfig(canvas, context, w, h, dpr);
|
|
116
118
|
widthRef.current = w;
|
|
@@ -2026,6 +2028,7 @@ exports.XYPadThumb = XYPadThumb;
|
|
|
2026
2028
|
exports.getNoteRangeArray = getNoteRangeArray;
|
|
2027
2029
|
exports.useAnimationFrame = useAnimationFrame;
|
|
2028
2030
|
exports.useDrag = useDrag;
|
|
2031
|
+
exports.useDragWithElement = useDragWithElement;
|
|
2029
2032
|
exports.useEventListener = useEventListener;
|
|
2030
2033
|
exports.useInterval = useInterval;
|
|
2031
2034
|
exports.useLongPress = useLongPress;
|