|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import { JSX, Component, createEffect, onCleanup } from "solid-js";
|
|
|
|
|
import { attachCanvas, AttachCanvasOptions } from '../index.js';
|
|
|
|
|
import styles from './PixelPerfectCanvas.module.css';
|
|
|
|
|
|
|
|
|
|
export type PixelPerfectCanvasProps = {
|
|
|
|
|
/**
|
|
|
|
@ -59,8 +58,11 @@ export const PixelPerfectCanvas: Component<PixelPerfectCanvasProps> = (props) =>
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (<div
|
|
|
|
|
style={props.style}
|
|
|
|
|
class={[props.class, styles.container].filter(Boolean).join(' ')}
|
|
|
|
|
style={{
|
|
|
|
|
...props.style,
|
|
|
|
|
overflow: 'hidden'
|
|
|
|
|
}}
|
|
|
|
|
class={props.class}
|
|
|
|
|
ref={(div) => containerRef = div}
|
|
|
|
|
>
|
|
|
|
|
<canvas ref={(canvas) => canvasRef = canvas}>
|
|
|
|
|