Hi,
I have entities with lots of fields. Can I somehow increase the canvas size?
Thanks. Great module!

Comments

maxilein created an issue. See original summary.

samuel.mortenson’s picture

Thank you @maxilein! Right now there's no way to do this - I think the only short term solution would be to zoom out in your browser, or zoom out within ERD (with the zoom out button) and work there. This is a good feature request though!

samuel.mortenson’s picture

Status: Active » Needs review

@maxilein I just did a ton of work in the dev branch of this module to allow resizing the canvas - would you mind trying it out and letting me know what you think?

maxilein’s picture

Hi,
thank you.
I just updated to the latest dev.
I cannot add entity types. There seems to be a link to rawgit.com which is blocked by my servers.
I'd rather have files locally..
R, Max

maxilein’s picture

Apart from the detail in #4 it seems to be working just fine...

maxilein’s picture

I just saw that i am getting lots of warnings:

Warning: Invalid argument supplied for foreach() in Drupal\erd\Controller\EntityRelationshipDiagramController->getMainDiagram() (line 151 of /var/www/html/modules/erd/src/Controller/EntityRelationshipDiagramController.php) #0 /../core/includes/bootstrap.inc(566): _drupal_error_handler_real(2, 'Invalid argumen...', '/../m...', 151, Array) #1 /../modules/erd/src/Controller/EntityRelationshipDiagramController.php(151): _drupal_error_handler(2, 'Invalid argumen...', '/../m...', 151, Array) #2 [internal function]: Drupal\erd\Controller\EntityRelationshipDiagramController->getMainDiagram() #3 /../core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #4 /../core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #5 /../core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #6 /../core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #7 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #8 /../vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #9 /../vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #10 /../core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 /../core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /../core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 /../core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 /../core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /../core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /../vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /../core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /../index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main}.

samuel.mortenson’s picture

Nice catch @maxilein - I see from the API docs that \Drupal\Core\Config\Entity\ConfigEntityTypeInterface::getPropertiesToExport can return an array or NULL, but I was assuming it would always return an array. Could you update to the latest dev and see if the notices go away? Thanks!

mandclu’s picture

Status: Needs review » Fixed

Based on my testing the UI doesn't 100% behave as expected, but the latest dev release does provide the requested functionality, without throwing new errors or warnings.

  • mandclu committed bee4c96 on 8.x-1.x
    Issue #2831048 by samuel.mortenson, mandclu: Increase size of canvas?
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.