question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to create multiple canvases inside a canvas

See original GitHub issue

I want to create a component similar to 3 columns component in grapejs https://grapesjs.com/demo.html

Kapture 2020-04-01 at 9 53 00

I want the container and all inside elements to be draggable, droppable and deletable, I’ve tried different options but none meet all the above requirements. is this achievable?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
ankricommented, Apr 1, 2020

I created a Demo CodeSandbox for you. Is this what you wanted to achieve?

Note: as soon as #35 is merged it is easier to define the rules

2reactions
abdhaleescommented, Apr 2, 2020

I created a Demo CodeSandbox for you. Is this what you wanted to achieve?

thanks @ankri that worked. what I was missing is that I needed to nest the components in connectors.create not in ColumnsLayout

ref={ref => {
        connectors.create(
          ref,
          <Canvas is={ColumnLayout}>
            <Canvas is={Column}>1</Canvas>
            <Canvas is={Column}>2</Canvas>
            <Canvas is={Column}>3</Canvas>
          </Canvas>
        );
      }}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I create multiple canvas elements on same page using p5js
Create 1 canvas for both "canvases". Create 2 off-screen buffers that you can draw to. In your draw() function, draw whatever you want...
Read more >
Is there an easier way to create multiple canvases using ...
I am creating around 20 canvas here by repeating code? Is there some easier way to do this with functions and loops? ROOT...
Read more >
Three.js Multiple Canvases Multiple Scenes
We make a single Renderer and then one Scene for each virtual canvas. We'll then check the positions of the virtual canvas elements...
Read more >
VPython for Beginners 31 - Multiple Canvases - YouTube
You can run multiple animations at once in separate frames using the canvas function.Support this channel: http://ko-fi.com/LetsCodePhysics, ...
Read more >
Should I have multiple canvases in the same scene?
In my experience, multiple canvases are not required for most situations. Better to have a single canvas and simply use multiple panels ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found