svelte-render-scan
v1.1.0
Published
Visual debugging tool for Svelte applications.
Readme
Svelte Render Scan
Visual debugging tool for Svelte applications.
Svelte port of render-scan.

Installation
npm install -D svelte-render-scanUsage
<script>
import { RenderScan } from 'svelte-render-scan';
</script>
<RenderScan />The overlay button appears in the bottom right corner and is enabled by default. You can disable it by clicking on it or setting the initialEnabled prop to false.
Props
initialEnabled(default:true) - Start with render scanning enabledoffsetLeft(default:0) - Offset the button left from its default positionhideIcon(default:false) - Hide the render scan button while keeping functionality activecallback(default:undefined) - Optional user defined function that gets called once per valid mutation. Signature is(mutation:MutationRecord)=>void;duration(defult:1000) - Adjust how long the render scan highlights remain on screen in ms
Development
Clone this repository and install dependencies:
nvm use
npm install
npm run devLicense
MIT
