atrilabs-engine icon indicating copy to clipboard operation
atrilabs-engine copied to clipboard

Add featuers lost due to iframe

Open cruxcode opened this issue 2 years ago • 0 comments

Due to recent improvement where we encapsulated the Canvas into an iframe , some of the capabilities related to component development that we had before this iframe are lost. I am listing down the capabilities we don’t have temporarily and their workaround:

  1. We cannot use stylesheet like CSS etc. anymore for component development. The alternative is to write inline CSS directly in JSX. If you want to write CSS with pseudo classes, you can use the style tag in the JSX directly.
  2. You will not be able to import SVG or images. You can create a React component and copy the svg in it and then you can use that React component.

cruxcode avatar Nov 03 '22 06:11 cruxcode