0.0.6 • Published 2 years ago

@mangoweb/shapes-fallback v0.0.6

Weekly downloads
49
License
MIT
Repository
github
Last release
2 years ago

ShapesFallback

The manGoweb ShapesFallback component.

Installation

npm install @mangoweb/shapes-fallback @mangoweb/scripts-base

This is a @mangoweb/scripts-base component.

Usage

In your template:

<script>
	window.initComponents = (window.initComponents || []).push({
		name: 'ShapesFallback',
	})
</script>

or in your js:

import { applyShapesFallbackIfNeeded } from '@mangoweb/shapes-fallback'

const rawHTML = 'something something <svg…> something'
const output = document.querySelector('#output')

output.innerHTML = rawHTML
applyShapesFallbackIfNeeded(output)
0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.2

4 years ago

0.0.1

4 years ago