Procházet zdrojové kódy

Add CanvasSource.canvas

customisations
alemart před 3 měsíci
rodič
revize
14cf49d01d
2 změnil soubory, kde provedl 19 přidání a 1 odebrání
  1. 11
    1
      docs/api/canvas-source.md
  2. 8
    0
      src/sources/canvas-source.ts

+ 11
- 1
docs/api/canvas-source.md Zobrazit soubor

16
 
16
 
17
 **Returns**
17
 **Returns**
18
 
18
 
19
-A new source of data.
19
+A new source of data.
20
+
21
+## Properties
22
+
23
+### canvas
24
+
25
+`source.canvas: HTMLCanvasElement, read-only`
26
+
27
+The underlying `<canvas>` element.
28
+
29
+*Since:* 0.4.4

+ 8
- 0
src/sources/canvas-source.ts Zobrazit soubor

52
     }
52
     }
53
 
53
 
54
     /**
54
     /**
55
+     * The underlying <canvas> element
56
+     */
57
+    get canvas(): HTMLCanvasElement
58
+    {
59
+        return this._canvas;
60
+    }
61
+
62
+    /**
55
      * A type-identifier of the source of data
63
      * A type-identifier of the source of data
56
      * @internal
64
      * @internal
57
      */
65
      */

Načítá se…
Zrušit
Uložit