floor-editor

2.0.42 • Public • Published

Floor Editor

Wraps the @codemen/svg-modifier and renders a customised tailored floor-editor to suit premise inventory's floor modification requirements.

Usage

import React, { Component } from 'react';
import FloorEditor from 'floor-editor';

function Test (props) {
    return (
        <FloorEditor

            />
    );
}

Props

Did?: string

Did of the Floor (Module: Inventory_Floor)

resolveUrl?: (url: string, callBack: (content: object Blob)) => boolean

If the url to fetch file from isn't the absolute one or if fetching the svg file needs custom handling, or if the svg file is already in store for the current url, resolveUrl callback can be utilized.

  • url Current url

  • callBack Send the content using this function, using the first parameter to pass the content (svg html).


Return false to return control back to svg-modifier library that the current library wraps inside.

onResolvingUrl?: (url: string, content: string) => undefined

Invoked after a url is resolved.

  • url The url that has been resolved

  • content The svg html content that has been generated

Readme

Keywords

none

Package Sidebar

Install

npm i floor-editor

Weekly Downloads

10

Version

2.0.42

License

ISC

Unpacked Size

110 MB

Total Files

40

Last publish

Collaborators

  • codemen