|
| 1 | +open Js_of_ocaml |
| 2 | + |
1 | 3 | val makeProps : |
2 | | - dot:Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t |
| 4 | + dot: Js.js_string Js.t |
| 5 | + -> options: <fit: bool Js.t Js.readonly_prop |
| 6 | + ; height: Js.js_string Js.t |
| 7 | + ; width: Js.js_string Js.t |
| 8 | + ; zoom: bool Js.t Js.readonly_prop > Js.t |
| 9 | + -> className: Js.js_string Js.t |
3 | 10 | -> unit |
4 | | - -> < dot: |
5 | | - Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.readonly_prop > |
6 | | - Js_of_ocaml.Js.t |
| 11 | + -> < dot: Js.js_string Js.t Js.readonly_prop |
| 12 | + ; options: <fit: bool Js.t Js.readonly_prop |
| 13 | + ; height: Js.js_string Js.t |
| 14 | + ; width: Js.js_string Js.t |
| 15 | + ; zoom: bool Js.t Js.readonly_prop > Js.t Js.readonly_prop |
| 16 | + ; className: Js.js_string Js.t Js.readonly_prop > Js.t |
7 | 17 | [@@js.custom |
8 | | - let makeProps ~dot () = |
| 18 | + let makeProps ~dot ~options ~className () = |
9 | 19 | object%js |
10 | 20 | val dot = dot |
| 21 | + val options = options |
| 22 | + val className = className |
11 | 23 | end] |
12 | 24 |
|
13 | 25 | val make : |
14 | | - < dot: Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.readonly_prop > |
15 | | - Js_of_ocaml.Js.t |
| 26 | + < dot: Js.js_string Js.t Js.readonly_prop |
| 27 | + ; options: <fit: bool Js.t Js.readonly_prop |
| 28 | + ; height: Js.js_string Js.t |
| 29 | + ; width: Js.js_string Js.t |
| 30 | + ; zoom: bool Js.t Js.readonly_prop > Js.t Js.readonly_prop |
| 31 | + ; className: Js.js_string Js.t Js.readonly_prop > Js.t |
16 | 32 | React.component |
17 | 33 | [@@js.custom |
18 | 34 | external to_component : |
19 | 35 | Ojs.t |
20 | | - -> < dot: |
21 | | - Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t |
22 | | - Js_of_ocaml.Js.readonly_prop > |
23 | | - Js_of_ocaml.Js.t |
| 36 | + -> < dot: Js.js_string Js.t Js.readonly_prop |
| 37 | + ; options: <fit: bool Js.t Js.readonly_prop |
| 38 | + ; height: Js.js_string Js.t |
| 39 | + ; width: Js.js_string Js.t |
| 40 | + ; zoom: bool Js.t Js.readonly_prop > Js.t Js.readonly_prop |
| 41 | + ; className: Js.js_string Js.t Js.readonly_prop > Js.t |
24 | 42 | React.component = "%identity" |
25 | 43 |
|
26 | 44 | val make_internal : Ojs.t [@@js.global "Graphviz"] |
|
0 commit comments