Browse Source

Up canvas spots link

pull/5358/head
Artur Arseniev 3 years ago
parent
commit
54c4d2a701
  1. 5
      docs/modules/Canvas.md
  2. 2
      src/canvas/config/config.ts
  3. 2
      src/canvas/model/CanvasSpot.ts

5
docs/modules/Canvas.md

@ -4,8 +4,9 @@ title: Canvas
# Canvas
> [!WARNING]
> The documentation of this module is still a work in progress.
::: danger WIP
The documentation of this module is still a work in progress.
:::
::: warning
This guide is referring to GrapesJS v0.21.5 or higher

2
src/canvas/config/config.ts

@ -74,6 +74,8 @@ export interface CanvasConfig {
/**
* Disable the rendering of built-in canvas spots.
*
* Read here for more information about [Canvas Spots](https://grapesjs.com/docs/modules/Canvas.html#canvas-spots).
* @example
* // Disable only the hover type spot
* customSpots: { hover: true },

2
src/canvas/model/CanvasSpot.ts

@ -49,7 +49,7 @@ export interface CanvasSpotProps<T extends CanvasSpotType = CanvasSpotType> exte
* Canvas spots are elements drawn on top of the canvas. They can be used to represent anything you
* might need but the most common use case of canvas spots is rendering information and managing
* components rendered in the canvas.
* Read here for more information about [Canvas Spots](https://github.com/GrapesJS/grapesjs/blob/dev/docs/modules/Canvas.md#canvas-spots)
* Read here for more information about [Canvas Spots](https://grapesjs.com/docs/modules/Canvas.html#canvas-spots)
*
* [Component]: component.html
*

Loading…
Cancel
Save