@mangoweb/shapes-fallback
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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)

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i @mangoweb/shapes-fallback

    Weekly Downloads

    4

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    8.49 kB

    Total Files

    9

    Last publish

    Collaborators

    • onset
    • mango-cli
    • jirkavebr
    • viliamkopecky
    • matejsimek
    • luchalupa