From fef0f2587f14b2180cd1e5358448d1383b10a180 Mon Sep 17 00:00:00 2001 From: Adrien Burgun Date: Wed, 22 Feb 2023 13:59:56 +0100 Subject: [PATCH] :bug: inline CSS for PixelPerfectCanvas --- package.json | 2 +- src/solid/PixelPerfectCanvas.module.css | 3 --- src/solid/PixelPerfectCanvas.tsx | 8 +++++--- 3 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 src/solid/PixelPerfectCanvas.module.css diff --git a/package.json b/package.json index 2775d76..845c358 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shadryx/pptk", - "version": "0.1.1", + "version": "0.1.2", "description": "Pixel-Perfect ToolKit, a library to help make pixel-perfect applications on high-DPI devices", "keywords": [ "pixel-perfect", diff --git a/src/solid/PixelPerfectCanvas.module.css b/src/solid/PixelPerfectCanvas.module.css deleted file mode 100644 index f35e767..0000000 --- a/src/solid/PixelPerfectCanvas.module.css +++ /dev/null @@ -1,3 +0,0 @@ -.container { - overflow: hidden; -} diff --git a/src/solid/PixelPerfectCanvas.tsx b/src/solid/PixelPerfectCanvas.tsx index e44bb8c..95cecc6 100644 --- a/src/solid/PixelPerfectCanvas.tsx +++ b/src/solid/PixelPerfectCanvas.tsx @@ -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 = (props) => }); return (
containerRef = div} > canvasRef = canvas}>