Socket
Socket
Sign inDemoInstall

@verygoodgraphics/vgg-svelte

Package Overview
Dependencies
22
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @verygoodgraphics/vgg-svelte

## Usage


Version published
Weekly downloads
301
increased by281.01%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

VGG Svelte

Usage

<VGGRender />

<script lang="ts">
	import VGGRender from '@verygoodgraphics/vgg-svelte';
</script>

<VGGRender
	src="https://s3.vgg.cool/test/vgg.daruma"
	runtime="https://s3.vgg.cool/test/runtime/latest"
	canvasStyle="width: 50vw; height: 100vh"
	onLoad={async (event, instance) => {
		console.log(event, instance);
		instance?.$('#vgg_home').on(EventType.Click, async () => {
			window.alert('Hello, VGG!');
		});
	}}
/>

API

Props for <VGGRender />

OptionTypeRequiredDefault
srcstring--
runtimestring-https://s5.vgg.cool/runtime/latest
canvasStylestring--
editModeboolean-false
verboseboolean-false
onLoad(event: VGGEvent, instance: VGG<T>) => Promise<void>--
onLoadError(event: VGGEvent) => Promise<void>--
onStateChange(event: VGGEvent, instance: VGG<T>) => Promise<void>--

FAQs

Last updated on 25 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc