Problem
Make sure schema nuxt-component-preview is both supporting canvas.image slots good, or provide some alternative!
Issue fork canvas_extjs-3551682
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fagoImages are defined like this:
Comment #3
fagoatm Drupal canvas does not support picking aspect-ratios or image-styles - Related: #3562276: SDC: support selection of image styles or aspect ratio
However, selecting images is supported via the noted json-schema-type.
We need to extend nuxt-component-preview to allow adding this metadata easily, together with a suiting example.
Then later on, we can look into focal-point support by passing-through the focal-point, so the frontend can apply it, and/or providing a desired aspect-ratio, minimum and/or minimum dimensions in the image metadata.
Comment #4
fagoimplemented and added a PR here: https://github.com/drunomics/nuxt-component-preview/pull/64
Comment #5
fagoThat works, but fails with canvas due to errors during url-rewriting. we need to add this as well.
Comment #7
fagotested successfully :-) use nuxt-component-preview beta3 or later to use it! See README for usage details.