Floor Editor
Wraps the @codemen/svg-test
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-floor'; { 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