@f1studio/form-spec 5.0.0-alpha.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/Designer.d.ts +89 -0
  2. package/FormSpec.TS/Components/HelloComponent.js +68 -0
  3. package/FormSpec.TS/Components/HelloComponent.js.map +1 -0
  4. package/FormSpec.TS/Components/HelloComponent.ts.map +1 -0
  5. package/FormSpec.TS/Designer.js +526 -0
  6. package/FormSpec.TS/Designer.js.map +1 -0
  7. package/FormSpec.TS/Designer.ts.map +1 -0
  8. package/FormSpec.TS/FormSpec.js +5400 -0
  9. package/FormSpec.TS/FormSpec.js.map +1 -0
  10. package/FormSpec.TS/FormSpec.ts.map +1 -0
  11. package/FormSpec.TS/FormSpecHelpers.js +382 -0
  12. package/FormSpec.TS/FormSpecHelpers.js.map +1 -0
  13. package/FormSpec.TS/FormSpecHelpers.ts.map +1 -0
  14. package/FormSpec.TS/Helpers.js +732 -0
  15. package/FormSpec.TS/Helpers.js.map +1 -0
  16. package/FormSpec.TS/Helpers.ts.map +1 -0
  17. package/FormSpec.TS/Interfaces.js +257 -0
  18. package/FormSpec.TS/Interfaces.js.map +1 -0
  19. package/FormSpec.TS/Interfaces.ts.map +1 -0
  20. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js +854 -0
  21. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +1 -0
  22. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +1 -0
  23. package/FormSpec.TS/Interop/FormSpec.Api.Option.js +1961 -0
  24. package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +1 -0
  25. package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +1 -0
  26. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js +1367 -0
  27. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
  28. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
  29. package/FormSpec.TS/Logging/LogTypes.js +347 -0
  30. package/FormSpec.TS/Logging/LogTypes.js.map +1 -0
  31. package/FormSpec.TS/Logging/LogTypes.ts.map +1 -0
  32. package/FormSpec.TS/Migrator.js +230 -0
  33. package/FormSpec.TS/Migrator.js.map +1 -0
  34. package/FormSpec.TS/Migrator.ts.map +1 -0
  35. package/FormSpec.TS/PathwayDataExtractor.js +361 -0
  36. package/FormSpec.TS/PathwayDataExtractor.js.map +1 -0
  37. package/FormSpec.TS/PathwayDataExtractor.ts.map +1 -0
  38. package/FormSpec.TS/PathwayExecutor.js +1321 -0
  39. package/FormSpec.TS/PathwayExecutor.js.map +1 -0
  40. package/FormSpec.TS/PathwayExecutor.ts.map +1 -0
  41. package/FormSpec.TS/PathwayValidator.js +346 -0
  42. package/FormSpec.TS/PathwayValidator.js.map +1 -0
  43. package/FormSpec.TS/PathwayValidator.ts.map +1 -0
  44. package/FormSpec.TS/PluginInterface.js +171 -0
  45. package/FormSpec.TS/PluginInterface.js.map +1 -0
  46. package/FormSpec.TS/PluginInterface.ts.map +1 -0
  47. package/FormSpec.TS/Prelude.js +59 -0
  48. package/FormSpec.TS/Prelude.js.map +1 -0
  49. package/FormSpec.TS/Prelude.ts.map +1 -0
  50. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js +958 -0
  51. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
  52. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
  53. package/FormSpec.TS/Renderers/MermaidRenderer.js +228 -0
  54. package/FormSpec.TS/Renderers/MermaidRenderer.js.map +1 -0
  55. package/FormSpec.TS/Renderers/MermaidRenderer.ts.map +1 -0
  56. package/FormSpec.TS/Renderers/PathwayRenderers.js +190 -0
  57. package/FormSpec.TS/Renderers/PathwayRenderers.js.map +1 -0
  58. package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +1 -0
  59. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +511 -0
  60. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js +437 -0
  61. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js.map +1 -0
  62. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +1 -0
  63. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +16 -0
  64. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js +73 -0
  65. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js.map +1 -0
  66. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +1 -0
  67. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +50 -0
  68. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js +72 -0
  69. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js.map +1 -0
  70. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +1 -0
  71. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +28 -0
  72. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +24 -0
  73. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js +56 -0
  74. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js.map +1 -0
  75. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +1 -0
  76. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +31 -0
  77. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +178 -0
  78. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js +464 -0
  79. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js.map +1 -0
  80. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +1 -0
  81. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +17 -0
  82. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +152 -0
  83. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js +25 -0
  84. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js.map +1 -0
  85. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +1 -0
  86. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +28 -0
  87. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +218 -0
  88. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js +37 -0
  89. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js.map +1 -0
  90. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +1 -0
  91. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +27 -0
  92. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +82 -0
  93. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js +7 -0
  94. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js.map +1 -0
  95. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +1 -0
  96. package/FormSpec.TS/fable_modules/Feliz.2.7.0/BorderStyle.fs +59 -0
  97. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs +154 -0
  98. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js +32 -0
  99. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js.map +1 -0
  100. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.ts.map +1 -0
  101. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Feliz.fableproj +42 -0
  102. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Fonts.fs +240 -0
  103. package/FormSpec.TS/fable_modules/Feliz.2.7.0/GridTypes.fs +24 -0
  104. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Html.fs +826 -0
  105. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +83 -0
  106. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js +292 -0
  107. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js.map +1 -0
  108. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.ts.map +1 -0
  109. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs +65 -0
  110. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js +229 -0
  111. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js.map +1 -0
  112. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.ts.map +1 -0
  113. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Length.fs +91 -0
  114. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Locale.fs +876 -0
  115. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs +4080 -0
  116. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js +133 -0
  117. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js.map +1 -0
  118. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.ts.map +1 -0
  119. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs +656 -0
  120. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js +561 -0
  121. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js.map +1 -0
  122. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.ts.map +1 -0
  123. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs +25 -0
  124. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js +46 -0
  125. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js.map +1 -0
  126. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.ts.map +1 -0
  127. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js +63 -0
  128. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js.map +1 -0
  129. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs +41 -0
  130. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js +7 -0
  131. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js.map +1 -0
  132. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.ts.map +1 -0
  133. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs +53 -0
  134. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js +7 -0
  135. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js.map +1 -0
  136. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.ts.map +1 -0
  137. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Styles.fs +5740 -0
  138. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs +1455 -0
  139. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js +39 -0
  140. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js.map +1 -0
  141. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.ts.map +1 -0
  142. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationLine.fs +13 -0
  143. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationStyle.fs +33 -0
  144. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Transform.fs +181 -0
  145. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransformOrigin.fs +17 -0
  146. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransitionProperty.fs +162 -0
  147. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs +13 -0
  148. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js +7 -0
  149. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js.map +1 -0
  150. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.ts.map +1 -0
  151. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +1768 -0
  152. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js +2337 -0
  153. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js.map +1 -0
  154. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.ts.map +1 -0
  155. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +811 -0
  156. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js +465 -0
  157. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -0
  158. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -0
  159. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +47 -0
  160. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js +18 -0
  161. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js.map +1 -0
  162. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.ts.map +1 -0
  163. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +34 -0
  164. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +68 -0
  165. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js +355 -0
  166. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js.map +1 -0
  167. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.ts.map +1 -0
  168. package/FormSpec.TS/fable_modules/project_cracked.json +1 -0
  169. package/FormSpec.d.ts +1257 -0
  170. package/FormSpecHelpers.d.ts +50 -0
  171. package/Helpers.d.ts +147 -0
  172. package/Interfaces.d.ts +70 -0
  173. package/Interop/FormSpec.Api.Helpers.d.ts +247 -0
  174. package/Interop/FormSpec.Api.Helpers.d.ts.map +1 -0
  175. package/Interop/FormSpec.Api.Option.d.ts +384 -0
  176. package/Interop/FormSpec.Api.Option.d.ts.map +1 -0
  177. package/Interop/FormSpec.Values.Api.Option.d.ts +324 -0
  178. package/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -0
  179. package/Migrator.d.ts +59 -0
  180. package/PathwayDataExtractor.d.ts +19 -0
  181. package/PathwayExecutor.d.ts +210 -0
  182. package/PathwayValidator.d.ts +52 -0
  183. package/PluginInterface.d.ts +36 -0
  184. package/Prelude.d.ts +11 -0
  185. package/README.TS.md +622 -0
  186. package/README.md +85 -0
  187. package/package.json +39 -0
  188. package/src/Components/HelloComponent.ts +48 -0
  189. package/src/Components/HelloComponent.ts.map +1 -0
  190. package/src/Designer.ts +389 -0
  191. package/src/Designer.ts.map +1 -0
  192. package/src/FormSpec.ts +3114 -0
  193. package/src/FormSpec.ts.map +1 -0
  194. package/src/FormSpecHelpers.ts +374 -0
  195. package/src/FormSpecHelpers.ts.map +1 -0
  196. package/src/Helpers.ts +765 -0
  197. package/src/Helpers.ts.map +1 -0
  198. package/src/Interfaces.ts +166 -0
  199. package/src/Interfaces.ts.map +1 -0
  200. package/src/Interop/FormSpec.Api.Helpers.ts +872 -0
  201. package/src/Interop/FormSpec.Api.Helpers.ts.map +1 -0
  202. package/src/Interop/FormSpec.Api.Option.ts +1618 -0
  203. package/src/Interop/FormSpec.Api.Option.ts.map +1 -0
  204. package/src/Interop/FormSpec.Values.Api.Option.ts +1214 -0
  205. package/src/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
  206. package/src/Logging/LogTypes.ts +212 -0
  207. package/src/Logging/LogTypes.ts.map +1 -0
  208. package/src/Migrator.ts +156 -0
  209. package/src/Migrator.ts.map +1 -0
  210. package/src/PathwayDataExtractor.ts +290 -0
  211. package/src/PathwayDataExtractor.ts.map +1 -0
  212. package/src/PathwayExecutor.ts +1102 -0
  213. package/src/PathwayExecutor.ts.map +1 -0
  214. package/src/PathwayValidator.ts +244 -0
  215. package/src/PathwayValidator.ts.map +1 -0
  216. package/src/PluginInterface.ts +79 -0
  217. package/src/PluginInterface.ts.map +1 -0
  218. package/src/Prelude.ts +21 -0
  219. package/src/Prelude.ts.map +1 -0
  220. package/src/Renderers/FormSpecMarkdownRenderer.ts +874 -0
  221. package/src/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
  222. package/src/Renderers/MermaidRenderer.ts +218 -0
  223. package/src/Renderers/MermaidRenderer.ts.map +1 -0
  224. package/src/Renderers/PathwayRenderers.ts +200 -0
  225. package/src/Renderers/PathwayRenderers.ts.map +1 -0
@@ -0,0 +1,4080 @@
1
+ namespace Feliz
2
+
3
+ open Browser.Types
4
+ open Fable.Core.JsInterop
5
+ open Fable.Core
6
+ open Feliz.Styles
7
+ open System.ComponentModel
8
+ open System
9
+
10
+ [<StringEnum; RequireQualifiedAccess>]
11
+ type AriaDropEffect =
12
+ /// A duplicate of the source object will be dropped into the target.
13
+ | Copy
14
+ /// A function supported by the drop target is executed, using the drag
15
+ /// source as an input.
16
+ | Execute
17
+ /// A reference or shortcut to the dragged object will be created in the
18
+ /// target object.
19
+ | Link
20
+ /// The source object will be removed from its current location and dropped
21
+ /// into the target.
22
+ | Move
23
+ /// No operation can be performed; effectively cancels the drag operation if
24
+ /// an attempt is made to drop on this object. Ignored if combined with any
25
+ /// other token value. e.g. 'none copy' is equivalent to a 'copy' value.
26
+ | None
27
+ /// There is a popup menu or dialog that allows the user to choose one of
28
+ /// the drag operations (copy, move, link, execute) and any other drag
29
+ /// functionality, such as cancel.
30
+ | Popup
31
+
32
+ [<StringEnum; RequireQualifiedAccess>]
33
+ type AriaRelevant =
34
+ /// Element nodes are added to the DOM within the live region.
35
+ | Additions
36
+ /// Equivalent to the combination of all values, "additions removals text".
37
+ | All
38
+ /// Text or element nodes within the live region are removed from the DOM.
39
+ | Removals
40
+ /// Text is added to any DOM descendant nodes of the live region.
41
+ | Text
42
+
43
+ [<RequireQualifiedAccess; EditorBrowsable(EditorBrowsableState.Never)>]
44
+ module PropHelpers =
45
+ let createClockValue (duration: System.TimeSpan) =
46
+ let inline emptyZero i =
47
+ if i < 10 then "0" + (unbox<string> i)
48
+ else unbox<string> i
49
+
50
+ [ duration.Hours
51
+ duration.Minutes
52
+ duration.Seconds ]
53
+ |> List.map emptyZero
54
+ |> String.concat ":"
55
+ |> fun res -> res + "." + (emptyZero duration.Milliseconds)
56
+
57
+ let createKeySplines (values: seq<float * float * float * float>) =
58
+ values
59
+ |> Seq.map (fun (x1,y1,x2,y2) ->
60
+ (unbox<string> x1) + " " +
61
+ (unbox<string> y1) + " " +
62
+ (unbox<string> x2) + " " +
63
+ (unbox<string> y2))
64
+ |> String.concat "; "
65
+
66
+ let createOnKey (key: IKeyboardKey, handler: KeyboardEvent -> unit) =
67
+ fun (ev: KeyboardEvent) ->
68
+ let (pressedKey: string, ctrl: bool, shift: bool) = unbox key
69
+ match ctrl, shift with
70
+ | true, true when pressedKey.ToLower() = ev.key.ToLower() && ev.ctrlKey && ev.shiftKey -> handler ev
71
+ | true, false when pressedKey.ToLower() = ev.key.ToLower() && ev.ctrlKey -> handler ev
72
+ | false, true when pressedKey.ToLower() = ev.key.ToLower() && ev.shiftKey -> handler ev
73
+ | false, false when pressedKey.ToLower() = ev.key.ToLower() -> handler ev
74
+ | _, _ -> ()
75
+
76
+ let createPointsFloat (coordinates: seq<float * float>) =
77
+ coordinates
78
+ |> Seq.map (fun (x,y) -> (unbox<string> x) + "," + (unbox<string> y))
79
+ |> String.concat " "
80
+
81
+ let createPointsInt (coordinates: seq<int * int>) =
82
+ coordinates
83
+ |> Seq.map (fun (x,y) -> (unbox<string> x) + "," + (unbox<string> y))
84
+ |> String.concat " "
85
+
86
+ let createSvgPathFloat (path: seq<char * (float list list)>) =
87
+ path
88
+ |> Seq.map (fun (cmdType, cmds) ->
89
+ if cmds.Length = 0 then unbox<string> cmdType
90
+ else
91
+ cmds
92
+ |> Seq.map (unbox<seq<string>> >> String.concat ",")
93
+ |> String.concat " "
94
+ |> fun res -> (unbox<string> cmdType) + " " + res)
95
+ |> String.concat System.Environment.NewLine
96
+
97
+ let createSvgPathInt (path: seq<char * (int list list)>) =
98
+ path
99
+ |> Seq.map (fun (cmdType, cmds) ->
100
+ if cmds.Length = 0 then unbox<string> cmdType
101
+ else
102
+ cmds
103
+ |> Seq.map (unbox<seq<string>> >> String.concat ",")
104
+ |> String.concat " "
105
+ |> fun res -> (unbox<string> cmdType) + " " + res)
106
+ |> String.concat System.Environment.NewLine
107
+
108
+ /// Represents the native Html properties.
109
+ [<Erase>]
110
+ type prop =
111
+ /// List of types the server accepts, typically a file type.
112
+ static member inline accept (value: string) = Interop.mkAttr "accept" value
113
+
114
+ /// List of supported charsets.
115
+ static member inline acceptCharset (value: string) = Interop.mkAttr "acceptCharset" value
116
+
117
+ /// Defines a keyboard shortcut to activate or add focus to the element.
118
+ static member inline accessKey (value: string) = Interop.mkAttr "accessKey" value
119
+
120
+ /// The URI of a program that processes the information submitted via the form.
121
+ static member inline action (value: string) = Interop.mkAttr "action" value
122
+
123
+ /// Alternative text in case an image can't be displayed.
124
+ static member inline alt (value: string) = Interop.mkAttr "alt" value
125
+
126
+ /// Controls the amplitude of the gamma function of a component transfer element when
127
+ /// its type attribute is gamma.
128
+ static member inline amplitude (value: float) = Interop.mkAttr "amplitude" value
129
+ /// Controls the amplitude of the gamma function of a component transfer element when
130
+ /// its type attribute is gamma.
131
+ static member inline amplitude (value: int) = Interop.mkAttr "amplitude" value
132
+
133
+ /// Identifies the currently active descendant of a `composite` widget.
134
+ ///
135
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-activedescendant
136
+ static member inline ariaActiveDescendant (id: string) = Interop.mkAttr "aria-activedescendant" id
137
+
138
+ /// Indicates whether assistive technologies will present all, or only parts
139
+ /// of, the changed region based on the change notifications defined by the
140
+ /// `aria-relevant` attribute.
141
+ ///
142
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-atomic
143
+ static member inline ariaAtomic (value: bool) = Interop.mkAttr "aria-atomic" value
144
+
145
+ /// Indicates whether an element, and its subtree, are currently being
146
+ /// updated.
147
+ ///
148
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-busy
149
+ static member inline ariaBusy (value: bool) = Interop.mkAttr "aria-busy" value
150
+
151
+ /// Indicates the current "checked" state of checkboxes, radio buttons, and
152
+ /// other widgets. See related `aria-pressed` and `aria-selected`.
153
+ ///
154
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-checked
155
+ static member inline ariaChecked (value: bool) = Interop.mkAttr "aria-checked" value
156
+
157
+ /// Identifies the element (or elements) whose contents or presence are
158
+ /// controlled by the current element. See related `aria-owns`.
159
+ ///
160
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-controls
161
+ static member inline ariaControls ([<System.ParamArray>] ids: string []) = Interop.mkAttr "aria-controls" (String.concat " " ids)
162
+
163
+ /// Specifies a URI referencing content that describes the object. See
164
+ /// related `aria-describedby`.
165
+ ///
166
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-describedat
167
+ static member inline ariaDescribedAt (uri: string) = Interop.mkAttr "aria-describedat" uri
168
+
169
+ /// Identifies the element (or elements) that describes the object. See
170
+ /// related `aria-describedat` and `aria-labelledby`.
171
+ ///
172
+ /// The `aria-labelledby` attribute is similar to `aria-describedby` in that
173
+ /// both reference other elements to calculate a text alternative, but a
174
+ /// label should be concise, where a description is intended to provide more
175
+ /// verbose information.
176
+ ///
177
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-describedby
178
+ static member inline ariaDescribedBy ([<System.ParamArray>] ids: string []) = Interop.mkAttr "aria-describedby" (String.concat " " ids)
179
+
180
+ /// Indicates that the element is perceivable but disabled, so it is not
181
+ /// editable or otherwise operable. See related `aria-hidden` and
182
+ /// `aria-readonly`.
183
+ ///
184
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-disabled
185
+ static member inline ariaDisabled (value: bool) = Interop.mkAttr "aria-disabled" value
186
+
187
+ /// Indicates what functions can be performed when the dragged object is
188
+ /// released on the drop target. This allows assistive technologies to
189
+ /// convey the possible drag options available to users, including whether a
190
+ /// pop-up menu of choices is provided by the application. Typically, drop
191
+ /// effect functions can only be provided once an object has been grabbed
192
+ /// for a drag operation as the drop effect functions available are
193
+ /// dependent on the object being dragged.
194
+ ///
195
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-dropeffect
196
+ static member inline ariaDropEffect ([<System.ParamArray>] values: AriaDropEffect []) = Interop.mkAttr "aria-dropeffect" (values |> unbox<string []> |> String.concat " ")
197
+
198
+ /// Indicates whether the element, or another grouping element it controls,
199
+ /// is currently expanded or collapsed.
200
+ ///
201
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-expanded
202
+ static member inline ariaExpanded (value: bool) = Interop.mkAttr "aria-expanded" value
203
+
204
+ /// Identifies the next element (or elements) in an alternate reading order
205
+ /// of content which, at the user's discretion, allows assistive technology
206
+ /// to override the general default of reading in document source order.
207
+ ///
208
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-flowto
209
+ static member inline ariaFlowTo ([<System.ParamArray>] ids: string []) = Interop.mkAttr "aria-flowto" (String.concat " " ids)
210
+
211
+ /// Indicates an element's "grabbed" state in a drag-and-drop operation.
212
+ ///
213
+ /// When it is set to true it has been selected for dragging, false
214
+ /// indicates that the element can be grabbed for a drag-and-drop operation,
215
+ /// but is not currently grabbed, and undefined (or no value) indicates the
216
+ /// element cannot be grabbed (default).
217
+ ///
218
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-grabbed
219
+ static member inline ariaGrabbed (value: bool) = Interop.mkAttr "aria-grabbed" value
220
+
221
+ /// Indicates that the element has a popup context menu or sub-level menu.
222
+ ///
223
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-haspopup
224
+ static member inline ariaHasPopup (value: bool) = Interop.mkAttr "aria-haspopup" value
225
+
226
+ /// Indicates that the element and all of its descendants are not visible or
227
+ /// perceivable to any user as implemented by the author. See related
228
+ /// `aria-disabled`.
229
+ ///
230
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-hidden
231
+ static member inline ariaHidden (value: bool) = Interop.mkAttr "aria-hidden" value
232
+
233
+ /// Indicates the entered value does not conform to the format expected by
234
+ /// the application.
235
+ ///
236
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-invalid
237
+ static member inline ariaInvalid (value: bool) = Interop.mkAttr "aria-invalid" value
238
+
239
+ /// Defines a string value that labels the current element. See related
240
+ /// `aria-labelledby`.
241
+ ///
242
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-label
243
+ static member inline ariaLabel (value: string) = Interop.mkAttr "aria-label" value
244
+
245
+ /// Defines the hierarchical level of an element within a structure.
246
+ ///
247
+ /// This can be applied inside trees to tree items, to headings inside a
248
+ /// document, to nested grids, nested tablists and to other structural items
249
+ /// that may appear inside a container or participate in an ownership
250
+ /// hierarchy. The value for `aria-level` is an integer greater than or
251
+ /// equal to 1.
252
+ ///
253
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-level
254
+ static member inline ariaLevel (value: int) = Interop.mkAttr "aria-level" value
255
+
256
+ /// Identifies the element (or elements) that labels the current element.
257
+ /// See related `aria-label` and `aria-describedby`.
258
+ ///
259
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-labelledby
260
+ static member inline ariaLabelledBy ([<System.ParamArray>] ids: string []) = Interop.mkAttr "aria-labelledby" (String.concat " " ids)
261
+
262
+ /// Indicates whether a text box accepts multiple lines of input or only a
263
+ /// single line.
264
+ ///
265
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-multiline
266
+ static member inline ariaMultiLine (value: bool) = Interop.mkAttr "aria-multiline" value
267
+
268
+ /// Indicates that the user may select more than one item from the current
269
+ /// selectable descendants.
270
+ ///
271
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-multiselectable
272
+ static member inline ariaMultiSelectable (value: bool) = Interop.mkAttr "aria-multiselectable" value
273
+
274
+ /// Identifies an element (or elements) in order to define a visual,
275
+ /// functional, or contextual parent/child relationship between DOM elements
276
+ /// where the DOM hierarchy cannot be used to represent the relationship.
277
+ /// See related `aria-controls`.
278
+ ///
279
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-owns
280
+ static member inline ariaOwns ([<System.ParamArray>] ids: string []) = Interop.mkAttr "aria-owns" (String.concat " " ids)
281
+
282
+ /// Indicates the current "pressed" state of toggle buttons. See related
283
+ /// `aria-checked` and `aria-selected`.
284
+ ///
285
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-pressed
286
+ static member inline ariaPressed (value: bool) = Interop.mkAttr "aria-pressed" value
287
+
288
+ /// Defines an element's number or position in the current set of listitems
289
+ /// or treeitems. Not required if all elements in the set are present in the
290
+ /// DOM. See related `aria-setsize`.
291
+ ///
292
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-posinset
293
+ static member inline ariaPosInSet (value: int) = Interop.mkAttr "aria-posinset" value
294
+
295
+ /// Indicates that the element is not editable, but is otherwise operable.
296
+ /// See related `aria-disabled`.
297
+ ///
298
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-readonly
299
+ static member inline ariaReadOnly (value: bool) = Interop.mkAttr "aria-readonly" value
300
+
301
+ /// Indicates what user agent change notifications (additions, removals,
302
+ /// etc.) assistive technologies will receive within a live region. See
303
+ /// related `aria-atomic`.
304
+ ///
305
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-relevant
306
+ static member inline ariaRelevant ([<System.ParamArray>] values: AriaRelevant []) = Interop.mkAttr "aria-relevant" (values |> unbox<string []> |> String.concat " ")
307
+
308
+ /// Indicates that user input is required on the element before a form may
309
+ /// be submitted.
310
+ ///
311
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-required
312
+ static member inline ariaRequired (value: bool) = Interop.mkAttr "aria-required" value
313
+
314
+ /// Indicates the current "selected" state of various widgets. See related
315
+ /// `aria-checked` and `aria-pressed`.
316
+ ///
317
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-selected
318
+ static member inline ariaSelected (value: bool) = Interop.mkAttr "aria-selected" value
319
+
320
+ /// Defines the maximum allowed value for a range widget.
321
+ ///
322
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemax
323
+ static member inline ariaValueMax (value: float) = Interop.mkAttr "aria-valuemax" value
324
+ /// Defines the maximum allowed value for a range widget.
325
+ ///
326
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemax
327
+ static member inline ariaValueMax (value: int) = Interop.mkAttr "aria-valuemax" value
328
+
329
+ /// Defines the minimum allowed value for a range widget.
330
+ ///
331
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemin
332
+ static member inline ariaValueMin (value: float) = Interop.mkAttr "aria-valuemin" value
333
+ /// Defines the minimum allowed value for a range widget.
334
+ ///
335
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemin
336
+ static member inline ariaValueMin (value: int) = Interop.mkAttr "aria-valuemin" value
337
+
338
+ /// Defines the current value for a range widget. See related
339
+ /// `aria-valuetext`.
340
+ ///
341
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuenow
342
+ static member inline ariaValueNow (value: float) = Interop.mkAttr "aria-valuenow" value
343
+ /// Defines the current value for a range widget. See related
344
+ /// `aria-valuetext`.
345
+ ///
346
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuenow
347
+ static member inline ariaValueNow (value: int) = Interop.mkAttr "aria-valuenow" value
348
+
349
+ /// Defines the human readable text alternative of `aria-valuenow` for a
350
+ /// range widget.
351
+ ///
352
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuetext
353
+ static member inline ariaValueText (value: string) = Interop.mkAttr "aria-valuetext" value
354
+
355
+ /// Defines the number of items in the current set of listitems or
356
+ /// treeitems. Not required if all elements in the set are present in the
357
+ /// DOM. See related `aria-posinset`.
358
+ ///
359
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-setsize
360
+ static member inline ariaSetSize (value: int) = Interop.mkAttr "aria-setsize" value
361
+
362
+ /// Indicates that the script should be executed asynchronously.
363
+ static member inline async (value: bool) = Interop.mkAttr "async" value
364
+
365
+ /// Indicates the name of the CSS property or attribute of the target element
366
+ /// that is going to be changed during an animation.
367
+ static member inline attributeName (value: string) = Interop.mkAttr "attributeName" value
368
+
369
+ /// Indicates whether controls in this form can by default have their values
370
+ /// automatically completed by the browser.
371
+ static member inline autoComplete (value: string) = Interop.mkAttr "autoComplete" value
372
+
373
+ /// The element should be automatically focused after the page loaded.
374
+ static member inline autoFocus (value: bool) = Interop.mkAttr "autoFocus" value
375
+
376
+ /// The audio or video should play as soon as possible.
377
+ static member inline autoPlay (value: bool) = Interop.mkAttr "autoPlay" value
378
+
379
+ /// Specifies the direction angle for the light source on the XY plane (clockwise),
380
+ /// in degrees from the x axis.
381
+ static member inline azimuth (value: float) = Interop.mkAttr "azimuth" value
382
+ /// Specifies the direction angle for the light source on the XY plane (clockwise),
383
+ /// in degrees from the x axis.
384
+ static member inline azimuth (value: int) = Interop.mkAttr "azimuth" value
385
+
386
+ /// Represents the base frequency parameter for the noise function of the
387
+ /// <feTurbulence> filter primitive.
388
+ static member inline baseFrequency (value: float) = Interop.mkAttr "baseFrequency" value
389
+ /// Represents the base frequency parameter for the noise function of the
390
+ /// <feTurbulence> filter primitive.
391
+ static member inline baseFrequency (value: int) = Interop.mkAttr "baseFrequency" value
392
+ /// Represents the base frequency parameter for the noise function of the
393
+ /// <feTurbulence> filter primitive.
394
+ static member inline baseFrequency (horizontal: float, vertical: float) = Interop.mkAttr "baseFrequency" (unbox<string> horizontal + "," + unbox<string> vertical)
395
+ /// Represents the base frequency parameter for the noise function of the
396
+ /// <feTurbulence> filter primitive.
397
+ static member inline baseFrequency (horizontal: float, vertical: int) = Interop.mkAttr "baseFrequency" (unbox<string> horizontal + "," + unbox<string> vertical)
398
+ /// Represents the base frequency parameter for the noise function of the
399
+ /// <feTurbulence> filter primitive.
400
+ static member inline baseFrequency (horizontal: int, vertical: float) = Interop.mkAttr "baseFrequency" (unbox<string> horizontal + "," + unbox<string> vertical)
401
+ /// Represents the base frequency parameter for the noise function of the
402
+ /// <feTurbulence> filter primitive.
403
+ static member inline baseFrequency (horizontal: int, vertical: int) = Interop.mkAttr "baseFrequency" (unbox<string> horizontal + "," + unbox<string> vertical)
404
+
405
+ /// Defines when an animation should begin or when an element should be discarded.
406
+ static member inline begin' (value: string) = Interop.mkAttr "begin" value
407
+
408
+ /// Shifts the range of the filter. After applying the kernelMatrix of the <feConvolveMatrix>
409
+ /// element to the input image to yield a number and applied the divisor attribute, the bias
410
+ /// attribute is added to each component. This allows representation of values that would
411
+ /// otherwise be clamped to 0 or 1.
412
+ static member inline bias (value: float) = Interop.mkAttr "bias" value
413
+ /// Shifts the range of the filter. After applying the kernelMatrix of the <feConvolveMatrix>
414
+ /// element to the input image to yield a number and applied the divisor attribute, the bias
415
+ /// attribute is added to each component. This allows representation of values that would
416
+ /// otherwise be clamped to 0 or 1.
417
+ static member inline bias (value: int) = Interop.mkAttr "bias" value
418
+
419
+ /// Specifies a relative offset value for an attribute that will be modified during an animation.
420
+ static member inline by (value: float) = Interop.mkAttr "by" value
421
+ /// Specifies a relative offset value for an attribute that will be modified during an animation.
422
+ static member inline by (value: int) = Interop.mkAttr "by" value
423
+ /// Specifies a relative offset value for an attribute that will be modified during an animation.
424
+ static member inline by (value: string) = Interop.mkAttr "by" value
425
+
426
+ static member inline capture (value: bool) = Interop.mkAttr "capture" value
427
+
428
+ /// This attribute declares the document's character encoding. Must be used in the meta tag.
429
+ static member inline charset (value: string) = Interop.mkAttr "charSet" value
430
+
431
+ /// Children of this React element.
432
+ static member inline children (value: Fable.React.ReactElement) = Interop.mkAttr "children" value
433
+ /// Children of this React element.
434
+ static member inline children (elems: Fable.React.ReactElement seq) = Interop.mkAttr "children" (Interop.reactApi.Children.toArray (Array.ofSeq elems))
435
+
436
+ /// A URL that designates a source document or message for the information quoted. This attribute is intended to
437
+ /// point to information explaining the context or the reference for the quote.
438
+ static member inline cite (value: string) = Interop.mkAttr "cite" value
439
+
440
+ /// Specifies a CSS class for this element.
441
+ static member inline className (value: string) = Interop.mkAttr "className" value
442
+ /// Takes a `seq<string>` and joins them using a space to combine the classes into a single class property.
443
+ ///
444
+ /// `prop.className [ "one"; "two" ]`
445
+ ///
446
+ /// is the same as
447
+ ///
448
+ /// `prop.className "one two"`
449
+ static member inline className (names: seq<string>) = Interop.mkAttr "className" (String.concat " " names)
450
+
451
+ /// Takes a `seq<string>` and joins them using a space to combine the classes into a single class property.
452
+ ///
453
+ /// `prop.classes [ "one"; "two" ]` => `prop.className "one two"`
454
+ static member inline classes (names: seq<string>) = Interop.mkAttr "className" (String.concat " " names)
455
+
456
+ /// Defines the number of columns in a textarea.
457
+ static member inline cols (value: int) = Interop.mkAttr "cols" value
458
+
459
+ /// Defines the number of columns a cell should span.
460
+ static member inline colSpan (value: int) = Interop.mkAttr "colSpan" value
461
+
462
+ /// A value associated with http-equiv or name depending on the context.
463
+ static member inline content (value: string) = Interop.mkAttr "content" value
464
+
465
+ /// Indicates whether the element's content is editable.
466
+ static member inline contentEditable (value: bool) = Interop.mkAttr "contentEditable" value
467
+
468
+ /// If true, the browser will offer controls to allow the user to control video playback,
469
+ /// including volume, seeking, and pause/resume playback.
470
+ static member inline controls (value: bool) = Interop.mkAttr "controls" value
471
+
472
+ /// Create a custom prop
473
+ ///
474
+ /// You generally shouldn't need to use this, if you notice a core React/Html attribute missing please submit an issue.
475
+ static member inline custom (key: string, value: 't) = Interop.mkAttr key value
476
+
477
+ /// The SVG cx attribute define the x-axis coordinate of a center point.
478
+ ///
479
+ /// Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient>
480
+ static member inline cx (value: float) = Interop.mkAttr "cx" value
481
+ /// The SVG cx attribute define the x-axis coordinate of a center point.
482
+ ///
483
+ /// Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient>
484
+ static member inline cx (value: ICssUnit) = Interop.mkAttr "cx" value
485
+ /// The SVG cx attribute define the x-axis coordinate of a center point.
486
+ ///
487
+ /// Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient>
488
+ static member inline cx (value: int) = Interop.mkAttr "cx" value
489
+
490
+ /// The SVG cy attribute define the y-axis coordinate of a center point.
491
+ ///
492
+ /// Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient>
493
+ static member inline cy (value: float) = Interop.mkAttr "cy" value
494
+ /// The SVG cy attribute define the y-axis coordinate of a center point.
495
+ ///
496
+ /// Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient>
497
+ static member inline cy (value: ICssUnit) = Interop.mkAttr "cy" value
498
+ /// The SVG cy attribute define the y-axis coordinate of a center point.
499
+ ///
500
+ /// Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient>
501
+ static member inline cy (value: int) = Interop.mkAttr "cy" value
502
+
503
+ /// Defines a SVG path to be drawn.
504
+ static member inline d (path: seq<char * (float list list)>) =
505
+ PropHelpers.createSvgPathFloat path
506
+ |> Interop.mkAttr "d"
507
+ /// Defines a SVG path to be drawn.
508
+ static member inline d (path: seq<char * (int list list)>) =
509
+ PropHelpers.createSvgPathInt path
510
+ |> Interop.mkAttr "d"
511
+ /// Defines a SVG path to be drawn.
512
+ static member inline d (path: string) = Interop.mkAttr "d" path
513
+
514
+ /// Sets the inner Html content of the element.
515
+ static member inline dangerouslySetInnerHTML (content: string) = Interop.mkAttr "dangerouslySetInnerHTML" (createObj [ "__html" ==> content ])
516
+
517
+ /// This attribute indicates the time and/or date of the element.
518
+ static member inline dateTime (value: string) = Interop.mkAttr "dateTime" value
519
+
520
+ /// Sets the DOM defaultChecked value when initially rendered.
521
+ ///
522
+ /// Typically only used with uncontrolled components.
523
+ static member inline defaultChecked (value: bool) = Interop.mkAttr "defaultChecked" value
524
+
525
+ /// Sets the DOM defaultValue value when initially rendered.
526
+ ///
527
+ /// Typically only used with uncontrolled components.
528
+ static member inline defaultValue (value: bool) = Interop.mkAttr "defaultValue" value
529
+ /// Sets the DOM defaultValue value when initially rendered.
530
+ ///
531
+ /// Typically only used with uncontrolled components.
532
+ static member inline defaultValue (value: float) = Interop.mkAttr "defaultValue" value
533
+ /// Sets the DOM defaultValue value when initially rendered.
534
+ ///
535
+ /// Typically only used with uncontrolled components.
536
+ static member inline defaultValue (value: int) = Interop.mkAttr "defaultValue" value
537
+ /// Sets the DOM defaultValue value when initially rendered.
538
+ ///
539
+ /// Typically only used with uncontrolled components.
540
+ static member inline defaultValue (value: string) = Interop.mkAttr "defaultValue" value
541
+ /// Sets the DOM defaultValue value when initially rendered.
542
+ ///
543
+ /// Typically only used with uncontrolled components.
544
+ static member inline defaultValue (value: seq<float>) = Interop.mkAttr "defaultValue" (ResizeArray value)
545
+ /// Sets the DOM defaultValue value when initially rendered.
546
+ ///
547
+ /// Typically only used with uncontrolled components.
548
+ static member inline defaultValue (value: seq<int>) = Interop.mkAttr "defaultValue" (ResizeArray value)
549
+ /// Sets the DOM defaultValue value when initially rendered.
550
+ ///
551
+ /// Typically only used with uncontrolled components.
552
+ static member inline defaultValue (value: seq<string>) = Interop.mkAttr "defaultValue" (ResizeArray value)
553
+
554
+ /// Indicates to a browser that the script is meant to be executed after the document
555
+ /// has been parsed, but before firing DOMContentLoaded.
556
+ ///
557
+ /// Scripts with the defer attribute will prevent the DOMContentLoaded event from
558
+ /// firing until the script has loaded and finished evaluating.
559
+ ///
560
+ /// This attribute must not be used if the src attribute is absent (i.e. for inline scripts),
561
+ /// in this case it would have no effect.
562
+ static member inline defer (value: bool) = Interop.mkAttr "defer" value
563
+
564
+ /// Represents the kd value in the Phong lighting model.
565
+ ///
566
+ /// In SVG, this can be any non-negative number.
567
+ static member inline diffuseConstant (value: float) = Interop.mkAttr "diffuseConstant" value
568
+ /// Represents the kd value in the Phong lighting model.
569
+ ///
570
+ /// In SVG, this can be any non-negative number.
571
+ static member inline diffuseConstant (value: int) = Interop.mkAttr "diffuseConstant" value
572
+
573
+ /// Sets the directionality of the element.
574
+ static member inline dirName (value: string) = Interop.mkAttr "dirName" value
575
+
576
+ /// Indicates whether the user can interact with the element.
577
+ static member inline disabled (value: bool) = Interop.mkAttr "disabled" value
578
+
579
+ /// Specifies the value by which the resulting number of applying the kernelMatrix
580
+ /// of a <feConvolveMatrix> element to the input image color value is divided to
581
+ /// yield the destination color value.
582
+ ///
583
+ /// A divisor that is the sum of all the matrix values tends to have an evening
584
+ /// effect on the overall color intensity of the result.
585
+ static member inline divisor (value: float) = Interop.mkAttr "divisor" value
586
+ /// Specifies the value by which the resulting number of applying the kernelMatrix
587
+ /// of a <feConvolveMatrix> element to the input image color value is divided to
588
+ /// yield the destination color value.
589
+ ///
590
+ /// A divisor that is the sum of all the matrix values tends to have an evening
591
+ /// effect on the overall color intensity of the result.
592
+ static member inline divisor (value: int) = Interop.mkAttr "divisor" value
593
+
594
+ /// This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource.
595
+ static member inline download (value: bool) = Interop.mkAttr "download" value
596
+
597
+ /// This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource.
598
+ /// The value specifies the default file name for use in labeling the resource in a local file system.
599
+ static member inline download (value: string) = Interop.mkAttr "download" value
600
+
601
+ /// Indicates whether the the element can be dragged.
602
+ static member inline draggable (value: bool) = Interop.mkAttr "draggable" value
603
+
604
+ /// SVG attribute to indicate a shift along the x-axis on the position of an element or its content.
605
+ static member inline dx (value: float) = Interop.mkAttr "dx" value
606
+ /// SVG attribute to indicate a shift along the x-axis on the position of an element or its content.
607
+ static member inline dx (value: int) = Interop.mkAttr "dx" value
608
+
609
+ /// SVG attribute to indicate a shift along the y-axis on the position of an element or its content.
610
+ static member inline dy (value: float) = Interop.mkAttr "dy" value
611
+ /// SVG attribute to indicate a shift along the y-axis on the position of an element or its content.
612
+ static member inline dy (value: int) = Interop.mkAttr "dy" value
613
+
614
+ /// SVG attribute that specifies the direction angle for the light source from the XY plane towards
615
+ /// the Z-axis, in degrees.
616
+ ///
617
+ /// Note that the positive Z-axis points towards the viewer of the content.
618
+ static member inline elevation (value: float) = Interop.mkAttr "elevation" value
619
+ /// SVG attribute that specifies the direction angle for the light source from the XY plane towards
620
+ /// the Z-axis, in degrees.
621
+ ///
622
+ /// Note that the positive Z-axis points towards the viewer of the content.
623
+ static member inline elevation (value: int) = Interop.mkAttr "elevation" value
624
+
625
+ /// Defines an end value for the animation that can constrain the active duration.
626
+ static member inline end' (value: string) = Interop.mkAttr "end" value
627
+ /// Defines an end value for the animation that can constrain the active duration.
628
+ static member inline end' (values: seq<string>) = Interop.mkAttr "end" (String.concat ";" values)
629
+
630
+ /// Defines the exponent of the gamma function.
631
+ static member inline exponent (value: float) = Interop.mkAttr "exponent" value
632
+ /// Defines the exponent of the gamma function.
633
+ static member inline exponent (value: int) = Interop.mkAttr "exponent" value
634
+
635
+ /// Defines the files that will be uploaded when using an input element of the file type.
636
+ static member inline files (value: FileList) = Interop.mkAttr "files" value
637
+
638
+ /// SVG attribute to define the opacity of the paint server (color, gradient, pattern, etc) applied to a shape.
639
+ static member inline fillOpacity (value: float) = Interop.mkAttr "fillOpacity" value
640
+ /// SVG attribute to define the opacity of the paint server (color, gradient, pattern, etc) applied to a shape.
641
+ static member inline fillOpacity (value: int) = Interop.mkAttr "fillOpacity" value
642
+
643
+ /// SVG attribute to define the size of the font from baseline to baseline when multiple
644
+ /// lines of text are set solid in a multiline layout environment.
645
+ static member inline fontSize (value: float) = Interop.mkAttr "fontSize" value
646
+ /// SVG attribute to define the size of the font from baseline to baseline when multiple
647
+ /// lines of text are set solid in a multiline layout environment.
648
+ static member inline fontSize (value: int) = Interop.mkAttr "fontSize" value
649
+
650
+ /// A space-separated list of other elements’ ids, indicating that those elements contributed input
651
+ /// values to (or otherwise affected) the calculation.
652
+ static member inline for' (value: string) = Interop.mkAttr "for" value
653
+ /// A space-separated list of other elements’ ids, indicating that those elements contributed input
654
+ /// values to (or otherwise affected) the calculation.
655
+ static member inline for' (ids: #seq<string>) = Interop.mkAttr "for" (ids |> String.concat " ")
656
+
657
+ /// The <form> element to associate the <meter> element with (its form owner). The value of this
658
+ /// attribute must be the id of a <form> in the same document. If this attribute is not set, the
659
+ /// <button> is associated with its ancestor <form> element, if any. This attribute is only used
660
+ /// if the <meter> element is being used as a form-associated element, such as one displaying a
661
+ /// range corresponding to an <input type="number">.
662
+ static member inline form (value: string) = Interop.mkAttr "form" value
663
+
664
+ /// Indicates the initial value of the attribute that will be modified during the animation.
665
+ ///
666
+ /// When used with the `to` attribute, the animation will change the modified attribute from
667
+ /// the from value to the to value.
668
+ ///
669
+ /// When used with the `by` attribute, the animation will change the attribute relatively
670
+ /// from the from value by the value specified in by.
671
+ static member inline from (value: float) = Interop.mkAttr "from" value
672
+ /// Indicates the initial value of the attribute that will be modified during the animation.
673
+ ///
674
+ /// When used with the `to` attribute, the animation will change the modified attribute from
675
+ /// the from value to the to value.
676
+ ///
677
+ /// When used with the `by` attribute, the animation will change the attribute relatively
678
+ /// from the from value by the value specified in by.
679
+ static member inline from (values: seq<float>) = Interop.mkAttr "from" (values |> unbox<seq<string>> |> String.concat " ")
680
+ /// Indicates the initial value of the attribute that will be modified during the animation.
681
+ ///
682
+ /// When used with the `to` attribute, the animation will change the modified attribute from
683
+ /// the from value to the to value.
684
+ ///
685
+ /// When used with the `by` attribute, the animation will change the attribute relatively
686
+ /// from the from value by the value specified in by.
687
+ static member inline from (value: int) = Interop.mkAttr "from" value
688
+ /// Indicates the initial value of the attribute that will be modified during the animation.
689
+ ///
690
+ /// When used with the `to` attribute, the animation will change the modified attribute from
691
+ /// the from value to the to value.
692
+ ///
693
+ /// When used with the `by` attribute, the animation will change the attribute relatively
694
+ /// from the from value by the value specified in by.
695
+ static member inline from (values: seq<int>) = Interop.mkAttr "from" (values |> unbox<seq<string>> |> String.concat " ")
696
+ /// Indicates the initial value of the attribute that will be modified during the animation.
697
+ ///
698
+ /// When used with the `to` attribute, the animation will change the modified attribute from
699
+ /// the from value to the to value.
700
+ ///
701
+ /// When used with the `by` attribute, the animation will change the attribute relatively
702
+ /// from the from value by the value specified in by.
703
+ static member inline from (value: string) = Interop.mkAttr "from" value
704
+ /// Indicates the initial value of the attribute that will be modified during the animation.
705
+ ///
706
+ /// When used with the `to` attribute, the animation will change the modified attribute from
707
+ /// the from value to the to value.
708
+ ///
709
+ /// When used with the `by` attribute, the animation will change the attribute relatively
710
+ /// from the from value by the value specified in by.
711
+ static member inline from (values: seq<string>) = Interop.mkAttr "from" (values |> String.concat " ")
712
+
713
+ /// Defines the radius of the focal point for the radial gradient.
714
+ static member inline fr (value: float) = Interop.mkAttr "fr" value
715
+ /// Defines the radius of the focal point for the radial gradient.
716
+ static member inline fr (value: int) = Interop.mkAttr "fr" value
717
+ /// Defines the radius of the focal point for the radial gradient.
718
+ static member inline fr (value: ICssUnit) = Interop.mkAttr "fr" value
719
+
720
+ /// Defines the x-axis coordinate of the focal point for a radial gradient.
721
+ static member inline fx (value: float) = Interop.mkAttr "fx" value
722
+ /// Defines the x-axis coordinate of the focal point for a radial gradient.
723
+ static member inline fx (value: int) = Interop.mkAttr "fx" value
724
+ /// Defines the x-axis coordinate of the focal point for a radial gradient.
725
+ static member inline fx (value: ICssUnit) = Interop.mkAttr "fx" value
726
+
727
+ /// Defines the y-axis coordinate of the focal point for a radial gradient.
728
+ static member inline fy (value: float) = Interop.mkAttr "fy" value
729
+ /// Defines the y-axis coordinate of the focal point for a radial gradient.
730
+ static member inline fy (value: int) = Interop.mkAttr "fy" value
731
+ /// Defines the y-axis coordinate of the focal point for a radial gradient.
732
+ static member inline fy (value: ICssUnit) = Interop.mkAttr "fy" value
733
+
734
+ /// Defines an optional additional transformation from the gradient coordinate system
735
+ /// onto the target coordinate system (i.e., userSpaceOnUse or objectBoundingBox).
736
+ ///
737
+ /// This allows for things such as skewing the gradient. This additional transformation
738
+ /// matrix is post-multiplied to (i.e., inserted to the right of) any previously defined
739
+ /// transformations, including the implicit transformation necessary to convert from object
740
+ /// bounding box units to user space.
741
+ static member inline gradientTransform (transform: ITransformProperty) =
742
+ Interop.mkAttr "gradientTransform" (unbox<string> transform)
743
+ /// Defines optional additional transformation(s) from the gradient coordinate system
744
+ /// onto the target coordinate system (i.e., userSpaceOnUse or objectBoundingBox).
745
+ ///
746
+ /// This allows for things such as skewing the gradient. This additional transformation
747
+ /// matrix is post-multiplied to (i.e., inserted to the right of) any previously defined
748
+ /// transformations, including the implicit transformation necessary to convert from object
749
+ /// bounding box units to user space.
750
+ static member inline gradientTransform (transforms: seq<ITransformProperty>) =
751
+ Interop.mkAttr "gradientTransform" (unbox<seq<string>> transforms |> String.concat " ")
752
+
753
+ /// Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
754
+ static member inline hidden (value: bool) = Interop.mkAttr "hidden" value
755
+
756
+ /// Specifies the height of elements listed here. For all other elements, use the CSS height property.
757
+ ///
758
+ /// HTML: <canvas>, <embed>, <iframe>, <img>, <input>, <object>, <video>
759
+ ///
760
+ /// SVG: <feBlend>, <feColorMatrix>, <feComponentTransfer>, <feComposite>, <feConvolveMatrix>,
761
+ /// <feDiffuseLighting>, <feDisplacementMap>, <feDropShadow>, <feFlood>, <feGaussianBlur>, <feImage>,
762
+ /// <feMerge>, <feMorphology>, <feOffset>, <feSpecularLighting>, <feTile>, <feTurbulence>, <filter>,
763
+ /// <mask>, <pattern>
764
+ static member inline height (value: float) = Interop.mkAttr "height" value
765
+ /// Specifies the height of elements listed here. For all other elements, use the CSS height property.
766
+ ///
767
+ /// HTML: <canvas>, <embed>, <iframe>, <img>, <input>, <object>, <video>
768
+ ///
769
+ /// SVG: <feBlend>, <feColorMatrix>, <feComponentTransfer>, <feComposite>, <feConvolveMatrix>,
770
+ /// <feDiffuseLighting>, <feDisplacementMap>, <feDropShadow>, <feFlood>, <feGaussianBlur>, <feImage>,
771
+ /// <feMerge>, <feMorphology>, <feOffset>, <feSpecularLighting>, <feTile>, <feTurbulence>, <filter>,
772
+ /// <mask>, <pattern>
773
+ static member inline height (value: ICssUnit) = Interop.mkAttr "height" value
774
+ /// Specifies the height of elements listed here. For all other elements, use the CSS height property.
775
+ ///
776
+ /// HTML: <canvas>, <embed>, <iframe>, <img>, <input>, <object>, <video>
777
+ ///
778
+ /// SVG: <feBlend>, <feColorMatrix>, <feComponentTransfer>, <feComposite>, <feConvolveMatrix>,
779
+ /// <feDiffuseLighting>, <feDisplacementMap>, <feDropShadow>, <feFlood>, <feGaussianBlur>, <feImage>,
780
+ /// <feMerge>, <feMorphology>, <feOffset>, <feSpecularLighting>, <feTile>, <feTurbulence>, <filter>,
781
+ /// <mask>, <pattern>
782
+ static member inline height (value: int) = Interop.mkAttr "height" value
783
+
784
+ /// The lower numeric bound of the high end of the measured range. This must be less than the
785
+ /// maximum value (max attribute), and it also must be greater than the low value and minimum
786
+ /// value (low attribute and min attribute, respectively), if any are specified. If unspecified,
787
+ /// or if greater than the maximum value, the high value is equal to the maximum value.
788
+ static member inline high (value: float) = Interop.mkAttr "high" value
789
+ /// The lower numeric bound of the high end of the measured range. This must be less than the
790
+ /// maximum value (max attribute), and it also must be greater than the low value and minimum
791
+ /// value (low attribute and min attribute, respectively), if any are specified. If unspecified,
792
+ /// or if greater than the maximum value, the high value is equal to the maximum value.
793
+ static member inline high (value: int) = Interop.mkAttr "high" value
794
+
795
+ /// The URL of a linked resource.
796
+ static member inline href (value: string) = Interop.mkAttr "href" value
797
+
798
+ /// Indicates the language of the linked resource. Allowed values are determined by BCP47.
799
+ ///
800
+ /// Use this attribute only if the href attribute is present.
801
+ static member inline hrefLang (value: string) = Interop.mkAttr "hreflang" value
802
+
803
+ static member inline htmlFor (value: string) = Interop.mkAttr "htmlFor" value
804
+
805
+ /// Often used with CSS to style a specific element. The value of this attribute must be unique.
806
+ static member inline id (value: int) = Interop.mkAttr "id" (unbox<string> value)
807
+ /// Often used with CSS to style a specific element. The value of this attribute must be unique.
808
+ static member inline id (value: string) = Interop.mkAttr "id" value
809
+
810
+ /// Alias for `dangerouslySetInnerHTML`, sets the inner Html content of the element.
811
+ static member inline innerHtml (content: string) = Interop.mkAttr "dangerouslySetInnerHTML" (createObj [ "__html" ==> content ])
812
+
813
+ /// Contains inline metadata that a user agent can use to verify that a fetched resource
814
+ /// has been delivered free of unexpected manipulation.
815
+ static member inline integrity (value: string) = Interop.mkAttr "integrity" value
816
+
817
+ /// Defines the intercept of the linear function of color component transfers when the type
818
+ /// attribute is set to linear.
819
+ static member inline intercept (value: float) = Interop.mkAttr "intercept" value
820
+ /// Defines the intercept of the linear function of color component transfers when the type
821
+ /// attribute is set to linear.
822
+ static member inline intercept (value: int) = Interop.mkAttr "intercept" value
823
+
824
+ /// Sets the checked attribute for an element.
825
+ static member inline isChecked (value: bool) = Interop.mkAttr "checked" value
826
+
827
+ /// Sets the open attribute for an element.
828
+ static member inline isOpen (value: bool) = Interop.mkAttr "open" value
829
+
830
+ /// Defines one of the values to be used within the the arithmetic operation of the
831
+ /// <feComposite> filter primitive.
832
+ static member inline k1 (value: float) = Interop.mkAttr "k1" value
833
+ /// Defines one of the values to be used within the the arithmetic operation of the
834
+ /// <feComposite> filter primitive.
835
+ static member inline k1 (value: int) = Interop.mkAttr "k1" value
836
+
837
+ /// Defines one of the values to be used within the the arithmetic operation of the
838
+ /// <feComposite> filter primitive.
839
+ static member inline k2 (value: float) = Interop.mkAttr "k2" value
840
+ /// Defines one of the values to be used within the the arithmetic operation of the
841
+ /// <feComposite> filter primitive.
842
+ static member inline k2 (value: int) = Interop.mkAttr "k2" value
843
+
844
+ /// Defines one of the values to be used within the the arithmetic operation of the
845
+ /// <feComposite> filter primitive.
846
+ static member inline k3 (value: float) = Interop.mkAttr "k3" value
847
+ /// Defines one of the values to be used within the the arithmetic operation of the
848
+ /// <feComposite> filter primitive.
849
+ static member inline k3 (value: int) = Interop.mkAttr "k3" value
850
+
851
+ /// Defines one of the values to be used within the the arithmetic operation of the
852
+ /// <feComposite> filter primitive.
853
+ static member inline k4 (value: float) = Interop.mkAttr "k4" value
854
+ /// Defines one of the values to be used within the the arithmetic operation of the
855
+ /// <feComposite> filter primitive.
856
+ static member inline k4 (value: int) = Interop.mkAttr "k4" value
857
+
858
+ /// Defines the list of numbers that make up the kernel matrix for the
859
+ /// <feConvolveMatrix> element.
860
+ static member inline kernelMatrix (values: seq<float>) = Interop.mkAttr "kernelMatrix" (values |> unbox<seq<string>> |> String.concat " ")
861
+ /// Defines the list of numbers that make up the kernel matrix for the
862
+ /// <feConvolveMatrix> element.
863
+ static member inline kernelMatrix (values: seq<int>) = Interop.mkAttr "kernelMatrix" (values |> unbox<seq<string>> |> String.concat " ")
864
+
865
+ /// A special string attribute you need to include when creating arrays of elements.
866
+ /// Keys help React identify which items have changed, are added, or are removed.
867
+ /// Keys should be given to the elements inside an array to give the elements a stable identity.
868
+ ///
869
+ /// Keys only need to be unique among sibling elements in the same array. They don’t need to
870
+ /// be unique across the whole application or even a single component.
871
+ static member inline key (value: System.Guid) = Interop.mkAttr "key" (unbox<string> value)
872
+ /// A special string attribute you need to include when creating arrays of elements. Keys help
873
+ /// React identify which items have changed, are added, or are removed. Keys should be given
874
+ /// to the elements inside an array to give the elements a stable identity.
875
+ ///
876
+ /// Keys only need to be unique among sibling elements in the same array. They don’t need to
877
+ /// be unique across the whole application or even a single component.
878
+ static member inline key (value: int) = Interop.mkAttr "key" value
879
+ /// A special string attribute you need to include when creating arrays of elements. Keys
880
+ /// help React identify which
881
+ /// items have changed, are added, or are removed. Keys should be given to the elements
882
+ /// inside an array to give the elements a stable identity.
883
+ ///
884
+ /// Keys only need to be unique among sibling elements in the same array. They don’t need to
885
+ /// be unique across the whole application or even a single component.
886
+ static member inline key (value: string) = Interop.mkAttr "key" value
887
+
888
+ /// Indicates the simple duration of an animation.
889
+ static member inline keyPoints (values: seq<float>) =
890
+ Interop.mkAttr "keyPoints" (values |> unbox<seq<string>> |> String.concat ";")
891
+
892
+ /// Indicates the simple duration of an animation.
893
+ ///
894
+ /// Each control point description is a set of four values: x1 y1 x2 y2, describing the Bézier
895
+ /// control points for one time segment.
896
+ ///
897
+ /// The keyTimes values that define the associated segment are the Bézier "anchor points",
898
+ /// and the keySplines values are the control points. Thus, there must be one fewer sets of
899
+ /// control points than there are keyTimes.
900
+ ///
901
+ /// The values of x1 y1 x2 y2 must all be in the range 0 to 1.
902
+ static member inline keySplines (values: seq<float * float * float * float>) =
903
+ PropHelpers.createKeySplines(values)
904
+ |> Interop.mkAttr "keySplines"
905
+
906
+ /// Indicates the simple duration of an animation.
907
+ static member inline keyTimes (values: seq<float>) =
908
+ Interop.mkAttr "keyTimes" (values |> unbox<seq<string>> |> String.concat ";")
909
+
910
+ /// Helps define the language of an element: the language that non-editable elements are
911
+ /// written in, or the language that the editable elements should be written in by the user.
912
+ static member inline lang (value: string) = Interop.mkAttr "lang" value
913
+ /// Specifies a user-readable title of the element.
914
+ static member inline label (value: string) = Interop.mkAttr "label" value
915
+ /// Defines the color of the light source for lighting filter primitives.
916
+ static member inline lightingColor (value: string) = Interop.mkAttr "lighting-color" value
917
+
918
+ /// Represents the angle in degrees between the spot light axis (i.e. the axis between the
919
+ /// light source and the point to which it is pointing at) and the spot light cone. So it
920
+ /// defines a limiting cone which restricts the region where the light is projected.
921
+ ///
922
+ /// No light is projected outside the cone.
923
+ static member inline limitingConeAngle (value: float) = Interop.mkAttr "limitingConeAngle" value
924
+ /// Represents the angle in degrees between the spot light axis (i.e. the axis between the
925
+ /// light source and the point to which it is pointing at) and the spot light cone. So it
926
+ /// defines a limiting cone which restricts the region where the light is projected.
927
+ ///
928
+ /// No light is projected outside the cone.
929
+ static member inline limitingConeAngle (value: int) = Interop.mkAttr "limitingConeAngle" value
930
+
931
+ /// Value of the id attribute of the <c>datalist</c> of autocomplete options
932
+ static member inline list (value : string) = Interop.mkAttr "list" value
933
+
934
+ /// If true, the browser will automatically seek back to the start upon reaching the end of the video.
935
+ static member inline loop (value: bool) = Interop.mkAttr "loop" value
936
+
937
+ /// The upper numeric bound of the low end of the measured range. This must be greater than
938
+ /// the minimum value (min attribute), and it also must be less than the high value and
939
+ /// maximum value (high attribute and max attribute, respectively), if any are specified.
940
+ /// If unspecified, or if less than the minimum value, the low value is equal to the minimum value.
941
+ static member inline low (value: float) = Interop.mkAttr "low" value
942
+ /// The upper numeric bound of the low end of the measured range. This must be greater than
943
+ /// the minimum value (min attribute), and it also must be less than the high value and
944
+ /// maximum value (high attribute and max attribute, respectively), if any are specified.
945
+ /// If unspecified, or if less than the minimum value, the low value is equal to the minimum value.
946
+ static member inline low (value: int) = Interop.mkAttr "low" value
947
+ /// Indicates the maximum value allowed.
948
+ static member inline max (value: float) = Interop.mkAttr "max" value
949
+ /// Indicates the maximum value allowed.
950
+ static member inline max (value: int) = Interop.mkAttr "max" value
951
+ /// Indicates the maximum value allowed.
952
+ static member inline max (value: DateTime) = Interop.mkAttr "max" (value.ToString("yyyy-MM-dd"))
953
+
954
+ /// Defines the maximum number of characters allowed in the element.
955
+ static member inline maxLength (value: int) = Interop.mkAttr "maxLength" value
956
+
957
+ /// This attribute specifies the media that the linked resource applies to.
958
+ /// Its value must be a media type / media query. This attribute is mainly useful
959
+ /// when linking to external stylesheets — it allows the user agent to pick the
960
+ /// best adapted one for the device it runs on.
961
+ ///
962
+ /// In HTML 4, this can only be a simple white-space-separated list of media
963
+ /// description literals, i.e., media types and groups, where defined and allowed
964
+ /// as values for this attribute, such as print, screen, aural, braille. HTML5
965
+ /// extended this to any kind of media queries, which are a superset of the allowed
966
+ /// values of HTML 4.
967
+ ///
968
+ /// Browsers not supporting CSS3 Media Queries won't necessarily recognize the adequate
969
+ /// link; do not forget to set fallback links, the restricted set of media queries
970
+ /// defined in HTML 4.
971
+ static member inline media (value: string) = Interop.mkAttr "media" value
972
+
973
+ /// Defines which HTTP method to use when submitting the form. Can be GET (default) or POST.
974
+ static member inline method (value: string) = Interop.mkAttr "method" value
975
+
976
+ /// Indicates the minimum value allowed.
977
+ static member inline min (value: float) = Interop.mkAttr "min" value
978
+ /// Indicates the minimum value allowed.
979
+ static member inline min (value: int) = Interop.mkAttr "min" value
980
+ /// Indicates the minimum value allowed.
981
+ static member inline min (value: DateTime) = Interop.mkAttr "min" (value.ToString("yyyy-MM-dd"))
982
+
983
+ /// Defines the minimum number of characters allowed in the element.
984
+ static member inline minLength (value: int) = Interop.mkAttr "minLength" value
985
+
986
+ /// Indicates whether multiple values can be entered in an input of the type email or file.
987
+ static member inline multiple (value: bool) = Interop.mkAttr "multiple" value
988
+
989
+ /// Indicates whether the audio will be initially silenced on page load.
990
+ static member inline muted (value: bool) = Interop.mkAttr "muted" value
991
+
992
+ /// Name of the element.
993
+ ///
994
+ /// For example used by the server to identify the fields in form submits.
995
+ static member inline name (value: string) = Interop.mkAttr "name" value
996
+
997
+ /// This Boolean attribute is set to indicate that the script should not be executed in
998
+ /// browsers that support ES2015 modules — in effect, this can be used to serve fallback
999
+ /// scripts to older browsers that do not support modular JavaScript code.
1000
+ static member inline nomodule (value: bool) = Interop.mkAttr "nomodule" value
1001
+
1002
+ /// A cryptographic nonce (number used once) to whitelist scripts in a script-src
1003
+ /// Content-Security-Policy. The server must generate a unique nonce value each time
1004
+ /// it transmits a policy. It is critical to provide a nonce that cannot be guessed
1005
+ /// as bypassing a resource's policy is otherwise trivial.
1006
+ static member inline nonce (value: string) = Interop.mkAttr "nonce" value
1007
+
1008
+ /// Defines the number of octaves for the noise function of the <feTurbulence> primitive.
1009
+ static member inline numOctaves (value: int) = Interop.mkAttr "numOctaves" value
1010
+
1011
+ /// SVG attribute to define where the gradient color will begin or end.
1012
+ static member inline offset (value: float) = Interop.mkAttr "offset" value
1013
+ /// SVG attribute to define where the gradient color will begin or end.
1014
+ static member inline offset (value: ICssUnit) = Interop.mkAttr "offset" value
1015
+ /// SVG attribute to define where the gradient color will begin or end.
1016
+ static member inline offset (value: int) = Interop.mkAttr "offset" value
1017
+
1018
+ /// Fires when a media event is aborted.
1019
+ static member inline onAbort (handler: Event -> unit) = Interop.mkAttr "onAbort" handler
1020
+
1021
+ /// Fires when animation is aborted.
1022
+ static member inline onAnimationCancel (handler: AnimationEvent -> unit) = Interop.mkAttr "onAnimationCancel" handler
1023
+
1024
+ /// Fires when animation ends.
1025
+ static member inline onAnimationEnd (handler: AnimationEvent -> unit) = Interop.mkAttr "onAnimationEnd" handler
1026
+
1027
+ /// Fires when animation iterates.
1028
+ static member inline onAnimationIteration (handler: AnimationEvent -> unit) = Interop.mkAttr "onAnimationIteration" handler
1029
+
1030
+ /// Fires when animation starts.
1031
+ static member inline onAnimationStart (handler: AnimationEvent -> unit) = Interop.mkAttr "onAnimationStart" handler
1032
+
1033
+ /// Fires the moment that the element loses focus.
1034
+ static member inline onBlur (handler: FocusEvent -> unit) = Interop.mkAttr "onBlur" handler
1035
+
1036
+ /// Fires when a user dismisses the current open dialog
1037
+ static member inline onCancel (handler: Event -> unit) = Interop.mkAttr "onCancel" handler
1038
+
1039
+ /// Fires when a file is ready to start playing (when it has buffered enough to begin).
1040
+ static member inline onCanPlay (handler: Event -> unit) = Interop.mkAttr "onCanPlay" handler
1041
+
1042
+ /// Fires when a file can be played all the way to the end without pausing for buffering
1043
+ static member inline onCanPlayThrough (handler: Event -> unit) = Interop.mkAttr "onCanPlayThrough" handler
1044
+
1045
+ /// Same as `onChange` that takes an event as input but instead let's you deal with the `checked` value changed from the `input` element
1046
+ /// directly when it is defined as a checkbox with `prop.inputType.checkbox`.
1047
+ static member inline onChange (handler: bool -> unit) = Interop.mkAttr "onChange" (fun (ev: Event) -> handler (!!ev.target?``checked``))
1048
+ /// Fires the moment when the value of the element is changed
1049
+ static member inline onChange (handler: Event -> unit) = Interop.mkAttr "onChange" handler
1050
+ /// Same as `onChange` that takes an event as input but instead lets you deal with the selected file directly from the `input` element when it is defined as a checkbox with `prop.type'.file`.
1051
+ static member inline onChange (handler: File -> unit) =
1052
+ let fileHandler (ev: Event) : unit =
1053
+ let files : FileList = ev?target?files
1054
+ if not (isNullOrUndefined files) && files.length > 0 then handler (files.item 0)
1055
+ Interop.mkAttr "onChange" fileHandler
1056
+ /// Same as `onChange` that takes an event as input but instead lets you deal with the selected files directly from the `input` element when it is defined as a checkbox with `prop.type'.file` and `prop.multiple true`.
1057
+ static member inline onChange (handler: File list -> unit) =
1058
+ let fileHandler (ev: Event) : unit =
1059
+ let fileList : FileList = ev?target?files
1060
+ if not (isNullOrUndefined fileList) then handler [ for i in 0 .. fileList.length - 1 -> fileList.item i ]
1061
+ Interop.mkAttr "onChange" fileHandler
1062
+ /// Same as `onChange` that takes an event as input but instead let's you deal with the text changed from the `input` element directly
1063
+ /// instead of extracting it from the event arguments.
1064
+ static member inline onChange (handler: string -> unit) = Interop.mkAttr "onChange" (fun (ev: Event) -> handler (!!ev.target?value))
1065
+ /// Same as `onChange` that takes an event as input but instead lets you deal with the DateTime changed from the `input` element as if it was a DateTime instance when using input.type.date since the used format either be yyyy-MM-dd or yyyy-MM-ddTHH:mm
1066
+ static member inline onChange (handler: DateTime -> unit) =
1067
+ Interop.mkAttr "onChange" (fun (ev: Event) ->
1068
+ let value : string = !!ev.target?value
1069
+ DateParsing.parse value
1070
+ |> Option.iter handler
1071
+ )
1072
+
1073
+ /// Same as `onChange` that takes an event as input but instead lets you deal with the int changed from the `input` element directly when the type of the input is number
1074
+ /// instead of extracting it from the event arguments. Fractional numbers are rounded to the nearest integral value.
1075
+ static member inline onChange (handler: int -> unit) =
1076
+ Interop.mkAttr "onChange" (fun (ev: Event) ->
1077
+ // round the value to get only integers
1078
+ let value : double = !!ev.target?valueAsNumber
1079
+ if not (isNullOrUndefined value) && not(Double.IsNaN value) then
1080
+ handler (unbox<int> (Math.Round value))
1081
+ )
1082
+ /// Same as `onChange` that takes an event as input but instead lets you deal with the float changed from the `input` element directly when the input type is a number
1083
+ /// instead of extracting it from the event arguments.
1084
+ static member inline onChange (handler: float -> unit) =
1085
+ Interop.mkAttr "onChange" (fun (ev: Event) ->
1086
+ let value : double = !!ev.target?valueAsNumber
1087
+ if not (isNullOrUndefined value) && not(Double.IsNaN value) then
1088
+ handler (value)
1089
+ )
1090
+
1091
+ /// Same as `onChange` but let's you deal with the `checked` value that has changed from the `input` element directly instead of extracting it from the event arguments.
1092
+ static member inline onCheckedChange (handler: bool -> unit) = Interop.mkAttr "onChange" (fun (ev: Event) -> handler (!!ev.target?``checked``))
1093
+
1094
+ /// Fires on a mouse click on the element.
1095
+ static member inline onClick (handler: MouseEvent -> unit) = Interop.mkAttr "onClick" handler
1096
+
1097
+ /// Fires when composition ends.
1098
+ static member inline onCompositionEnd (handler: CompositionEvent -> unit) = Interop.mkAttr "onCompositionEnd" handler
1099
+
1100
+ /// Fires when composition starts.
1101
+ static member inline onCompositionStart (handler: CompositionEvent -> unit) = Interop.mkAttr "onCompositionStart" handler
1102
+
1103
+ /// Fires when composition changes.
1104
+ static member inline onCompositionUpdate (handler: CompositionEvent -> unit) = Interop.mkAttr "onCompositionUpdate" handler
1105
+
1106
+ /// Fires when a context menu is triggered.
1107
+ static member inline onContextMenu (handler: MouseEvent -> unit) = Interop.mkAttr "onContextMenu" handler
1108
+
1109
+ /// Fires when a TextTrack has changed the currently displaying cues.
1110
+ static member inline onCueChange (handler: Event -> unit) = Interop.mkAttr "onCueChange" handler
1111
+
1112
+ /// Fires when the user copies the content of an element.
1113
+ static member inline onCopy (handler: ClipboardEvent -> unit) = Interop.mkAttr "onCopy" handler
1114
+
1115
+ /// Fires when the user cuts the content of an element.
1116
+ static member inline onCut (handler: ClipboardEvent -> unit) = Interop.mkAttr "onCut" handler
1117
+
1118
+ /// Fires when a mouse is double clicked on the element.
1119
+ [<Obsolete "Use prop.onDoubleClick instead">]
1120
+ static member inline onDblClick (handler: MouseEvent -> unit) = Interop.mkAttr "onDoubleClick" handler
1121
+
1122
+ /// Fires when a mouse is double clicked on the element.
1123
+ static member inline onDoubleClick (handler: MouseEvent -> unit) = Interop.mkAttr "onDoubleClick" handler
1124
+
1125
+ /// Fires when an element is dragged.
1126
+ static member inline onDrag (handler: DragEvent -> unit) = Interop.mkAttr "onDrag" handler
1127
+
1128
+ /// Fires when the a drag operation has ended.
1129
+ static member inline onDragEnd (handler: DragEvent -> unit) = Interop.mkAttr "onDragEnd" handler
1130
+
1131
+ /// Fires when an element has been dragged to a valid drop target.
1132
+ static member inline onDragEnter (handler: DragEvent -> unit) = Interop.mkAttr "onDragEnter" handler
1133
+
1134
+ static member inline onDragExit (handler: DragEvent -> unit) = Interop.mkAttr "onDragExit" handler
1135
+
1136
+ /// Fires when an element leaves a valid drop target.
1137
+ static member inline onDragLeave (handler: DragEvent -> unit) = Interop.mkAttr "onDragLeave" handler
1138
+
1139
+ /// Fires when an element is being dragged over a valid drop target.
1140
+ static member inline onDragOver (handler: DragEvent -> unit) = Interop.mkAttr "onDragOver" handler
1141
+
1142
+ /// Fires when the a drag operation has begun.
1143
+ static member inline onDragStart (handler: DragEvent -> unit) = Interop.mkAttr "onDragStart" handler
1144
+
1145
+ /// Fires when dragged element is being dropped.
1146
+ static member inline onDrop (handler: DragEvent -> unit) = Interop.mkAttr "onDrop" handler
1147
+
1148
+ /// Fires when the length of the media changes.
1149
+ static member inline onDurationChange (handler: Event -> unit) = Interop.mkAttr "onDurationChange" handler
1150
+
1151
+ /// Fires when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
1152
+ static member inline onEmptied (handler: Event -> unit) = Interop.mkAttr "onEmptied" handler
1153
+
1154
+ static member inline onEncrypted (handler: Event -> unit) = Interop.mkAttr "onEncrypted" handler
1155
+
1156
+ /// Fires when the media has reached the end (a useful event for messages like "thanks for listening").
1157
+ static member inline onEnded (handler: Event -> unit) = Interop.mkAttr "onEnded" handler
1158
+
1159
+ /// Fires when an error occurs.
1160
+ static member inline onError (handler: Event -> unit) = Interop.mkAttr "onError" handler
1161
+
1162
+ /// Fires when an error occurs.
1163
+ static member inline onError (handler: UIEvent -> unit) = Interop.mkAttr "onError" handler
1164
+
1165
+ /// Fires the moment when the element gets focus.
1166
+ static member inline onFocus (handler: FocusEvent -> unit) = Interop.mkAttr "onFocus" handler
1167
+
1168
+ /// Fires when an element captures a pointer.
1169
+ static member inline onGotPointerCapture (handler: PointerEvent -> unit) = Interop.mkAttr "onGotPointerCapture" handler
1170
+
1171
+ /// Fires when an element gets user input.
1172
+ static member inline onInput (handler: Event -> unit) = Interop.mkAttr "onInput" handler
1173
+
1174
+ /// Fires when a submittable element has been checked for validaty and doesn't satisfy its constraints.
1175
+ static member inline onInvalid (handler: Event -> unit) = Interop.mkAttr "onInvalid" handler
1176
+
1177
+ /// Fires when a user presses a key.
1178
+ static member inline onKeyDown (handler: KeyboardEvent -> unit) = Interop.mkAttr "onKeyDown" handler
1179
+
1180
+ /// Fires when a user presses a key.
1181
+ static member inline onKeyDown (key: IKeyboardKey, handler: KeyboardEvent -> unit) =
1182
+ PropHelpers.createOnKey(key, handler)
1183
+ |> Interop.mkAttr "onKeyDown"
1184
+
1185
+ /// Fires when a user presses a key.
1186
+ static member inline onKeyPress (handler: KeyboardEvent -> unit) = Interop.mkAttr "onKeyPress" handler
1187
+
1188
+ /// Fires when a user presses a key.
1189
+ static member inline onKeyPress (key: IKeyboardKey, handler: KeyboardEvent -> unit) =
1190
+ PropHelpers.createOnKey(key, handler)
1191
+ |> Interop.mkAttr "onKeyPress"
1192
+
1193
+ /// Fires when a user releases a key.
1194
+ static member inline onKeyUp (handler: KeyboardEvent -> unit) = Interop.mkAttr "onKeyUp" handler
1195
+
1196
+ /// Fires when a user releases a key.
1197
+ static member inline onKeyUp (key: IKeyboardKey, handler: KeyboardEvent -> unit) =
1198
+ PropHelpers.createOnKey(key, handler)
1199
+ |> Interop.mkAttr "onKeyUp"
1200
+
1201
+ /// Fires after the page is finished loading.
1202
+ static member inline onLoad (handler: Event -> unit) = Interop.mkAttr "onLoad" handler
1203
+
1204
+ /// Fires when media data is loaded.
1205
+ static member inline onLoadedData (handler: Event -> unit) = Interop.mkAttr "onLoadedData" handler
1206
+
1207
+ /// Fires when meta data (like dimensions and duration) are loaded.
1208
+ static member inline onLoadedMetadata (handler: Event -> unit) = Interop.mkAttr "onLoadedMetadata" handler
1209
+
1210
+ /// Fires when a request has completed, irrespective of its success.
1211
+ static member inline onLoadEnd (handler: Event -> unit) = Interop.mkAttr "onLoadEnd" handler
1212
+
1213
+ /// Fires when the file begins to load before anything is actually loaded.
1214
+ static member inline onLoadStart (handler: Event -> unit) = Interop.mkAttr "onLoadStart" handler
1215
+
1216
+ /// Fires when a captured pointer is released.
1217
+ static member inline onLostPointerCapture (handler: PointerEvent -> unit) = Interop.mkAttr "onLostPointerCapture" handler
1218
+
1219
+ /// Fires when a mouse button is pressed down on an element.
1220
+ static member inline onMouseDown (handler: MouseEvent -> unit) = Interop.mkAttr "onMouseDown" handler
1221
+
1222
+ /// Fires when a pointer enters an element.
1223
+ static member inline onMouseEnter (handler: MouseEvent -> unit) = Interop.mkAttr "onMouseEnter" handler
1224
+
1225
+ /// Fires when a pointer leaves an element.
1226
+ static member inline onMouseLeave (handler: MouseEvent -> unit) = Interop.mkAttr "onMouseLeave" handler
1227
+
1228
+ /// Fires when the mouse pointer is moving while it is over an element.
1229
+ static member inline onMouseMove (handler: MouseEvent -> unit) = Interop.mkAttr "onMouseMove" handler
1230
+
1231
+ /// Fires when the mouse pointer moves out of an element.
1232
+ static member inline onMouseOut (handler: MouseEvent -> unit) = Interop.mkAttr "onMouseOut" handler
1233
+
1234
+ /// Fires when the mouse pointer moves over an element.
1235
+ static member inline onMouseOver (handler: MouseEvent -> unit) = Interop.mkAttr "onMouseOver" handler
1236
+
1237
+ /// Fires when a mouse button is released while it is over an element.
1238
+ static member inline onMouseUp (handler: MouseEvent -> unit) = Interop.mkAttr "onMouseUp" handler
1239
+
1240
+ /// Fires when the user pastes some content in an element.
1241
+ static member inline onPaste (handler: ClipboardEvent -> unit) = Interop.mkAttr "onPaste" handler
1242
+
1243
+ /// Fires when the media is paused either by the user or programmatically.
1244
+ static member inline onPause (handler: Event -> unit) = Interop.mkAttr "onPause" handler
1245
+
1246
+ /// Fires when the media is ready to start playing.
1247
+ static member inline onPlay (handler: Event -> unit) = Interop.mkAttr "onPlay" handler
1248
+
1249
+ /// Fires when the media actually has started playing
1250
+ static member inline onPlaying (handler: Event -> unit) = Interop.mkAttr "onPlaying" handler
1251
+
1252
+ /// Fires when there are no more pointer events.
1253
+ static member inline onPointerCancel (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerCancel" handler
1254
+
1255
+ /// Fires when a pointer becomes active.
1256
+ static member inline onPointerDown (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerDown" handler
1257
+
1258
+ /// Fires when a pointer is moved into an elements boundaries or one of its descendants.
1259
+ static member inline onPointerEnter (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerEnter" handler
1260
+
1261
+ /// Fires when a pointer is moved out of an elements boundaries.
1262
+ static member inline onPointerLeave (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerLeave" handler
1263
+
1264
+ /// Fires when a pointer moves.
1265
+ static member inline onPointerMove (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerMove" handler
1266
+
1267
+ /// Fires when a pointer is no longer in an elements boundaries, such as moving it, or after a `pointerUp` or `pointerCancel` event.
1268
+ static member inline onPointerOut (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerOut" handler
1269
+
1270
+ /// Fires when a pointer is moved into an elements boundaries.
1271
+ static member inline onPointerOver (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerOver" handler
1272
+
1273
+ /// Fires when a pointer is no longer active.
1274
+ static member inline onPointerUp (handler: PointerEvent -> unit) = Interop.mkAttr "onPointerUp" handler
1275
+
1276
+ /// Fires when the browser is in the process of getting the media data.
1277
+ static member inline onProgress (handler: Event -> unit) = Interop.mkAttr "onProgress" handler
1278
+
1279
+ /// Fires when the playback rate changes (like when a user switches to a slow motion or fast forward mode).
1280
+ static member inline onRateChange (handler: Event -> unit) = Interop.mkAttr "onRateChange" handler
1281
+
1282
+ /// Fires when the Reset button in a form is clicked.
1283
+ static member inline onReset (handler: Event -> unit) = Interop.mkAttr "onReset" handler
1284
+
1285
+ /// Fires when the window has been resized.
1286
+ static member inline onResize (handler: UIEvent -> unit) = Interop.mkAttr "onResize" handler
1287
+
1288
+ /// Fires when an element's scrollbar is being scrolled.
1289
+ static member inline onScroll (handler: Event -> unit) = Interop.mkAttr "onScroll" handler
1290
+
1291
+ /// Fires when the seeking attribute is set to false indicating that seeking has ended.
1292
+ static member inline onSeeked (handler: Event -> unit) = Interop.mkAttr "onSeeked" handler
1293
+
1294
+ /// Fires when the seeking attribute is set to true indicating that seeking is active.
1295
+ static member inline onSeeking (handler: Event -> unit) = Interop.mkAttr "onSeeking" handler
1296
+
1297
+ /// Fires after some text has been selected in an element.
1298
+ static member inline onSelect (handler: Event -> unit) = Interop.mkAttr "onSelect" handler
1299
+
1300
+ /// Fires after some text has been selected in the user interface.
1301
+ static member inline onSelect (handler: UIEvent -> unit) = Interop.mkAttr "onSelect" handler
1302
+
1303
+ /// Fires when the browser is unable to fetch the media data for whatever reason.
1304
+ static member inline onStalled (handler: Event -> unit) = Interop.mkAttr "onStalled" handler
1305
+
1306
+ /// Fires when fetching the media data is stopped before it is completely loaded for whatever reason.
1307
+ static member inline onSuspend (handler: Event -> unit) = Interop.mkAttr "onSuspend" handler
1308
+
1309
+ /// Fires when a form is submitted.
1310
+ static member inline onSubmit (handler: Event -> unit) = Interop.mkAttr "onSubmit" handler
1311
+
1312
+ /// Same as `onChange` but let's you deal with the text changed from the `input` element directly
1313
+ /// instead of extracting it from the event arguments.
1314
+ static member inline onTextChange (handler: string -> unit) = Interop.mkAttr "onChange" (fun (ev: Event) -> handler (!!ev.target?value))
1315
+
1316
+ /// Fires when the playing position has changed (like when the user fast forwards to a different point in the media).
1317
+ static member inline onTimeUpdate (handler: Event -> unit) = Interop.mkAttr "onTimeUpdate" handler
1318
+
1319
+ static member inline onTouchCancel (handler: TouchEvent -> unit) = Interop.mkAttr "onTouchCancel" handler
1320
+
1321
+ static member inline onTouchEnd (handler: TouchEvent -> unit) = Interop.mkAttr "onTouchEnd" handler
1322
+
1323
+ static member inline onTouchMove (handler: TouchEvent -> unit) = Interop.mkAttr "onTouchMove" handler
1324
+
1325
+ static member inline onTouchStart (handler: TouchEvent -> unit) = Interop.mkAttr "onTouchStart" handler
1326
+
1327
+ static member inline onTransitionEnd (handler: TransitionEvent -> unit) = Interop.mkAttr "onTransitionEnd" handler
1328
+
1329
+ /// Fires when the volume is changed which (includes setting the volume to "mute").
1330
+ static member inline onVolumeChange (handler: Event -> unit) = Interop.mkAttr "onVolumeChange" handler
1331
+
1332
+ /// Fires when the media has paused but is expected to resume (like when the media pauses to buffer more data).
1333
+ static member inline onWaiting (handler: Event -> unit) = Interop.mkAttr "onWaiting" handler
1334
+
1335
+ /// Fires when the mouse wheel rolls up or down over an element.
1336
+ static member inline onWheel (handler: WheelEvent -> unit) = Interop.mkAttr "onWheel" handler
1337
+
1338
+ /// This attribute indicates the optimal numeric value. It must be within the range (as defined by the min
1339
+ /// attribute and max attribute). When used with the low attribute and high attribute, it gives an indication
1340
+ /// where along the range is considered preferable. For example, if it is between the min attribute and the
1341
+ /// low attribute, then the lower range is considered preferred.
1342
+ static member inline optimum (value: float) = Interop.mkAttr "optimum" value
1343
+ /// This attribute indicates the optimal numeric value. It must be within the range (as defined by the min
1344
+ /// attribute and max attribute). When used with the low attribute and high attribute, it gives an indication
1345
+ /// where along the range is considered preferable. For example, if it is between the min attribute and the
1346
+ /// low attribute, then the lower range is considered preferred.
1347
+ static member inline optimum (value: int) = Interop.mkAttr "optimum" value
1348
+
1349
+ /// Indicates the minimum value allowed.
1350
+ static member inline order (value: int) = Interop.mkAttr "order" value
1351
+ /// Indicates the minimum value allowed.
1352
+ static member inline order (values: seq<int>) = Interop.mkAttr "order" (values |> unbox<seq<string>> |> String.concat " ")
1353
+
1354
+ /// Represents the ideal vertical position of the overline.
1355
+ ///
1356
+ /// The overline position is expressed in the font's coordinate system.
1357
+ static member inline overlinePosition (value: float) = Interop.mkAttr "overline-position" value
1358
+ /// Represents the ideal vertical position of the overline.
1359
+ ///
1360
+ /// The overline position is expressed in the font's coordinate system.
1361
+ static member inline overlinePosition (value: int) = Interop.mkAttr "overline-position" value
1362
+
1363
+ /// Represents the ideal thickness of the overline.
1364
+ ///
1365
+ /// The overline thickness is expressed in the font's coordinate system.
1366
+ static member inline overlineThickness (value: float) = Interop.mkAttr "overline-thickness" value
1367
+ /// Represents the ideal thickness of the overline.
1368
+ ///
1369
+ /// The overline thickness is expressed in the font's coordinate system.
1370
+ static member inline overlineThickness (value: int) = Interop.mkAttr "overline-thickness" value
1371
+
1372
+ /// It either defines a text path along which the characters of a text are rendered, or a motion
1373
+ /// path along which a referenced element is animated.
1374
+ static member inline path (path: seq<char * (float list list)>) =
1375
+ PropHelpers.createSvgPathFloat path
1376
+ |> Interop.mkAttr "path"
1377
+ /// It either defines a text path along which the characters of a text are rendered, or a motion
1378
+ /// path along which a referenced element is animated.
1379
+ static member inline path (path: seq<char * (int list list)>) =
1380
+ PropHelpers.createSvgPathInt path
1381
+ |> Interop.mkAttr "path"
1382
+ /// It either defines a text path along which the characters of a text are rendered, or a motion
1383
+ /// path along which a referenced element is animated.
1384
+ static member inline path (path: string) = Interop.mkAttr "path" path
1385
+ /// The part global attribute contains a space-separated list of the part names of the element.
1386
+ /// Part names allows CSS to select and style specific elements in a shadow tree
1387
+ static member inline part(value: string) = Interop.mkAttr "part" value
1388
+ /// The part global attribute contains a space-separated list of the part names of the element.
1389
+ /// Part names allows CSS to select and style specific elements in a shadow tree
1390
+ static member inline part(values: #seq<string>) = Interop.mkAttr "part" (String.concat " " values)
1391
+ /// Specifies a total length for the path, in user units.
1392
+ ///
1393
+ /// This value is then used to calibrate the browser's distance calculations with those of the
1394
+ /// author, by scaling all distance computations using the ratio pathLength/(computed value of
1395
+ /// path length).
1396
+ ///
1397
+ /// This can affect the actual rendered lengths of paths; including text paths, animation paths,
1398
+ /// and various stroke operations. Basically, all computations that require the length of the path.
1399
+ static member inline pathLength (value: int) = Interop.mkAttr "pathLength" value
1400
+
1401
+ /// Sets the input field allowed input.
1402
+ ///
1403
+ /// This attribute only applies when the value of the type attribute is text, search, tel, url or email.
1404
+ static member inline pattern (value: System.Text.RegularExpressions.Regex) = Interop.mkAttr "pattern" value
1405
+
1406
+ /// Defines a list of transform definitions that are applied to a pattern tile.
1407
+ static member inline patternTransform (transform: ITransformProperty) =
1408
+ Interop.mkAttr "patternTransform" (unbox<string> transform)
1409
+ /// Defines a list of transform definitions that are applied to a pattern tile.
1410
+ static member inline patternTransform (transforms: seq<ITransformProperty>) =
1411
+ Interop.mkAttr "patternTransform" (unbox<seq<string>> transforms |> String.concat " ")
1412
+
1413
+ /// Provides a hint to the user of what can be entered in the field.
1414
+ static member inline placeholder (value: string) = Interop.mkAttr "placeholder" value
1415
+
1416
+ /// Indicating that the video is to be played "inline", that is within the element's playback area.
1417
+ ///
1418
+ /// Note that the absence of this attribute does not imply that the video will always be played in fullscreen.
1419
+ static member inline playsInline (value: bool) = Interop.mkAttr "playsInline" value
1420
+
1421
+ /// Contains a space-separated list of URLs to which, when the hyperlink is followed,
1422
+ /// POST requests with the body PING will be sent by the browser (in the background).
1423
+ ///
1424
+ /// Typically used for tracking.
1425
+ static member inline ping (value: string) = Interop.mkAttr "ping" value
1426
+ /// Contains a space-separated list of URLs to which, when the hyperlink is followed,
1427
+ /// POST requests with the body PING will be sent by the browser (in the background).
1428
+ ///
1429
+ /// Typically used for tracking.
1430
+ static member inline ping (urls: #seq<string>) = Interop.mkAttr "ping" (urls |> String.concat " ")
1431
+
1432
+ /// Defines a list of points.
1433
+ ///
1434
+ /// Each point is defined by a pair of numbers representing a X and a Y coordinate in
1435
+ /// the user coordinate system.
1436
+ static member inline points (coordinates: seq<float * float>) =
1437
+ PropHelpers.createPointsFloat(coordinates)
1438
+ |> Interop.mkAttr "points"
1439
+ /// Defines a list of points.
1440
+ ///
1441
+ /// Each point is defined by a pair of numbers representing a X and a Y coordinate in
1442
+ /// the user coordinate system.
1443
+ static member inline points (coordinates: seq<int * int>) =
1444
+ PropHelpers.createPointsInt(coordinates)
1445
+ |> Interop.mkAttr "points"
1446
+ /// Defines a list of points.
1447
+ ///
1448
+ /// Each point is defined by a pair of numbers representing a X and a Y coordinate in
1449
+ /// the user coordinate system.
1450
+ static member inline points (coordinates: string) = Interop.mkAttr "points"
1451
+
1452
+ /// Represents the x location in the coordinate system established by attribute primitiveUnits
1453
+ /// on the <filter> element of the point at which the light source is pointing.
1454
+ static member inline pointsAtX (value: float) = Interop.mkAttr "pointsAtX" value
1455
+ /// Represents the x location in the coordinate system established by attribute primitiveUnits
1456
+ /// on the <filter> element of the point at which the light source is pointing.
1457
+ static member inline pointsAtX (value: int) = Interop.mkAttr "pointsAtX" value
1458
+
1459
+ /// Represents the y location in the coordinate system established by attribute primitiveUnits
1460
+ /// on the <filter> element of the point at which the light source is pointing.
1461
+ static member inline pointsAtY (value: float) = Interop.mkAttr "pointsAtY" value
1462
+ /// Represents the y location in the coordinate system established by attribute primitiveUnits
1463
+ /// on the <filter> element of the point at which the light source is pointing.
1464
+ static member inline pointsAtY (value: int) = Interop.mkAttr "pointsAtY" value
1465
+
1466
+ /// Represents the y location in the coordinate system established by attribute primitiveUnits
1467
+ /// on the <filter> element of the point at which the light source is pointing, assuming that,
1468
+ /// in the initial local coordinate system, the positive z-axis comes out towards the person
1469
+ /// viewing the content and assuming that one unit along the z-axis equals one unit in x and y.
1470
+ static member inline pointsAtZ (value: float) = Interop.mkAttr "pointsAtZ" value
1471
+ /// Represents the y location in the coordinate system established by attribute primitiveUnits
1472
+ /// on the <filter> element of the point at which the light source is pointing, assuming that,
1473
+ /// in the initial local coordinate system, the positive z-axis comes out towards the person
1474
+ /// viewing the content and assuming that one unit along the z-axis equals one unit in x and y.
1475
+ static member inline pointsAtZ (value: int) = Interop.mkAttr "pointsAtZ" value
1476
+
1477
+ /// Indicates how a <feConvolveMatrix> element handles alpha transparency.
1478
+ static member inline preserveAlpha (value: bool) = Interop.mkAttr "preserveAlpha" value
1479
+
1480
+ /// A URL for an image to be shown while the video is downloading. If this attribute isn't specified, nothing
1481
+ /// is displayed until the first frame is available, then the first frame is shown as the poster frame.
1482
+ static member inline poster (value: string) = Interop.mkAttr "poster" value
1483
+
1484
+ /// SVG attribute to define the radius of a circle.
1485
+ static member inline r (value: float) = Interop.mkAttr "r" value
1486
+ /// SVG attribute to define the radius of a circle.
1487
+ static member inline r (value: ICssUnit) = Interop.mkAttr "r" value
1488
+ /// SVG attribute to define the radius of a circle.
1489
+ static member inline r (value: int) = Interop.mkAttr "r" value
1490
+
1491
+ /// Represents the radius (or radii) for the operation on a given <feMorphology> filter primitive.
1492
+ static member inline radius (value: float) = Interop.mkAttr "radius" value
1493
+ /// Represents the radius (or radii) for the operation on a given <feMorphology> filter primitive.
1494
+ static member inline radius (value: int) = Interop.mkAttr "radius" value
1495
+ /// Represents the radius (or radii) for the operation on a given <feMorphology> filter primitive.
1496
+ static member inline radius (xRadius: float, yRadius: float) = Interop.mkAttr "radius" (unbox<string> xRadius + "," + unbox<string> yRadius)
1497
+ /// Represents the radius (or radii) for the operation on a given <feMorphology> filter primitive.
1498
+ static member inline radius (xRadius: float, yRadius: int) = Interop.mkAttr "radius" (unbox<string> xRadius + "," + unbox<string> yRadius)
1499
+ /// Represents the radius (or radii) for the operation on a given <feMorphology> filter primitive.
1500
+ static member inline radius (xRadius: int, yRadius: float) = Interop.mkAttr "radius" (unbox<string> xRadius + "," + unbox<string> yRadius)
1501
+ /// Represents the radius (or radii) for the operation on a given <feMorphology> filter primitive.
1502
+ static member inline radius (xRadius: int, yRadius: int) = Interop.mkAttr "radius" (unbox<string> xRadius + "," + unbox<string> yRadius)
1503
+
1504
+ /// Indicates whether the element can be edited.
1505
+ static member inline readOnly (value: bool) = Interop.mkAttr "readOnly" value
1506
+
1507
+ /// Used to reference a DOM element or class component from within a parent component.
1508
+ static member inline ref (handler: Element -> unit) = Interop.mkAttr "ref" handler
1509
+ /// Used to reference a DOM element or class component from within a parent component.
1510
+ static member inline ref (ref: IRefValue<#HTMLElement option>) = Interop.mkAttr "ref" ref
1511
+
1512
+ /// For anchors containing the href attribute, this attribute specifies the relationship
1513
+ /// of the target object to the link object. The value is a space-separated list of link
1514
+ /// types values. The values and their semantics will be registered by some authority that
1515
+ /// might have meaning to the document author. The default relationship, if no other is
1516
+ /// given, is void.
1517
+ ///
1518
+ /// Use this attribute only if the href attribute is present.
1519
+ static member inline rel (value: string) = Interop.mkAttr "rel" value
1520
+
1521
+ /// Indicates whether this element is required to fill out or not.
1522
+ static member inline required (value: bool) = Interop.mkAttr "required" value
1523
+
1524
+ /// Defines the assigned name for this filter primitive.
1525
+ ///
1526
+ /// If supplied, then graphics that result from processing this filter primitive can be
1527
+ /// referenced by an in attribute on a subsequent filter primitive within the same
1528
+ /// <filter> element.
1529
+ ///
1530
+ /// If no value is provided, the output will only be available for re-use as the implicit
1531
+ /// input into the next filter primitive if that filter primitive provides no value for
1532
+ /// its in attribute.
1533
+ static member inline result (value: string) = Interop.mkAttr "result" value
1534
+
1535
+ /// Sets the aria role
1536
+ ///
1537
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles
1538
+ static member inline role ([<System.ParamArray>] roles: string []) = Interop.mkAttr "role" (String.concat " " roles)
1539
+
1540
+ /// Defines the number of rows in a text area.
1541
+ static member inline rows (value: int) = Interop.mkAttr "rows" value
1542
+
1543
+ /// Defines the number of rows a table cell should span over.
1544
+ static member inline rowSpan (value: int) = Interop.mkAttr "rowSpan" value
1545
+
1546
+ /// The SVG rx attribute defines a radius on the x-axis.
1547
+ ///
1548
+ /// Two elements are using this attribute: <ellipse>, and <rect>
1549
+ static member inline rx (value: float) = Interop.mkAttr "rx" value
1550
+ /// The SVG rx attribute defines a radius on the x-axis.
1551
+ ///
1552
+ /// Two elements are using this attribute: <ellipse>, and <rect>
1553
+ static member inline rx (value: ICssUnit) = Interop.mkAttr "rx" value
1554
+ /// The SVG rx attribute defines a radius on the x-axis.
1555
+ ///
1556
+ /// Two elements are using this attribute: <ellipse>, and <rect>
1557
+ static member inline rx (value: int) = Interop.mkAttr "rx" value
1558
+
1559
+ /// The SVG ry attribute defines a radius on the y-axis.
1560
+ ///
1561
+ /// Two elements are using this attribute: <ellipse>, and <rect>
1562
+ static member inline ry (value: float) = Interop.mkAttr "ry" value
1563
+ /// The SVG ry attribute defines a radius on the y-axis.
1564
+ ///
1565
+ /// Two elements are using this attribute: <ellipse>, and <rect>
1566
+ static member inline ry (value: ICssUnit) = Interop.mkAttr "ry" value
1567
+ /// The SVG ry attribute defines a radius on the y-axis.
1568
+ ///
1569
+ /// Two elements are using this attribute: <ellipse>, and <rect>
1570
+ static member inline ry (value: int) = Interop.mkAttr "ry" value
1571
+
1572
+ /// Applies extra restrictions to the content in the frame.
1573
+ ///
1574
+ /// The value of the attribute can either be empty to apply all restrictions,
1575
+ /// or space-separated tokens to lift particular restrictions
1576
+ static member inline sandbox (values: #seq<string>) = Interop.mkAttr "sandbox" (values |> String.concat " ")
1577
+
1578
+ /// Defines the displacement scale factor to be used on a <feDisplacementMap> filter primitive.
1579
+ ///
1580
+ /// The amount is expressed in the coordinate system established by the primitiveUnits attribute
1581
+ /// on the <filter> element.
1582
+ static member inline scale (value: float) = Interop.mkAttr "scale" value
1583
+ /// Defines the displacement scale factor to be used on a <feDisplacementMap> filter primitive.
1584
+ ///
1585
+ /// The amount is expressed in the coordinate system established by the primitiveUnits attribute
1586
+ /// on the <filter> element.
1587
+ static member inline scale (value: int) = Interop.mkAttr "scale" value
1588
+
1589
+ /// Defines the cells that the header (defined in the <th>) element relates to. It may have the following values:
1590
+ ///
1591
+ /// - row: The header relates to all cells of the row it belongs to.
1592
+ /// - col: The header relates to all cells of the column it belongs to.
1593
+ /// - rowgroup: The header belongs to a rowgroup and relates to all of its cells. These cells can be placed to the right or the left of the header, depending on the value of the dir attribute in the <table> element.
1594
+ /// - colgroup: The header belongs to a colgroup and relates to all of its cells.
1595
+ /// If the scope attribute is not specified, or its value is not row, col, or rowgroup, or colgroup, then browsers automatically select the set of cells to which the header cell applies.
1596
+ static member inline scope (value: string) = Interop.mkAttr "scope" value
1597
+
1598
+ /// Represents the starting number for the pseudo random number generator of the <feTurbulence>
1599
+ /// filter primitive.
1600
+ static member inline seed (value: float) = Interop.mkAttr "seed" value
1601
+ /// Represents the starting number for the pseudo random number generator of the <feTurbulence>
1602
+ /// filter primitive.
1603
+ static member inline seed (value: int) = Interop.mkAttr "seed" value
1604
+
1605
+ /// Defines a value which will be selected on page load.
1606
+ static member inline selected (value: bool) = Interop.mkAttr "selected" value
1607
+
1608
+ /// Sets the beginning index of the selected text.
1609
+ ///
1610
+ /// When nothing is selected, this returns the position of the text input cursor (caret) inside of the <input> element.
1611
+ static member inline selectionStart (value: int) = Interop.mkAttr "selectionStart" value
1612
+
1613
+ /// Sets the end index of the selected text.
1614
+ ///
1615
+ /// When there's no selection, this returns the offset of the character immediately following the current text input cursor position.
1616
+ static member inline selectionEnd (value: int) = Interop.mkAttr "selectionEnd" value
1617
+
1618
+ /// Sets the *visual* size of the control.
1619
+ ///
1620
+ /// The value is in pixels unless the value of type is text or password, in which case, it is the number of characters.
1621
+ ///
1622
+ /// This attribute only applies when type is set to text, search, tel, url, email, or password.
1623
+ static member inline size (value: int) = Interop.mkAttr "size" value
1624
+
1625
+ /// Defines the sizes of the icons for visual media contained in the resource.
1626
+ /// It must be present only if the rel contains a value of icon or a non-standard
1627
+ /// type such as Apple's apple-touch-icon.
1628
+ ///
1629
+ /// It may have the following values:
1630
+ ///
1631
+ /// `any`, meaning that the icon can be scaled to any size as it is in a vector
1632
+ /// format, like image/svg+xml.
1633
+ ///
1634
+ /// A white-space separated list of sizes, each in the format `<width in pixels>x<height in pixels>`
1635
+ /// or `<width in pixels>X<height in pixels>`. Each of these sizes must be contained in the resource.
1636
+ static member inline sizes (value: string) = Interop.mkAttr "sizes" value
1637
+
1638
+ /// This attribute contains a positive integer indicating the number of consecutive
1639
+ /// columns the <col> element spans. If not present, its default value is 1.
1640
+ static member inline span (value: int) = Interop.mkAttr "span" value
1641
+
1642
+ /// Defines whether the element may be checked for spelling errors.
1643
+ static member inline spellcheck (value: bool) = Interop.mkAttr "spellcheck" (string value)
1644
+
1645
+ /// Controls the ratio of reflection of the specular lighting.
1646
+ ///
1647
+ /// It represents the ks value in the Phong lighting model. The bigger the value the stronger the reflection.
1648
+ static member inline specularConstant (value: float) = Interop.mkAttr "specularConstant" value
1649
+ /// Controls the ratio of reflection of the specular lighting.
1650
+ ///
1651
+ /// It represents the ks value in the Phong lighting model. The bigger the value the stronger the reflection.
1652
+ static member inline specularConstant (value: int) = Interop.mkAttr "specularConstant" value
1653
+
1654
+ /// For <feSpecularLighting>, specularExponent defines the exponent value for the specular term.
1655
+ ///
1656
+ /// For <feSpotLight>, specularExponent defines the exponent value controlling the focus for the light source.
1657
+ static member inline specularExponent (value: float) = Interop.mkAttr "specularExponent" value
1658
+ /// For <feSpecularLighting>, specularExponent defines the exponent value for the specular term.
1659
+ ///
1660
+ /// For <feSpotLight>, specularExponent defines the exponent value controlling the focus for the light source.
1661
+ static member inline specularExponent (value: int) = Interop.mkAttr "specularExponent" value
1662
+
1663
+ /// The URL of the embeddable content.
1664
+ static member inline src (value: string) = Interop.mkAttr "src" value
1665
+
1666
+ /// Language of the track text data. It must be a valid BCP 47 language tag.
1667
+ ///
1668
+ /// If the kind attribute is set to subtitles, then srclang must be defined.
1669
+ static member inline srcLang (value: string) = Interop.mkAttr "srclang" value
1670
+
1671
+ /// One or more responsive image candidates.
1672
+ static member inline srcset (value: string) = Interop.mkAttr "srcset" value
1673
+
1674
+ /// Defines the first number if other than 1.
1675
+ static member inline start (value: string) = Interop.mkAttr "start" value
1676
+
1677
+ /// Defines the standard deviation for the blur operation.
1678
+ static member inline stdDeviation (value: float) = Interop.mkAttr "stdDeviation" value
1679
+ /// Defines the standard deviation for the blur operation.
1680
+ static member inline stdDeviation (value: int) = Interop.mkAttr "stdDeviation" value
1681
+ /// Defines the standard deviation for the blur operation.
1682
+ static member inline stdDeviation (xAxis: float, yAxis: float) = Interop.mkAttr "stdDeviation" (unbox<string> xAxis + "," + unbox<string> yAxis)
1683
+ /// Defines the standard deviation for the blur operation.
1684
+ static member inline stdDeviation (xAxis: float, yAxis: int) = Interop.mkAttr "stdDeviation" (unbox<string> xAxis + "," + unbox<string> yAxis)
1685
+ /// Defines the standard deviation for the blur operation.
1686
+ static member inline stdDeviation (xAxis: int, yAxis: float) = Interop.mkAttr "stdDeviation" (unbox<string> xAxis + "," + unbox<string> yAxis)
1687
+ /// Defines the standard deviation for the blur operation.
1688
+ static member inline stdDeviation (xAxis: int, yAxis: int) = Interop.mkAttr "stdDeviation" (unbox<string> xAxis + "," + unbox<string> yAxis)
1689
+
1690
+ /// Indicates the stepping interval.
1691
+ static member inline step (value: float) = Interop.mkAttr "step" value
1692
+ /// Indicates the stepping interval.
1693
+ static member inline step (value: int) = Interop.mkAttr "step" value
1694
+ /// The slot global attribute assigns a slot in a shadow DOM shadow tree to an element: An element with a slot attribute is assigned to the slot created by the slot element whose name attribute's value matches that slot attribute's value.
1695
+ static member inline slot(value: string) = Interop.mkAttr "slot" value
1696
+ /// SVG attribute to indicate what color to use at a gradient stop.
1697
+ static member inline stopColor (value: string) = Interop.mkAttr "stopColor" value
1698
+
1699
+ /// SVG attribute to define the opacity of a given color gradient stop.
1700
+ static member inline stopOpacity (value: float) = Interop.mkAttr "stopOpacity" value
1701
+ /// SVG attribute to define the opacity of a given color gradient stop.
1702
+ static member inline stopOpacity (value: int) = Interop.mkAttr "stopOpacity" value
1703
+
1704
+ /// Represents the ideal vertical position of the strikethrough.
1705
+ ///
1706
+ /// The strikethrough position is expressed in the font's coordinate system.
1707
+ static member inline strikethroughPosition (value: float) = Interop.mkAttr "strikethrough-position" value
1708
+ /// Represents the ideal vertical position of the strikethrough.
1709
+ ///
1710
+ /// The strikethrough position is expressed in the font's coordinate system.
1711
+ static member inline strikethroughPosition (value: int) = Interop.mkAttr "strikethrough-position" value
1712
+
1713
+ /// Represents the ideal vertical position of the strikethrough.
1714
+ ///
1715
+ /// The strikethrough position is expressed in the font's coordinate system.
1716
+ static member inline strikethroughThickness (value: float) = Interop.mkAttr "strikethrough-thickness" value
1717
+ /// Represents the ideal thickness of the strikethrough.
1718
+ ///
1719
+ /// The strikethrough thickness is expressed in the font's coordinate system.
1720
+ static member inline strikethroughThickness (value: int) = Interop.mkAttr "strikethrough-thickness" value
1721
+
1722
+ /// SVG attribute to define the color (or any SVG paint servers like gradients or patterns) used to paint the outline of the shape.
1723
+ static member inline stroke (color: string) = Interop.mkAttr "stroke" color
1724
+
1725
+ /// SVG attribute to define the width of the stroke to be applied to the shape.
1726
+ static member inline strokeWidth (value: float) = Interop.mkAttr "strokeWidth" value
1727
+ /// SVG attribute to define the width of the stroke to be applied to the shape.
1728
+ static member inline strokeWidth (value: ICssUnit) = Interop.mkAttr "strokeWidth" value
1729
+ /// SVG attribute to define the width of the stroke to be applied to the shape.
1730
+ static member inline strokeWidth (value: int) = Interop.mkAttr "strokeWidth" value
1731
+
1732
+ static member inline style (properties: #IStyleAttribute list) = Interop.mkAttr "style" (createObj !!properties)
1733
+
1734
+ /// Represents the height of the surface for a light filter primitive.
1735
+ static member inline surfaceScale (value: float) = Interop.mkAttr "surfaceScale" value
1736
+ /// Represents the height of the surface for a light filter primitive.
1737
+ static member inline surfaceScale (value: int) = Interop.mkAttr "surfaceScale" value
1738
+
1739
+ /// Represents a list of supported language tags.
1740
+ ///
1741
+ /// This list is matched against the language defined in the user preferences.
1742
+ static member inline systemLanguage (value: string) = Interop.mkAttr "systemLanguage" value
1743
+
1744
+ /// The `tabindex` global attribute indicates that its element can be focused,
1745
+ /// and where it participates in sequential keyboard navigation (usually with the Tab key, hence the name).
1746
+ static member inline tabIndex (index: int) = Interop.mkAttr "tabIndex" index
1747
+
1748
+ /// Controls browser behavior when opening a link.
1749
+ static member inline target (frameName: string) = Interop.mkAttr "target" frameName
1750
+
1751
+ /// Determines the positioning in horizontal direction of the convolution matrix relative to a
1752
+ /// given target pixel in the input image.
1753
+ ///
1754
+ /// The leftmost column of the matrix is column number zero.
1755
+ ///
1756
+ /// The value must be such that:
1757
+ ///
1758
+ /// 0 <= targetX < orderX.
1759
+ static member inline targetX (index: int) = Interop.mkAttr "targetX" index
1760
+
1761
+ /// Determines the positioning in vertical direction of the convolution matrix relative to a
1762
+ /// given target pixel in the input image.
1763
+ ///
1764
+ /// The topmost row of the matrix is row number zero.
1765
+ ///
1766
+ /// The value must be such that:
1767
+ ///
1768
+ /// 0 <= targetY < orderY.
1769
+ static member inline targetY (index: int) = Interop.mkAttr "targetY" index
1770
+
1771
+ /// A shorthand for using prop.custom("data-testid", value). Useful for referencing elements when testing React code.
1772
+ static member inline testId(value: string) = Interop.mkAttr "data-testid" value
1773
+
1774
+ /// Defines the text content of the element. Alias for `children [ Html.text value ]`
1775
+ static member inline text (value: float) = Interop.mkAttr "children" value
1776
+ /// Defines the text content of the element. Alias for `children [ Html.text value ]`
1777
+ static member inline text (value: int) = Interop.mkAttr "children" value
1778
+ /// Defines the text content of the element. Alias for `children [ Html.text value ]`
1779
+ static member inline text (value: string) = Interop.mkAttr "children" value
1780
+
1781
+ /// Defines the text content of the element. Alias for `children [ Html.text (sprintf ...) ]`
1782
+ static member inline textf fmt = Printf.kprintf prop.text fmt
1783
+
1784
+ /// Specifies the width of the space into which the text will draw.
1785
+ ///
1786
+ /// The user agent will ensure that the text does not extend farther than that distance, using the method or methods
1787
+ /// specified by the lengthAdjust attribute.
1788
+ static member inline textLength (value: float) = Interop.mkAttr "textLength" value
1789
+ /// Specifies the width of the space into which the text will draw.
1790
+ ///
1791
+ /// The user agent will ensure that the text does not extend farther than that distance, using the method or methods
1792
+ /// specified by the lengthAdjust attribute.
1793
+ static member inline textLength (value: ICssUnit) = Interop.mkAttr "textLength" value
1794
+ /// Specifies the width of the space into which the text will draw.
1795
+ ///
1796
+ /// The user agent will ensure that the text does not extend farther than that distance, using the method or methods
1797
+ /// specified by the lengthAdjust attribute.
1798
+ static member inline textLength (value: int) = Interop.mkAttr "textLength" value
1799
+
1800
+ /// The title global attribute contains text representing advisory information related to the element it belongs to.
1801
+ static member inline title (value: string) = Interop.mkAttr "title" value
1802
+
1803
+ /// Indicates the initial value of the attribute that will be modified during the animation.
1804
+ ///
1805
+ /// When used with the `to` attribute, the animation will change the modified attribute from
1806
+ /// the from value to the to value.
1807
+ ///
1808
+ /// When used with the `by` attribute, the animation will change the attribute relatively
1809
+ /// from the from value by the value specified in by.
1810
+ static member inline to' (value: float) = Interop.mkAttr "to" value
1811
+ /// Indicates the initial value of the attribute that will be modified during the animation.
1812
+ ///
1813
+ /// When used with the `to` attribute, the animation will change the modified attribute from
1814
+ /// the from value to the to value.
1815
+ ///
1816
+ /// When used with the `by` attribute, the animation will change the attribute relatively
1817
+ /// from the from value by the value specified in by.
1818
+ static member inline to' (values: seq<float>) = Interop.mkAttr "to" (values |> unbox<seq<string>> |> String.concat " ")
1819
+ /// Indicates the initial value of the attribute that will be modified during the animation.
1820
+ ///
1821
+ /// When used with the `to` attribute, the animation will change the modified attribute from
1822
+ /// the from value to the to value.
1823
+ ///
1824
+ /// When used with the `by` attribute, the animation will change the attribute relatively
1825
+ /// from the from value by the value specified in by.
1826
+ static member inline to' (value: int) = Interop.mkAttr "to" value
1827
+ /// Indicates the initial value of the attribute that will be modified during the animation.
1828
+ ///
1829
+ /// When used with the `to` attribute, the animation will change the modified attribute from
1830
+ /// the from value to the to value.
1831
+ ///
1832
+ /// When used with the `by` attribute, the animation will change the attribute relatively
1833
+ /// from the from value by the value specified in by.
1834
+ static member inline to' (values: seq<int>) = Interop.mkAttr "to" (values |> unbox<seq<string>> |> String.concat " ")
1835
+ /// Indicates the initial value of the attribute that will be modified during the animation.
1836
+ ///
1837
+ /// When used with the `to` attribute, the animation will change the modified attribute from
1838
+ /// the from value to the to value.
1839
+ ///
1840
+ /// When used with the `by` attribute, the animation will change the attribute relatively
1841
+ /// from the from value by the value specified in by.
1842
+ static member inline to' (value: string) = Interop.mkAttr "to" value
1843
+ /// Indicates the initial value of the attribute that will be modified during the animation.
1844
+ ///
1845
+ /// When used with the `to` attribute, the animation will change the modified attribute from
1846
+ /// the from value to the to value.
1847
+ ///
1848
+ /// When used with the `by` attribute, the animation will change the attribute relatively
1849
+ /// from the from value by the value specified in by.
1850
+ static member inline to' (values: seq<string>) = Interop.mkAttr "to" (values |> String.concat " ")
1851
+
1852
+ /// Defines a list of transform definitions that are applied to an element and the element's children.
1853
+ static member inline transform (transform: ITransformProperty) =
1854
+ Interop.mkAttr "transform" (unbox<string> transform)
1855
+ /// Defines a list of transform definitions that are applied to an element and the element's children.
1856
+ static member inline transform (transforms: seq<ITransformProperty>) =
1857
+ let unitList = [ "px" ; "deg" ]
1858
+ let removeUnits (s : string) =
1859
+ List.fold (fun (ins:string) toReplace -> ins.Replace(toReplace,"")) s unitList
1860
+ Interop.mkAttr "transform" (unbox<seq<string>> transforms |> Seq.map removeUnits |> String.concat " ")
1861
+
1862
+ /// Sets the `type` attribute for the element.
1863
+ static member inline type' (value: string) = Interop.mkAttr "type" value
1864
+
1865
+ /// Represents the ideal vertical position of the underline.
1866
+ ///
1867
+ /// The underline position is expressed in the font's coordinate system.
1868
+ static member inline underlinePosition (value: float) = Interop.mkAttr "underline-position" value
1869
+ /// Represents the ideal vertical position of the underline.
1870
+ ///
1871
+ /// The underline position is expressed in the font's coordinate system.
1872
+ static member inline underlinePosition (value: int) = Interop.mkAttr "underline-position" value
1873
+
1874
+ /// Represents the ideal thickness of the underline.
1875
+ ///
1876
+ /// The underline thickness is expressed in the font's coordinate system.
1877
+ static member inline underlineThickness (value: float) = Interop.mkAttr "underline-thickness" value
1878
+ /// Represents the ideal thickness of the underline.
1879
+ ///
1880
+ /// The underline thickness is expressed in the font's coordinate system.
1881
+ static member inline underlineThickness (value: int) = Interop.mkAttr "underline-thickness" value
1882
+
1883
+ /// A hash-name reference to a <map> element; that is a '#' followed by the value of a name of a map element.
1884
+ static member inline usemap (value: string) = Interop.mkAttr "usemap" value
1885
+
1886
+ /// Sets the value of a React controlled component.
1887
+ static member inline value (value: bool) = Interop.mkAttr "value" value
1888
+ /// Sets the value of a React controlled component.
1889
+ static member inline value (value: float) = Interop.mkAttr "value" value
1890
+ /// Sets the value of a React controlled component.
1891
+ static member inline value (value: System.Guid) = Interop.mkAttr "value" (unbox<string> value)
1892
+ /// Sets the value of a React controlled component.
1893
+ static member inline value (value: int) = Interop.mkAttr "value" value
1894
+ /// Sets the value of a React controlled component.
1895
+ static member inline value (value: string) = Interop.mkAttr "value" value
1896
+ /// Sets the value of a React controlled component.
1897
+ static member inline value (value: seq<float>) = Interop.mkAttr "value" (ResizeArray value)
1898
+ /// Sets the value of a React controlled component.
1899
+ static member inline value (value: seq<int>) = Interop.mkAttr "value" (ResizeArray value)
1900
+ /// Sets the value of a React controlled component.
1901
+ static member inline value (value: seq<string>) = Interop.mkAttr "value" (ResizeArray value)
1902
+ /// The value of the element, interpreted as a date
1903
+ static member inline value (value: System.DateTime, includeTime: bool) =
1904
+ if includeTime
1905
+ then Interop.mkAttr "value" (value.ToString("yyyy-MM-ddThh:mm"))
1906
+ else Interop.mkAttr "value" (value.ToString("yyyy-MM-dd"))
1907
+ /// The value of the element, interpreted as a date
1908
+ static member inline value (value: System.DateTime) = prop.value(value, includeTime=false)
1909
+ /// The value of the element, interpreted as a date, or empty if there is no value.
1910
+ static member inline value (value: System.DateTime option, includeTime: bool) =
1911
+ match value with
1912
+ | None -> Interop.mkAttr "value" ""
1913
+ | Some date ->
1914
+ if includeTime
1915
+ then Interop.mkAttr "value" (date.ToString("yyyy-MM-ddThh:mm"))
1916
+ else Interop.mkAttr "value" (date.ToString("yyyy-MM-dd"))
1917
+
1918
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1919
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input value.
1920
+ static member inline valueOrDefault (value: bool) =
1921
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!value)
1922
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1923
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input value.
1924
+ static member inline valueOrDefault (value: float) =
1925
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!value)
1926
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1927
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input value.
1928
+ static member inline valueOrDefault (value: System.Guid) =
1929
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!value)
1930
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1931
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input value.
1932
+ static member inline valueOrDefault (value: int) =
1933
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!value)
1934
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1935
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input box value.
1936
+ static member inline valueOrDefault (value: string) =
1937
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!value)
1938
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1939
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input value.
1940
+ static member inline valueOrDefault (value: seq<float>) =
1941
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!(ResizeArray value))
1942
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1943
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input value.
1944
+ static member inline valueOrDefault (value: seq<int>) =
1945
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!(ResizeArray value))
1946
+ /// `prop.ref` callback that sets the value of an input after DOM element is created.
1947
+ /// Can be used instead of `prop.defaultValue` and `prop.value` props to override input box value.
1948
+ static member inline valueOrDefault (value: seq<string>) =
1949
+ prop.ref (fun e -> if e |> isNull |> not && !!e?value <> !!value then e?value <- !!(ResizeArray value))
1950
+
1951
+ /// The values attribute has different meanings, depending upon the context where itʼs used,
1952
+ /// either it defines a sequence of values used over the course of an animation, or itʼs a
1953
+ /// list of numbers for a color matrix, which is interpreted differently depending on the
1954
+ /// type of color change to be performed.
1955
+ static member inline values (value: float) = Interop.mkAttr "values" value
1956
+ /// The values attribute has different meanings, depending upon the context where itʼs used,
1957
+ /// either it defines a sequence of values used over the course of an animation, or itʼs a
1958
+ /// list of numbers for a color matrix, which is interpreted differently depending on the
1959
+ /// type of color change to be performed.
1960
+ static member inline values (values: seq<float>) = Interop.mkAttr "values" (values |> unbox<seq<string>> |> String.concat " ")
1961
+ /// The values attribute has different meanings, depending upon the context where itʼs used,
1962
+ /// either it defines a sequence of values used over the course of an animation, or itʼs a
1963
+ /// list of numbers for a color matrix, which is interpreted differently depending on the
1964
+ /// type of color change to be performed.
1965
+ static member inline values (value: int) = Interop.mkAttr "values" value
1966
+ /// The values attribute has different meanings, depending upon the context where itʼs used,
1967
+ /// either it defines a sequence of values used over the course of an animation, or itʼs a
1968
+ /// list of numbers for a color matrix, which is interpreted differently depending on the
1969
+ /// type of color change to be performed.
1970
+ static member inline values (values: seq<int>) = Interop.mkAttr "values" (values |> unbox<seq<string>> |> String.concat " ")
1971
+ /// The values attribute has different meanings, depending upon the context where itʼs used,
1972
+ /// either it defines a sequence of values used over the course of an animation, or itʼs a
1973
+ /// list of numbers for a color matrix, which is interpreted differently depending on the
1974
+ /// type of color change to be performed.
1975
+ static member inline values (value: string) = Interop.mkAttr "values" value
1976
+ /// The values attribute has different meanings, depending upon the context where itʼs used,
1977
+ /// either it defines a sequence of values used over the course of an animation, or itʼs a
1978
+ /// list of numbers for a color matrix, which is interpreted differently depending on the
1979
+ /// type of color change to be performed.
1980
+ static member inline values (values: seq<string>) = Interop.mkAttr "values" (values |> String.concat " ")
1981
+
1982
+ /// Specifies the width of elements listed here. For all other elements, use the CSS height property.
1983
+ ///
1984
+ /// HTML: <canvas>, <embed>, <iframe>, <img>, <input>, <object>, <video>
1985
+ ///
1986
+ /// SVG: <feBlend>, <feColorMatrix>, <feComponentTransfer>, <feComposite>, <feConvolveMatrix>,
1987
+ /// <feDiffuseLighting>, <feDisplacementMap>, <feDropShadow>, <feFlood>, <feGaussianBlur>, <feImage>,
1988
+ /// <feMerge>, <feMorphology>, <feOffset>, <feSpecularLighting>, <feTile>, <feTurbulence>, <filter>,
1989
+ /// <mask>, <pattern>
1990
+ static member inline width (value: float) = Interop.mkAttr "width" value
1991
+ /// Specifies the width of elements listed here. For all other elements, use the CSS height property.
1992
+ ///
1993
+ /// HTML: <canvas>, <embed>, <iframe>, <img>, <input>, <object>, <video>
1994
+ ///
1995
+ /// SVG: <feBlend>, <feColorMatrix>, <feComponentTransfer>, <feComposite>, <feConvolveMatrix>,
1996
+ /// <feDiffuseLighting>, <feDisplacementMap>, <feDropShadow>, <feFlood>, <feGaussianBlur>, <feImage>,
1997
+ /// <feMerge>, <feMorphology>, <feOffset>, <feSpecularLighting>, <feTile>, <feTurbulence>, <filter>,
1998
+ /// <mask>, <pattern>
1999
+ static member inline width (value: ICssUnit) = Interop.mkAttr "width" value
2000
+ /// Specifies the width of elements listed here. For all other elements, use the CSS height property.
2001
+ ///
2002
+ /// HTML: <canvas>, <embed>, <iframe>, <img>, <input>, <object>, <video>
2003
+ ///
2004
+ /// SVG: <feBlend>, <feColorMatrix>, <feComponentTransfer>, <feComposite>, <feConvolveMatrix>,
2005
+ /// <feDiffuseLighting>, <feDisplacementMap>, <feDropShadow>, <feFlood>, <feGaussianBlur>, <feImage>,
2006
+ /// <feMerge>, <feMorphology>, <feOffset>, <feSpecularLighting>, <feTile>, <feTurbulence>, <filter>,
2007
+ /// <mask>, <pattern>
2008
+ static member inline width (value: int) = Interop.mkAttr "width" value
2009
+
2010
+ /// SVG attribute to define a x-axis coordinate in the user coordinate system.
2011
+ static member inline x (value: float) = Interop.mkAttr "x" value
2012
+ /// SVG attribute to define a x-axis coordinate in the user coordinate system.
2013
+ static member inline x (value: ICssUnit) = Interop.mkAttr "x" value
2014
+ /// SVG attribute to define a x-axis coordinate in the user coordinate system.
2015
+ static member inline x (value: int) = Interop.mkAttr "x" value
2016
+
2017
+ /// The x1 attribute is used to specify the first x-coordinate for drawing an SVG element that
2018
+ /// requires more than one coordinate. Elements that only need one coordinate use the x attribute instead.
2019
+ ///
2020
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2021
+ static member inline x1 (value: float) = Interop.mkAttr "x1" value
2022
+ /// The x1 attribute is used to specify the first x-coordinate for drawing an SVG element that
2023
+ /// requires more than one coordinate. Elements that only need one coordinate use the x attribute instead.
2024
+ ///
2025
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2026
+ static member inline x1 (value: ICssUnit) = Interop.mkAttr "x1" value
2027
+ /// The x1 attribute is used to specify the first x-coordinate for drawing an SVG element that
2028
+ /// requires more than one coordinate. Elements that only need one coordinate use the x attribute instead.
2029
+ ///
2030
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2031
+ static member inline x1 (value: int) = Interop.mkAttr "x1" value
2032
+
2033
+ /// The x2 attribute is used to specify the second x-coordinate for drawing an SVG element that requires
2034
+ /// more than one coordinate. Elements that only need one coordinate use the x attribute instead.
2035
+ ///
2036
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2037
+ static member inline x2 (value: float) = Interop.mkAttr "x2" value
2038
+ /// The x2 attribute is used to specify the second x-coordinate for drawing an SVG element that requires
2039
+ /// more than one coordinate. Elements that only need one coordinate use the x attribute instead.
2040
+ ///
2041
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2042
+ static member inline x2 (value: ICssUnit) = Interop.mkAttr "x2" value
2043
+ /// The x2 attribute is used to specify the second x-coordinate for drawing an SVG element that requires
2044
+ /// more than one coordinate. Elements that only need one coordinate use the x attribute instead.
2045
+ ///
2046
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2047
+ static member inline x2 (value: int) = Interop.mkAttr "x2" value
2048
+
2049
+ /// Specifies the XML Namespace of the document.
2050
+ ///
2051
+ /// Default value is "http://www.w3.org/1999/xhtml".
2052
+ ///
2053
+ /// This is required in documents parsed with XML parsers, and optional in text/html documents.
2054
+ static member inline xmlns (value: string) = Interop.mkAttr "xmlns" value
2055
+
2056
+ /// SVG attribute to define a y-axis coordinate in the user coordinate system.
2057
+ static member inline y (value: float) = Interop.mkAttr "y" value
2058
+ /// SVG attribute to define a y-axis coordinate in the user coordinate system.
2059
+ static member inline y (value: ICssUnit) = Interop.mkAttr "y" value
2060
+ /// SVG attribute to define a y-axis coordinate in the user coordinate system.
2061
+ static member inline y (value: int) = Interop.mkAttr "y" value
2062
+
2063
+ /// The y1 attribute is used to specify the first y-coordinate for drawing an SVG element that requires
2064
+ /// more than one coordinate. Elements that only need one coordinate use the y attribute instead.
2065
+ ///
2066
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2067
+ static member inline y1 (value: float) = Interop.mkAttr "y1" value
2068
+ /// The y1 attribute is used to specify the first y-coordinate for drawing an SVG element that requires
2069
+ /// more than one coordinate. Elements that only need one coordinate use the y attribute instead.
2070
+ ///
2071
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2072
+ static member inline y1 (value: ICssUnit) = Interop.mkAttr "y1" value
2073
+ /// The y1 attribute is used to specify the first y-coordinate for drawing an SVG element that requires
2074
+ /// more than one coordinate. Elements that only need one coordinate use the y attribute instead.
2075
+ ///
2076
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2077
+ static member inline y1 (value: int) = Interop.mkAttr "y1" value
2078
+
2079
+ /// The y2 attribute is used to specify the second y-coordinate for drawing an SVG element that requires
2080
+ /// more than one coordinate. Elements that only need one coordinate use the y attribute instead.
2081
+ ///
2082
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2083
+ static member inline y2 (value: float) = Interop.mkAttr "y2" value
2084
+ /// The y2 attribute is used to specify the second y-coordinate for drawing an SVG element that requires
2085
+ /// more than one coordinate. Elements that only need one coordinate use the y attribute instead.
2086
+ ///
2087
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2088
+ static member inline y2 (value: ICssUnit) = Interop.mkAttr "y2" value
2089
+ /// The y2 attribute is used to specify the second y-coordinate for drawing an SVG element that requires
2090
+ /// more than one coordinate. Elements that only need one coordinate use the y attribute instead.
2091
+ ///
2092
+ /// Two elements are using this attribute: <line>, and <linearGradient>
2093
+ static member inline y2 (value: int) = Interop.mkAttr "y2" value
2094
+
2095
+ /// Defines the location along the z-axis for a light source in the coordinate system established by the
2096
+ /// primitiveUnits attribute on the <filter> element, assuming that, in the initial coordinate system,
2097
+ /// the positive z-axis comes out towards the person viewing the content and assuming that one unit along
2098
+ /// the z-axis equals one unit in x and y.
2099
+ static member inline z (value: float) = Interop.mkAttr "z" value
2100
+ /// Defines the location along the z-axis for a light source in the coordinate system established by the
2101
+ /// primitiveUnits attribute on the <filter> element, assuming that, in the initial coordinate system,
2102
+ /// the positive z-axis comes out towards the person viewing the content and assuming that one unit along
2103
+ /// the z-axis equals one unit in x and y.
2104
+ static member inline z (value: ICssUnit) = Interop.mkAttr "z" value
2105
+ /// Defines the location along the z-axis for a light source in the coordinate system established by the
2106
+ /// primitiveUnits attribute on the <filter> element, assuming that, in the initial coordinate system,
2107
+ /// the positive z-axis comes out towards the person viewing the content and assuming that one unit along
2108
+ /// the z-axis equals one unit in x and y.
2109
+ static member inline z (value: int) = Interop.mkAttr "z" value
2110
+
2111
+ module prop =
2112
+ /// Controls whether or not an animation is cumulative.
2113
+ [<Erase>]
2114
+ type accumulate =
2115
+ /// Specifies that repeat iterations are not cumulative.
2116
+ static member inline none = Interop.mkAttr "accumulate" "none"
2117
+ /// Specifies that each repeat iteration after the first builds upon
2118
+ /// the last value of the previous iteration.
2119
+ static member inline sum = Interop.mkAttr "accumulate" "sum"
2120
+
2121
+ /// Controls whether or not an animation is additive.
2122
+ [<Erase>]
2123
+ type additive =
2124
+ /// Specifies that the animation will override the underlying value of
2125
+ /// the attribute and other lower priority animations.
2126
+ static member inline replace = Interop.mkAttr "additive" "replace"
2127
+ /// Specifies that the animation will add to the underlying value of
2128
+ /// the attribute and other lower priority animations.
2129
+ static member inline sum = Interop.mkAttr "additive" "sum"
2130
+
2131
+ /// Controls whether or not an animation is additive.
2132
+ [<Erase>]
2133
+ type alignmentBaseline =
2134
+ /// Uses the dominant baseline choice of the parent. Matches the box’s
2135
+ /// corresponding baseline to that of its parent.
2136
+ static member inline alphabetic = Interop.mkAttr "alignment-baseline" "alphabetic"
2137
+ /// Uses the dominant baseline choice of the parent. Matches the box’s
2138
+ /// corresponding baseline to that of its parent.
2139
+ static member inline baseline = Interop.mkAttr "alignment-baseline" "baseline"
2140
+ /// Uses the dominant baseline choice of the parent. Matches the box’s
2141
+ /// corresponding baseline to that of its parent.
2142
+ static member inline bottom = Interop.mkAttr "alignment-baseline" "bottom"
2143
+ /// Specifies that the animation will add to the underlying value of
2144
+ /// the attribute and other lower priority animations.
2145
+ static member inline center = Interop.mkAttr "alignment-baseline" "center"
2146
+ /// Uses the dominant baseline choice of the parent. Matches the box’s
2147
+ /// corresponding baseline to that of its parent.
2148
+ static member inline central = Interop.mkAttr "alignment-baseline" "central"
2149
+ /// Specifies that the animation will add to the underlying value of
2150
+ /// the attribute and other lower priority animations.
2151
+ static member inline hanging = Interop.mkAttr "alignment-baseline" "hanging"
2152
+ /// Specifies that the animation will add to the underlying value of
2153
+ /// the attribute and other lower priority animations.
2154
+ static member inline ideographic = Interop.mkAttr "alignment-baseline" "ideographic"
2155
+ /// Uses the dominant baseline choice of the parent. Matches the box’s
2156
+ /// corresponding baseline to that of its parent.
2157
+ static member inline mathematical = Interop.mkAttr "alignment-baseline" "mathematical"
2158
+ /// Specifies that the animation will add to the underlying value of
2159
+ /// the attribute and other lower priority animations.
2160
+ static member inline middle = Interop.mkAttr "alignment-baseline" "middle"
2161
+ /// Uses the dominant baseline choice of the parent. Matches the box’s
2162
+ /// corresponding baseline to that of its parent.
2163
+ static member inline textAfterEdge = Interop.mkAttr "alignment-baseline" "text-after-edge"
2164
+ /// Uses the dominant baseline choice of the parent. Matches the box’s
2165
+ /// corresponding baseline to that of its parent.
2166
+ static member inline textBeforeEdge = Interop.mkAttr "alignment-baseline" "text-before-edge"
2167
+ /// Specifies that the animation will add to the underlying value of
2168
+ /// the attribute and other lower priority animations.
2169
+ static member inline textBottom = Interop.mkAttr "alignment-baseline" "text-bottom"
2170
+ /// Specifies that the animation will add to the underlying value of
2171
+ /// the attribute and other lower priority animations.
2172
+ static member inline textTop = Interop.mkAttr "alignment-baseline" "text-top"
2173
+ /// Specifies that the animation will add to the underlying value of
2174
+ /// the attribute and other lower priority animations.
2175
+ static member inline top = Interop.mkAttr "alignment-baseline" "top"
2176
+
2177
+ /// Specifies a feature policy for the <iframe>.
2178
+ [<Erase>]
2179
+ type allow =
2180
+ /// Controls whether the current document is allowed to gather information about the acceleration of
2181
+ /// the device through the Accelerometer interface.
2182
+ static member inline accelerometer = Interop.mkAttr "allow" "accelerometer"
2183
+ /// Controls whether the current document is allowed to gather information about the amount of light
2184
+ /// in the environment around the device through the AmbientLightSensor interface.
2185
+ static member inline ambientLightSensor = Interop.mkAttr "allow" "ambient-light-sensor"
2186
+ /// Controls whether the current document is allowed to autoplay media requested through the
2187
+ /// HTMLMediaElement interface.
2188
+ ///
2189
+ /// When this policy is disabled and there were no user gestures, the Promise returned by
2190
+ /// HTMLMediaElement.play() will reject with a DOMException. The autoplay attribute on <audio> and
2191
+ /// <video> elements will be ignored.
2192
+ static member inline autoplay = Interop.mkAttr "allow" "autoplay"
2193
+ /// Controls whether the use of the Battery Status API is allowed.
2194
+ ///
2195
+ /// When this policy is disabled, the Promise returned by Navigator.getBattery() will reject with
2196
+ /// a NotAllowedError DOMException.
2197
+ static member inline battery = Interop.mkAttr "allow" "battery"
2198
+ /// Controls whether the current document is allowed to use video input devices.
2199
+ ///
2200
+ /// When this policy is disabled, the Promise returned by getUserMedia() will reject with a
2201
+ /// NotAllowedError DOMException.
2202
+ static member inline camera = Interop.mkAttr "allow" "camera"
2203
+ /// Controls whether or not the current document is permitted to use the getDisplayMedia() method to
2204
+ /// capture screen contents.
2205
+ ///
2206
+ /// When this policy is disabled, the promise returned by getDisplayMedia() will reject with a
2207
+ /// NotAllowedError if permission is not obtained to capture the display's contents.
2208
+ static member inline displayCapture = Interop.mkAttr "allow" "display-capture"
2209
+ /// Controls whether the current document is allowed to set document.domain.
2210
+ ///
2211
+ /// When this policy is disabled, attempting to set document.domain will fail and cause a SecurityError
2212
+ /// DOMException to be be thrown.
2213
+ static member inline documentDomain = Interop.mkAttr "allow" "document-domain"
2214
+ /// Controls whether the current document is allowed to use the Encrypted Media Extensions API (EME).
2215
+ ///
2216
+ /// When this policy is disabled, the Promise returned by Navigator.requestMediaKeySystemAccess() will
2217
+ /// reject with a DOMException.
2218
+ static member inline encryptedMedia = Interop.mkAttr "allow" "encrypted-media"
2219
+ /// Controls whether tasks should execute in frames while they're not being rendered (e.g. if an iframe
2220
+ /// is hidden or display: none).
2221
+ static member inline executionWhileNotRendered = Interop.mkAttr "allow" "execution-while-not-rendered"
2222
+ /// Controls whether tasks should execute in frames while they're outside of the visible viewport.
2223
+ static member inline executionWhileOutOfViewport = Interop.mkAttr "allow" "execution-while-out-of-viewport"
2224
+ /// Controls whether the current document is allowed to use Element.requestFullScreen().
2225
+ ///
2226
+ /// When this policy is disabled, the returned Promise rejects with a TypeError DOMException.
2227
+ static member inline fullscreen = Interop.mkAttr "allow" "fullscreen"
2228
+ /// Controls whether the current document is allowed to use the Geolocation Interface.
2229
+ ///
2230
+ /// When this policy is disabled, calls to getCurrentPosition() and watchPosition() will cause those
2231
+ /// functions' callbacks to be invoked with a PositionError code of PERMISSION_DENIED.
2232
+ static member inline geolocation = Interop.mkAttr "allow" "geolocation"
2233
+ /// Controls whether the current document is allowed to gather information about the orientation of the
2234
+ /// device through the Gyroscope interface.
2235
+ static member inline gyroscope = Interop.mkAttr "allow" "gyroscope"
2236
+ /// Controls whether the current document is allowed to show layout animations.
2237
+ static member inline layoutAnimations = Interop.mkAttr "allow" "layout-animations"
2238
+ /// Controls whether the current document is allowed to display images in legacy formats.
2239
+ static member inline legacyImageFormats = Interop.mkAttr "allow" "legacy-image-formats"
2240
+ /// Controls whether the current document is allowed to gather information about the orientation of the
2241
+ /// device through the Magnetometer interface.
2242
+ static member inline magnetometer = Interop.mkAttr "allow" "magnetometer"
2243
+ /// Controls whether the current document is allowed to use audio input devices.
2244
+ ///
2245
+ /// When this policy is disabled, the Promise returned by MediaDevices.getUserMedia() will reject
2246
+ /// with a NotAllowedError.
2247
+ static member inline microphone = Interop.mkAttr "allow" "microphone"
2248
+ /// Controls whether the current document is allowed to use the Web MIDI API.
2249
+ ///
2250
+ /// When this policy is disabled, the Promise returned by Navigator.requestMIDIAccess() will reject
2251
+ /// with a DOMException.
2252
+ static member inline midi = Interop.mkAttr "allow" "midi"
2253
+ /// Controls the availability of mechanisms that enables the page author to take control over the behavior
2254
+ /// of spatial navigation, or to cancel it outright.
2255
+ static member inline navigationOverride = Interop.mkAttr "allow" "navigation-override"
2256
+ /// Controls whether the current document is allowed to download and display large images.
2257
+ static member inline oversizedImages = Interop.mkAttr "allow" "oversized-images"
2258
+ /// Controls whether the current document is allowed to use the Payment Request API.
2259
+ ///
2260
+ /// When this policy is enabled, the PaymentRequest() constructor will throw a SecurityError DOMException.
2261
+ static member inline payment = Interop.mkAttr "allow" "payment"
2262
+ /// Controls whether the current document is allowed to play a video in a Picture-in-Picture mode via
2263
+ /// the corresponding API.
2264
+ static member inline pictureInPicture = Interop.mkAttr "allow" "picture-in-picture"
2265
+ /// Controls whether the current document is allowed to use the Web Authentication API to create, store,
2266
+ /// and retreive public-key credentials.
2267
+ static member inline publickeyCredentials = Interop.mkAttr "allow" "publickey-credentials"
2268
+ /// Controls whether the current document is allowed to make synchronous XMLHttpRequest requests.
2269
+ static member inline syncXhr = Interop.mkAttr "allow" "sync-xhr"
2270
+ /// Controls whether the current document is allowed to use the WebUSB API.
2271
+ static member inline usb = Interop.mkAttr "allow" "usb"
2272
+ /// Controls whether the current document is allowed to use Wake Lock API to indicate that
2273
+ /// device should not enter power-saving mode.
2274
+ static member inline wakeLock = Interop.mkAttr "allow" "wake-lock"
2275
+ /// Controls whether or not the current document is allowed to use the WebXR Device API to interact
2276
+ /// with a WebXR session.
2277
+ static member inline xrSpatialTracking = Interop.mkAttr "allow" "xr-spatial-tracking"
2278
+
2279
+ /// Indicates whether user input completion suggestions are provided.
2280
+ ///
2281
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-autocomplete
2282
+ [<Erase>]
2283
+ type ariaAutocomplete =
2284
+ /// A list of choices appears and the currently selected suggestion also
2285
+ /// appears inline.
2286
+ static member inline both = Interop.mkAttr "aria-autocomplete" "both"
2287
+ /// The system provides text after the caret as a suggestion for how to
2288
+ /// complete the field.
2289
+ static member inline inlinedAfterCaret = Interop.mkAttr "aria-autocomplete" "inline"
2290
+ /// A list of choices appears from which the user can choose.
2291
+ static member inline list = Interop.mkAttr "aria-autocomplete" "list"
2292
+ /// No input completion suggestions are provided.
2293
+ static member inline none = Interop.mkAttr "aria-autocomplete" "none"
2294
+
2295
+ /// Indicates the current "checked" state of checkboxes, radio buttons, and
2296
+ /// other widgets. See related `aria-pressed` and `aria-selected`.
2297
+ ///
2298
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-checked
2299
+ [<Erase>]
2300
+ type ariaChecked =
2301
+ /// Indicates a mixed mode value for a tri-state checkbox or
2302
+ /// `menuitemcheckbox`.
2303
+ static member inline mixed = Interop.mkAttr "aria-checked" "mixed"
2304
+
2305
+ /// Indicates what functions can be performed when the dragged object is
2306
+ /// released on the drop target. This allows assistive technologies to
2307
+ /// convey the possible drag options available to users, including whether a
2308
+ /// pop-up menu of choices is provided by the application. Typically, drop
2309
+ /// effect functions can only be provided once an object has been grabbed
2310
+ /// for a drag operation as the drop effect functions available are
2311
+ /// dependent on the object being dragged.
2312
+ ///
2313
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-dropeffect
2314
+ [<Erase>]
2315
+ type ariaDropEffect =
2316
+ /// A duplicate of the source object will be dropped into the target.
2317
+ static member inline copy = Interop.mkAttr "aria-dropeffect" "copy"
2318
+ /// A function supported by the drop target is executed, using the drag
2319
+ /// source as an input.
2320
+ static member inline execute = Interop.mkAttr "aria-dropeffect" "execute"
2321
+ /// A reference or shortcut to the dragged object will be created in the
2322
+ /// target object.
2323
+ static member inline link = Interop.mkAttr "aria-dropeffect" "link"
2324
+ /// The source object will be removed from its current location and
2325
+ /// dropped into the target.
2326
+ static member inline move = Interop.mkAttr "aria-dropeffect" "move"
2327
+ /// No operation can be performed; effectively cancels the drag
2328
+ /// operation if an attempt is made to drop on this object. Ignored if
2329
+ /// combined with any other token value. e.g. 'none copy' is equivalent
2330
+ /// to a 'copy' value.
2331
+ static member inline none = Interop.mkAttr "aria-dropeffect" "none"
2332
+ /// There is a popup menu or dialog that allows the user to choose one
2333
+ /// of the drag operations (copy, move, link, execute) and any other
2334
+ /// drag functionality, such as cancel.
2335
+ static member inline popup = Interop.mkAttr "aria-dropeffect" "popup"
2336
+
2337
+ /// Indicates the entered value does not conform to the format expected by
2338
+ /// the application.
2339
+ ///
2340
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-invalid
2341
+ [<Erase>]
2342
+ type ariaInvalid =
2343
+ /// A grammatical error was detected.
2344
+ static member inline grammar = Interop.mkAttr "aria-invalid" "grammar"
2345
+ /// A spelling error was detected.
2346
+ static member inline spelling = Interop.mkAttr "aria-invalid" "spelling"
2347
+
2348
+ /// Indicates that an element will be updated, and describes the types of
2349
+ /// updates the user agents, assistive technologies, and user can expect
2350
+ /// from the live region.
2351
+ ///
2352
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-live
2353
+ [<Erase>]
2354
+ type ariaLive =
2355
+ /// Indicates that updates to the region have the highest priority and
2356
+ /// should be presented the user immediately.
2357
+ static member inline assertive = Interop.mkAttr "aria-live" "assertive"
2358
+ /// Indicates that updates to the region should not be presented to the
2359
+ /// user unless the used is currently focused on that region.
2360
+ static member inline off = Interop.mkAttr "aria-live" "off"
2361
+ /// Indicates that updates to the region should be presented at the next
2362
+ /// graceful opportunity, such as at the end of speaking the current
2363
+ /// sentence or when the user pauses typing.
2364
+ static member inline polite = Interop.mkAttr "aria-live" "polite"
2365
+
2366
+ /// Indicates whether the element and orientation is horizontal or vertical.
2367
+ ///
2368
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-orientation
2369
+ [<Erase>]
2370
+ type ariaOrientation =
2371
+ /// The element is oriented horizontally.
2372
+ static member inline horizontal = Interop.mkAttr "aria-orientation" "horizontal"
2373
+ /// The element is oriented vertically.
2374
+ static member inline vertical = Interop.mkAttr "aria-orientation" "vertical"
2375
+
2376
+ /// Indicates the current "pressed" state of toggle buttons. See related
2377
+ /// `aria-checked` and `aria-selected`.
2378
+ ///
2379
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-pressed
2380
+ [<Erase>]
2381
+ type ariaPressed =
2382
+ /// Indicates a mixed mode value for a tri-state toggle button.
2383
+ static member inline mixed = Interop.mkAttr "aria-pressed" "mixed"
2384
+
2385
+ /// Indicates what user agent change notifications (additions, removals,
2386
+ /// etc.) assistive technologies will receive within a live region. See
2387
+ /// related `aria-atomic`.
2388
+ ///
2389
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-relevant
2390
+ [<Erase>]
2391
+ type ariaRelevant =
2392
+ /// Element nodes are added to the DOM within the live region.
2393
+ static member inline additions = Interop.mkAttr "aria-relevant" "additions"
2394
+ /// Equivalent to the combination of all values, "additions removals
2395
+ /// text".
2396
+ static member inline all = Interop.mkAttr "aria-relevant" "all"
2397
+ /// Text or element nodes within the live region are removed from the
2398
+ /// DOM.
2399
+ static member inline removals = Interop.mkAttr "aria-relevant" "removals"
2400
+ /// Text is added to any DOM descendant nodes of the live region.
2401
+ static member inline text = Interop.mkAttr "aria-relevant" "text"
2402
+
2403
+ /// Indicates if items in a table or grid are sorted in ascending or
2404
+ /// descending order.
2405
+ ///
2406
+ /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-sort
2407
+ [<Erase>]
2408
+ type ariaSort =
2409
+ /// Items are sorted in ascending order by this column.
2410
+ static member inline ascending = Interop.mkAttr "aria-sort" "ascending"
2411
+ /// Items are sorted in descending order by this column.
2412
+ static member inline descending = Interop.mkAttr "aria-sort" "descending"
2413
+ /// There is no defined sort applied to the column.
2414
+ static member inline none = Interop.mkAttr "aria-sort" "none"
2415
+ /// A sort algorithm other than ascending or descending has been
2416
+ /// applied.
2417
+ static member inline other = Interop.mkAttr "aria-sort" "other"
2418
+
2419
+ /// This attribute is only used when rel="preload" or rel="prefetch" has been set on the <link> element.
2420
+ /// It specifies the type of content being loaded by the <link>, which is necessary for request matching,
2421
+ /// application of correct content security policy, and setting of correct Accept request header.
2422
+ /// Furthermore, rel="preload" uses this as a signal for request prioritization.
2423
+ [<Erase>]
2424
+ type as' =
2425
+ /// Applies to <audio> elements.
2426
+ static member inline audio = Interop.mkAttr "as" "audio"
2427
+ /// Applies to <iframe> and <frame> elements.
2428
+ static member inline document = Interop.mkAttr "as" "document"
2429
+ /// Applies to <embed> elements.
2430
+ static member inline embed = Interop.mkAttr "as" "embed"
2431
+ /// Applies to fetch and XHR.
2432
+ ///
2433
+ /// This value also requires <link> to contain the crossorigin attribute.
2434
+ static member inline fetch = Interop.mkAttr "as" "fetch"
2435
+ /// Applies to CSS @font-face.
2436
+ static member inline font = Interop.mkAttr "as" "font"
2437
+ /// Applies to <img> and <picture> elements with srcset or imageset attributes,
2438
+ /// SVG <image> elements, and CSS *-image rules.
2439
+ static member inline image = Interop.mkAttr "as" "image"
2440
+ /// Applies to <object> elements.
2441
+ static member inline object = Interop.mkAttr "as" "object"
2442
+ /// Applies to <script> elements, Worker importScripts.
2443
+ static member inline script = Interop.mkAttr "as" "script"
2444
+ /// Applies to <link rel=stylesheet> elements, and CSS @import.
2445
+ static member inline style = Interop.mkAttr "as" "style"
2446
+ /// Applies to <track> elements.
2447
+ static member inline track = Interop.mkAttr "as" "track"
2448
+ /// Applies to <video> elements.
2449
+ static member inline video = Interop.mkAttr "as" "video"
2450
+ /// Applies to Worker and SharedWorker.
2451
+ static member inline worker = Interop.mkAttr "as" "worker"
2452
+
2453
+ [<Erase>]
2454
+ type autoCapitalize =
2455
+ /// All letters should default to uppercase
2456
+ static member inline characters = Interop.mkAttr "autoCapitalize" "characters"
2457
+ /// No autocapitalization is applied (all letters default to lowercase)
2458
+ static member inline off = Interop.mkAttr "autoCapitalize" "off"
2459
+ /// The first letter of each sentence defaults to a capital letter; all other letters default to lowercase
2460
+ static member inline on' = Interop.mkAttr "autoCapitalize" "on"
2461
+ /// The first letter of each word defaults to a capital letter; all other letters default to lowercase
2462
+ static member inline words = Interop.mkAttr "autoCapitalize" "words"
2463
+
2464
+ /// Specifies the interpolation mode for the animation.
2465
+ [<Erase>]
2466
+ type calcMode =
2467
+ /// Specifies that the animation function will jump from one value to the next
2468
+ /// without any interpolation.
2469
+ static member inline discrete = Interop.mkAttr "calcMode" "discrete"
2470
+ /// Simple linear interpolation between values is used to calculate the animation
2471
+ /// function. Except for <animateMotion>, this is the default value.
2472
+ static member inline linear = Interop.mkAttr "calcMode" "linear"
2473
+ /// Defines interpolation to produce an even pace of change across the animation.
2474
+ ///
2475
+ /// This is only supported for values that define a linear numeric range, and for
2476
+ /// which some notion of "distance" between points can be calculated (e.g. position,
2477
+ /// width, height, etc.).
2478
+ ///
2479
+ /// If paced is specified, any keyTimes or keySplines will be ignored.
2480
+ ///
2481
+ /// For <animateMotion>, this is the default value.
2482
+ static member inline paced = Interop.mkAttr "calcMode" "paced"
2483
+ /// Interpolates from one value in the values list to the next according to a time
2484
+ /// function defined by a cubic Bézier spline.
2485
+ ///
2486
+ /// The points of the spline are defined in the keyTimes attribute, and the control
2487
+ /// points for each interval are defined in the keySplines attribute.
2488
+ static member inline spline = Interop.mkAttr "calcMode" "spline"
2489
+
2490
+ /// Specifies that new files should be captured by the device
2491
+ [<Erase>]
2492
+ type capture =
2493
+ /// The user-facing camera and/or microphone should be used.
2494
+ static member inline user = Interop.mkAttr "capture" "user"
2495
+ ///
2496
+ /// The outward-facing camera and/or microphone should be used
2497
+ static member inline environment = Interop.mkAttr "capture" "environment"
2498
+
2499
+ [<Erase>]
2500
+ type charset =
2501
+ static member inline utf8 = Interop.mkAttr "charSet" "UTF-8"
2502
+
2503
+ /// Indicates which coordinate system to use for the contents of the <clipPath> element.
2504
+ [<Erase>]
2505
+ type clipPath =
2506
+ /// Indicates that all coordinates inside the <clipPath> element refer to the user
2507
+ /// coordinate system as defined when the clipping path was created.
2508
+ static member inline userSpaceOnUse = Interop.mkAttr "clipPath" "userSpaceOnUse"
2509
+ /// Indicates that all coordinates inside the <clipPath> element are relative to
2510
+ /// the bounding box of the element the clipping path is applied to.
2511
+ ///
2512
+ /// It means that the origin of the coordinate system is the top left corner of the
2513
+ /// object bounding box and the width and height of the object bounding box are
2514
+ /// considered to have a length of 1 unit value.
2515
+ static member inline objectBoundingBox = Interop.mkAttr "clipPath" "objectBoundingBox"
2516
+
2517
+ /// Indicates which coordinate system to use for the contents of the <clipPath> element.
2518
+ [<Erase>]
2519
+ type clipRule =
2520
+ /// Determines the "insideness" of a point in the shape by drawing a ray from that
2521
+ /// point to infinity in any direction and counting the number of path segments
2522
+ /// from the given shape that the ray crosses.
2523
+ ///
2524
+ /// If this number is odd, the point is inside; if even, the point is outside.
2525
+ static member inline evenodd = Interop.mkAttr "clip-rule" "evenodd"
2526
+ static member inline inheritFromParent = Interop.mkAttr "clip-rule" "inherit"
2527
+ /// Determines the "insideness" of a point in the shape by drawing a ray from that
2528
+ /// point to infinity in any direction, and then examining the places where a
2529
+ /// segment of the shape crosses the ray.
2530
+ static member inline nonzero = Interop.mkAttr "clip-rule" "nonzero"
2531
+
2532
+ /// Specifies the color space for gradient interpolations, color animations, and
2533
+ /// alpha compositing.
2534
+ [<Erase>]
2535
+ type colorInterpolation =
2536
+ /// Indicates that the user agent can choose either the sRGB or linearRGB spaces
2537
+ /// for color interpolation. This option indicates that the author doesn't require
2538
+ /// that color interpolation occur in a particular color space.
2539
+ static member inline auto = Interop.mkAttr "color-interpolation" "auto"
2540
+ /// Indicates that color interpolation should occur in the linearized RGB color
2541
+ /// space as described in the sRGB specification.
2542
+ static member inline linearRGB = Interop.mkAttr "color-interpolation" "linearRGB"
2543
+ /// Indicates that color interpolation should occur in the sRGB color space.
2544
+ static member inline sRGB = Interop.mkAttr "color-interpolation" "sRGB"
2545
+
2546
+ /// Specifies the color space for imaging operations performed via filter effects.
2547
+ [<Erase>]
2548
+ type colorInterpolationFilters =
2549
+ /// Indicates that the user agent can choose either the sRGB or linearRGB spaces
2550
+ /// for color interpolation. This option indicates that the author doesn't require
2551
+ /// that color interpolation occur in a particular color space.
2552
+ static member inline auto = Interop.mkAttr "color-interpolation-filters" "auto"
2553
+ /// Indicates that color interpolation should occur in the linearized RGB color
2554
+ /// space as described in the sRGB specification.
2555
+ static member inline linearRGB = Interop.mkAttr "color-interpolation-filters" "linearRGB"
2556
+ /// Indicates that color interpolation should occur in the sRGB color space.
2557
+ static member inline sRGB = Interop.mkAttr "color-interpolation-filters" "sRGB"
2558
+
2559
+ /// A set of values specifying the coordinates of the hot-spot region.
2560
+ ///
2561
+ /// The number and meaning of the values depend upon the value specified for the shape attribute
2562
+ [<Erase>]
2563
+ type coords =
2564
+ static member inline rect (left: int, top: int, right: int, bottom: int) =
2565
+ Interop.mkAttr "coords"
2566
+ ((unbox<string> left) + "," +
2567
+ (unbox<string> top) + "," +
2568
+ (unbox<string> right) + "," +
2569
+ (unbox<string> bottom))
2570
+ static member inline circle (x: int, y: int, r: int) =
2571
+ Interop.mkAttr "coords"
2572
+ ((unbox<string> x) + "," +
2573
+ (unbox<string> y) + "," +
2574
+ (unbox<string> r))
2575
+ static member inline poly (x1: int, y1: int, x2: int, y2: int, x3: int, y3: int) =
2576
+ Interop.mkAttr "coords"
2577
+ ((unbox<string> x1) + "," +
2578
+ (unbox<string> y1) + "," +
2579
+ (unbox<string> x2) + "," +
2580
+ (unbox<string> y2) + "," +
2581
+ (unbox<string> x3) + "," +
2582
+ (unbox<string> y3))
2583
+
2584
+ /// Indicates whether CORS must be used when fetching the resource.
2585
+ [<Erase>]
2586
+ type crossOrigin =
2587
+ /// A cross-origin request (i.e. with an Origin HTTP header) is performed, but no credential
2588
+ /// is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server
2589
+ /// does not give credentials to the origin site (by not setting the Access-Control-Allow-Origin
2590
+ /// HTTP header) the resource will be tainted and its usage restricted.
2591
+ static member inline anonymous = Interop.mkAttr "crossOrigin" "anonymous"
2592
+ /// A cross-origin request (i.e. with an Origin HTTP header) is performed along with a credential
2593
+ /// sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server
2594
+ /// does not give credentials to the origin site (through Access-Control-Allow-Credentials HTTP
2595
+ /// header), the resource will be tainted and its usage restricted.
2596
+ static member inline useCredentials = Interop.mkAttr "crossOrigin" "use-credentials"
2597
+
2598
+ /// Indicates the directionality of the element's text.
2599
+ [<Erase>]
2600
+ type dir =
2601
+ /// Lets the user agent decide.
2602
+ static member inline auto = Interop.mkAttr "dir" "auto"
2603
+ /// Left to right - for languages that are written from left to right.
2604
+ static member inline ltr = Interop.mkAttr "dir" "ltr"
2605
+ /// Right to left - for languages that are written from right to left.
2606
+ static member inline rtl = Interop.mkAttr "dir" "rtl"
2607
+
2608
+ /// The `dominantBaseline` attribute specifies the dominant baseline, which is the baseline used to align the box’s text
2609
+ /// and inline-level contents. It also indicates the default alignment baseline of any boxes participating in baseline
2610
+ /// alignment in the box’s alignment context. It is used to determine or re-determine a scaled-baseline-table. A
2611
+ /// scaled-baseline-table is a compound value with three components: a baseline-identifier for the dominant-baseline, a
2612
+ /// baseline-table and a baseline-table font-size. Some values of the property re-determine all three values; other only
2613
+ /// re-establish the baseline-table font-size. When the initial value, auto, would give an undesired result, this property
2614
+ /// can be used to explicitly set the desired scaled-baseline-table.
2615
+ /// If there is no baseline table in the nominal font or if the baseline table lacks an entry for the desired baseline,
2616
+ /// then the browser may use heuristics to determine the position of the desired baseline.
2617
+ [<Erase>]
2618
+ type dominantBaseline =
2619
+ /// The baseline-identifier for the dominant-baseline is set to be alphabetic, the derived baseline-table is constructed
2620
+ /// using the alphabetic baseline-table in the font, and the baseline-table font-size is changed to the value of the
2621
+ /// font-size attribute on this element.
2622
+ static member inline alphabetic = Interop.mkAttr "dominantBaseline" "alphabetic"
2623
+ /// If this property occurs on a <text> element, then the computed value depends on the value of the writing-mode attribute.
2624
+ ///
2625
+ /// If the writing-mode is horizontal, then the value of the dominant-baseline component is alphabetic, else if the writing-mode
2626
+ /// is vertical, then the value of the dominant-baseline component is central.
2627
+ ///
2628
+ /// If this property occurs on a <tspan>, <tref>,
2629
+ /// <altGlyph> or <textPath> element, then the dominant-baseline and the baseline-table components remain the same as those of
2630
+ /// the parent text content element.
2631
+ ///
2632
+ /// If the computed baseline-shift value actually shifts the baseline, then the baseline-table
2633
+ /// font-size component is set to the value of the font-size attribute on the element on which the dominant-baseline attribute
2634
+ /// occurs, otherwise the baseline-table font-size remains the same as that of the element.
2635
+ ///
2636
+ /// If there is no parent text content
2637
+ /// element, the scaled-baseline-table value is constructed as above for <text> elements.
2638
+ static member inline auto = Interop.mkAttr "dominantBaseline" "auto"
2639
+ /// The baseline-identifier for the dominant-baseline is set to be central. The derived baseline-table is constructed from the
2640
+ /// defined baselines in a baseline-table in the font. That font baseline-table is chosen using the following priority order of
2641
+ /// baseline-table names: ideographic, alphabetic, hanging, mathematical. The baseline-table font-size is changed to the value
2642
+ /// of the font-size attribute on this element.
2643
+ static member inline central = Interop.mkAttr "dominantBaseline" "central"
2644
+ /// The baseline-identifier for the dominant-baseline is set to be hanging, the derived baseline-table is constructed using the
2645
+ /// hanging baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on
2646
+ /// this element.
2647
+ static member inline hanging = Interop.mkAttr "dominantBaseline" "hanging"
2648
+ /// The baseline-identifier for the dominant-baseline is set to be ideographic, the derived baseline-table is constructed using
2649
+ /// the ideographic baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size
2650
+ /// attribute on this element.
2651
+ static member inline ideographic = Interop.mkAttr "dominantBaseline" "ideographic"
2652
+ /// The baseline-identifier for the dominant-baseline is set to be mathematical, the derived baseline-table is constructed using
2653
+ /// the mathematical baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size
2654
+ /// attribute on this element.
2655
+ static member inline mathematical = Interop.mkAttr "dominantBaseline" "mathematical"
2656
+ /// The baseline-identifier for the dominant-baseline is set to be middle. The derived baseline-table is constructed from the
2657
+ /// defined baselines in a baseline-table in the font. That font baseline-table is chosen using the following priority order
2658
+ /// of baseline-table names: alphabetic, ideographic, hanging, mathematical. The baseline-table font-size is changed to the value
2659
+ /// of the font-size attribute on this element.
2660
+ static member inline middle = Interop.mkAttr "dominantBaseline" "middle"
2661
+ /// The baseline-identifier for the dominant-baseline is set to be text-after-edge. The derived baseline-table is constructed
2662
+ /// from the defined baselines in a baseline-table in the font. The choice of which font baseline-table to use from the
2663
+ /// baseline-tables in the font is browser dependent. The baseline-table font-size is changed to the value of the font-size
2664
+ /// attribute on this element.
2665
+ static member inline textAfterEdge = Interop.mkAttr "dominantBaseline" "text-after-edge"
2666
+ /// The baseline-identifier for the dominant-baseline is set to be text-before-edge. The derived baseline-table is constructed
2667
+ /// from the defined baselines in a baseline-table in the font. The choice of which baseline-table to use from the baseline-tables
2668
+ /// in the font is browser dependent. The baseline-table font-size is changed to the value of the font-size attribute on this element.
2669
+ static member inline textBeforeEdge = Interop.mkAttr "dominantBaseline" "text-before-edge"
2670
+ /// This value uses the top of the em box as the baseline.
2671
+ static member inline textTop = Interop.mkAttr "dominantBaseline" "text-top"
2672
+
2673
+ /// Indicates the simple duration of an animation.
2674
+ [<Erase>]
2675
+ type dur =
2676
+ /// This value specifies the length of the simple duration.
2677
+ static member inline clockValue (duration: System.TimeSpan) =
2678
+ PropHelpers.createClockValue(duration)
2679
+ |> Interop.mkAttr "dur"
2680
+ /// This value specifies the simple duration as indefinite.
2681
+ static member inline indefinite = Interop.mkAttr "dur" "indefinite"
2682
+ /// This value specifies the simple duration as the intrinsic media duration.
2683
+ ///
2684
+ /// This is only valid for elements that define media.
2685
+ static member inline media = Interop.mkAttr "dur" "media"
2686
+
2687
+ /// Determines how to extend the input image as necessary with color values so
2688
+ /// that the matrix operations can be applied when the kernel is positioned at
2689
+ /// or near the edge of the input image.
2690
+ [<Erase>]
2691
+ type edgeMode =
2692
+ /// Indicates that the input image is extended along each of its borders as
2693
+ /// necessary by duplicating the color values at the given edge of the input image.
2694
+ static member inline duplicate = Interop.mkAttr "edgeMode" "duplicate"
2695
+ /// Indicates that the input image is extended with pixel values of zero for
2696
+ /// R, G, B and A.
2697
+ static member inline none = Interop.mkAttr "edgeMode" "none"
2698
+ /// Indicates that the input image is extended by taking the color values
2699
+ /// from the opposite edge of the image.
2700
+ static member inline wrap = Interop.mkAttr "edgeMode" "wrap"
2701
+
2702
+ /// Defines the final state of the SVG animation.
2703
+ [<Erase>]
2704
+ type fill =
2705
+ /// Keep the state of the last animation frame.
2706
+ static member inline freeze = Interop.mkAttr "fill" "freeze"
2707
+ /// Keep the state of the first animation frame.
2708
+ static member inline remove = Interop.mkAttr "fill" "remove"
2709
+
2710
+ /// Defines the coordinate system for the attributes x, y, width and height in SVG filter elements.
2711
+ [<Erase>]
2712
+ type filterUnits =
2713
+ /// x, y, width and height represent values in the current coordinate system that results from
2714
+ /// taking the current user coordinate system in place at the time when the <filter> element is
2715
+ /// referenced (i.e., the user coordinate system for the element referencing the <filter> element
2716
+ /// via a filter attribute).
2717
+ static member inline userSpaceOnUse = Interop.mkAttr "filterUnits" "userSpaceOnUse"
2718
+ /// x, y, width and height represent fractions or percentages of the bounding box on the referencing
2719
+ /// element.
2720
+ static member inline objectBoundingBox = Interop.mkAttr "filterUnits" "objectBoundingBox"
2721
+
2722
+ /// Defines the coordinate system used for attributes specified on SVG gradient elements.
2723
+ [<Erase>]
2724
+ type gradientUnits =
2725
+ /// Indicates that the attributes represent values in the coordinate system that results from
2726
+ /// taking the current user coordinate system in place at the time when the gradient element
2727
+ /// is referenced (i.e., the user coordinate system for the element referencing the gradient
2728
+ /// element via a fill or stroke property) and then applying the transform specified by
2729
+ /// attribute gradientTransform.
2730
+ ///
2731
+ /// Percentages represent values relative to the current SVG viewport.
2732
+ static member inline userSpaceOnUse = Interop.mkAttr "gradientUnits" "userSpaceOnUse"
2733
+ /// Indicates that the user coordinate system for the attributes is established using the
2734
+ /// bounding box of the element to which the gradient is applied and then applying the
2735
+ /// transform specified by attribute gradientTransform.
2736
+ ///
2737
+ /// Percentages represent values relative to the bounding box for the object.
2738
+ static member inline objectBoundingBox = Interop.mkAttr "gradientUnits" "objectBoundingBox"
2739
+
2740
+ /// Defines a pragma directive.
2741
+ [<Erase>]
2742
+ type httpEquiv =
2743
+ /// Allows page authors to define a content policy for the current page.
2744
+ ///
2745
+ /// Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site
2746
+ /// scripting attacks.
2747
+ static member inline contentSecurityPolicy = Interop.mkAttr "httpEquiv" "content-security-policy"
2748
+ /// If specified, the content attribute must have the value "text/html; charset=utf-8".
2749
+ ///
2750
+ /// Note: Can only be used in documents served with a text/html MIME type — not in documents served with an XML MIME type.
2751
+ static member inline contentType = Interop.mkAttr "httpEquiv" "content-type"
2752
+ /// Sets the name of the default CSS style sheet set.
2753
+ static member inline defaultStyle = Interop.mkAttr "httpEquiv" "default-style"
2754
+ /// This instruction specifies:
2755
+ ///
2756
+ /// The number of seconds until the page should be reloaded - only if the content attribute contains a positive integer.
2757
+ ///
2758
+ /// The number of seconds until the page should redirect to another - only if the content attribute contains a positive integer followed by the string ';url=', and a valid URL.
2759
+ static member inline refresh = Interop.mkAttr "httpEquiv" "refresh"
2760
+ /// If specified, the content attribute must have the value "IE=edge". User agents are required to ignore this pragma.
2761
+ static member inline xUaCompatible = Interop.mkAttr "httpEquiv" "x-ua-compatible"
2762
+
2763
+ /// Identifies input for the given filter primitive.
2764
+ [<Erase>]
2765
+ type in' =
2766
+ /// Represents an image snapshot of the SVG document under the filter region at the time that the
2767
+ /// <filter> element was invoked, except only the alpha channel is used.
2768
+ static member inline backgroundAlpha = Interop.mkAttr "in" "BackgroundAlpha"
2769
+ /// Represents an image snapshot of the SVG document under the filter region at the time that the
2770
+ /// <filter> element was invoked.
2771
+ static member inline backgroundImage = Interop.mkAttr "in" "BackgroundImage"
2772
+ /// An assigned name for the filter primitive.
2773
+ ///
2774
+ /// If supplied, then graphics that result from processing this filter primitive can be referenced
2775
+ /// by an in attribute on a subsequent filter primitive within the same filter element.
2776
+ static member inline custom (name: string) = Interop.mkAttr "in" name
2777
+ /// Represents the value of the fill property on the target element for the filter effect.
2778
+ ///
2779
+ /// In many cases, the FillPaint is opaque everywhere, but that might not be the case if a shape is
2780
+ /// painted with a gradient or pattern which itself includes transparent or semi-transparent parts.
2781
+ static member inline fillPaint = Interop.mkAttr "in" "FillPaint"
2782
+ /// Represents the graphics elements that were the original input into the <filter> element, except
2783
+ /// that only the alpha channel is used.
2784
+ static member inline sourceAlpha = Interop.mkAttr "in" "SourceAlpha"
2785
+ /// Represents the graphics elements that were the original input into the <filter> element.
2786
+ static member inline sourceGraphic = Interop.mkAttr "in" "SourceGraphic"
2787
+ /// Represents the value of the stroke property on the target element for the filter effect.
2788
+ ///
2789
+ /// In many cases, the StrokePaint is opaque everywhere, but that might not be the case if a shape
2790
+ /// is painted with a gradient or pattern which itself includes transparent or semi-transparent parts.
2791
+ static member inline strokePaint = Interop.mkAttr "in" "StrokePaint"
2792
+
2793
+ /// Identifies the second input for the given filter primitive.
2794
+ ///
2795
+ /// It works exactly like the in attribute.
2796
+ [<Erase>]
2797
+ type in2 =
2798
+ /// Represents an image snapshot of the SVG document under the filter region at the time that the
2799
+ /// <filter> element was invoked, except only the alpha channel is used.
2800
+ static member inline backgroundAlpha = Interop.mkAttr "in2" "BackgroundAlpha"
2801
+ /// Represents an image snapshot of the SVG document under the filter region at the time that the
2802
+ /// <filter> element was invoked.
2803
+ static member inline backgroundImage = Interop.mkAttr "in2" "BackgroundImage"
2804
+ /// An assigned name for the filter primitive.
2805
+ ///
2806
+ /// If supplied, then graphics that result from processing this filter primitive can be referenced
2807
+ /// by an in attribute on a subsequent filter primitive within the same filter element.
2808
+ static member inline custom (name: string) = Interop.mkAttr "in2" name
2809
+ /// Represents the value of the fill property on the target element for the filter effect.
2810
+ ///
2811
+ /// In many cases, the FillPaint is opaque everywhere, but that might not be the case if a shape is
2812
+ /// painted with a gradient or pattern which itself includes transparent or semi-transparent parts.
2813
+ static member inline fillPaint = Interop.mkAttr "in2" "FillPaint"
2814
+ /// Represents the graphics elements that were the original input into the <filter> element, except
2815
+ /// that only the alpha channel is used.
2816
+ static member inline sourceAlpha = Interop.mkAttr "in2" "SourceAlpha"
2817
+ /// Represents the graphics elements that were the original input into the <filter> element.
2818
+ static member inline sourceGraphic = Interop.mkAttr "in2" "SourceGraphic"
2819
+ /// Represents the value of the stroke property on the target element for the filter effect.
2820
+ ///
2821
+ /// In many cases, the StrokePaint is opaque everywhere, but that might not be the case if a shape
2822
+ /// is painted with a gradient or pattern which itself includes transparent or semi-transparent parts.
2823
+ static member inline strokePaint = Interop.mkAttr "in2" "StrokePaint"
2824
+
2825
+ /// Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents.
2826
+ [<Erase>]
2827
+ type inputMode =
2828
+ static member inline decimal = Interop.mkAttr "inputMode" "decimal"
2829
+ static member inline email = Interop.mkAttr "inputMode" "email"
2830
+ static member inline none = Interop.mkAttr "inputMode" "none"
2831
+ static member inline numeric = Interop.mkAttr "inputMode" "numeric"
2832
+ static member inline search = Interop.mkAttr "inputMode" "search"
2833
+ static member inline tel = Interop.mkAttr "inputMode" "tel"
2834
+ static member inline url = Interop.mkAttr "inputMode" "url"
2835
+
2836
+ /// How the text track is meant to be used.
2837
+ [<Erase>]
2838
+ type kind =
2839
+ /// Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue
2840
+ /// or text that is not English in an English language film.
2841
+ ///
2842
+ /// Subtitles may contain additional content, usually extra background information. For example the text
2843
+ /// at the beginning of the Star Wars films, or the date, time, and location of a scene.
2844
+ static member inline subtitles = Interop.mkAttr "kind" "subtitles"
2845
+ /// Closed captions provide a transcription and possibly a translation of audio.
2846
+ ///
2847
+ /// It may include important non-verbal information such as music cues or sound effects.
2848
+ /// It may indicate the cue's source (e.g. music, text, character).
2849
+ ///
2850
+ /// Suitable for users who are deaf or when the sound is muted.
2851
+ static member inline captions = Interop.mkAttr "kind" "captions"
2852
+ /// Textual description of the video content.
2853
+ ///
2854
+ /// Suitable for users who are blind or where the video cannot be seen.
2855
+ static member inline descriptions = Interop.mkAttr "kind" "descriptions"
2856
+ /// Chapter titles are intended to be used when the user is navigating the media resource.
2857
+ static member inline chapters = Interop.mkAttr "kind" "chapters"
2858
+ /// Tracks used by scripts. Not visible to the user.
2859
+ static member inline metadata = Interop.mkAttr "kind" "metadata"
2860
+
2861
+ /// Controls how the text is stretched into the length defined by the textLength attribute.
2862
+ [<Erase>]
2863
+ type lengthAdjust =
2864
+ static member inline spacing = Interop.mkAttr "lengthAdjust" "spacing"
2865
+ static member inline spacingAndGlyphs = Interop.mkAttr "lengthAdjust" "spacingAndGlyphs"
2866
+
2867
+ /// Defines the coordinate system for the markerWidth and markerUnits attributes
2868
+ /// and the contents of the <marker>.
2869
+ [<Erase>]
2870
+ type markerUnits =
2871
+ /// Specifies that the markerWidth and markerUnits attributes and the contents of the <marker> element represent
2872
+ /// values in a coordinate system which has a single unit equal the size in user units of the current stroke width
2873
+ /// (see the stroke-width attribute) in place for the graphic object referencing the marker.
2874
+ static member inline strokeWidth = Interop.mkAttr "markerUnits" "strokeWidth"
2875
+ /// Specifies that the markerWidth and markerUnits attributes and the contents of the <marker> element represent
2876
+ /// values in the current user coordinate system in place for the graphic object referencing the marker (i.e.,
2877
+ /// the user coordinate system for the element referencing the <marker> element via a marker, marker-start,
2878
+ /// marker-mid, or marker-end property).
2879
+ static member inline userSpaceOnUse = Interop.mkAttr "markerUnits" "userSpaceOnUse"
2880
+
2881
+ /// Indicates which coordinate system to use for the contents of the <mask> element.
2882
+ [<Erase>]
2883
+ type maskContentUnits =
2884
+ /// Indicates that all coordinates inside the <mask> element are relative to the bounding box of the element the
2885
+ /// mask is applied to.
2886
+ ///
2887
+ /// A bounding box could be considered the same as if the content of the <mask> were bound to a "0 0 1 1" viewbox.
2888
+ static member inline objectBoundingBox = Interop.mkAttr "maskContentUnits" "strokeWidth"
2889
+ /// Indicates that all coordinates inside the <mask> element refer to the user coordinate system as defined
2890
+ /// when the mask was created.
2891
+ static member inline userSpaceOnUse = Interop.mkAttr "maskContentUnits" "userSpaceOnUse"
2892
+
2893
+ /// Indicates which coordinate system to use for the geometry properties of the <mask> element.
2894
+ [<Erase>]
2895
+ type maskUnits =
2896
+ /// Indicates that all coordinates for the geometry attributes represent fractions or percentages of the bounding box
2897
+ /// of the element to which the mask is applied.
2898
+ ///
2899
+ /// A bounding box could be considered the same as if the content of the <mask> were bound to a "0 0 1 1" viewbox.
2900
+ static member inline objectBoundingBox = Interop.mkAttr "maskUnits" "strokeWidth"
2901
+ /// Indicates that all coordinates for the geometry attributes refer to the user coordinate system as defined
2902
+ /// when the mask was created.
2903
+ static member inline userSpaceOnUse = Interop.mkAttr "maskUnits" "userSpaceOnUse"
2904
+
2905
+ /// Defines the blending mode on the <feBlend> filter primitive.
2906
+ [<Erase>]
2907
+ type mode =
2908
+ /// The final color has the hue and saturation of the top color, while using the luminosity of the
2909
+ /// bottom color.
2910
+ ///
2911
+ /// The effect preserves gray levels and can be used to colorize the foreground.
2912
+ static member inline color = Interop.mkAttr "mode" "color"
2913
+ /// The final color is the result of inverting the bottom color, dividing the value by the top
2914
+ /// color, and inverting that value.
2915
+ ///
2916
+ /// A white foreground leads to no change. A foreground with the inverse color of the backdrop
2917
+ /// leads to a black final image.
2918
+ ///
2919
+ /// This blend mode is similar to multiply, but the foreground need only be as dark as the inverse
2920
+ /// of the backdrop to make the final image black.
2921
+ static member inline colorBurn = Interop.mkAttr "mode" "color-burn"
2922
+ /// The final color is the result of dividing the bottom color by the inverse of the top color.
2923
+ ///
2924
+ /// A black foreground leads to no change. A foreground with the inverse color of the backdrop
2925
+ /// leads to a fully lit color.
2926
+ ///
2927
+ /// This blend mode is similar to screen, but the foreground need only be as light as the inverse
2928
+ /// of the backdrop to create a fully lit color.
2929
+ static member inline colorDodge = Interop.mkAttr "mode" "color-dodge"
2930
+ /// The final color is composed of the darkest values of each color channel.
2931
+ static member inline darken = Interop.mkAttr "mode" "darken"
2932
+ /// The final color is the result of subtracting the darker of the two colors from the lighter
2933
+ /// one.
2934
+ ///
2935
+ /// A black layer has no effect, while a white layer inverts the other layer's color.
2936
+ static member inline difference = Interop.mkAttr "mode" "difference"
2937
+ /// The final color is similar to difference, but with less contrast.
2938
+ ///
2939
+ /// As with difference, a black layer has no effect, while a white layer inverts the other
2940
+ /// layer's color.
2941
+ static member inline exclusion = Interop.mkAttr "mode" "exclusion"
2942
+ /// The final color is the result of multiply if the top color is darker, or screen if the top
2943
+ /// color is lighter.
2944
+ ///
2945
+ /// This blend mode is equivalent to overlay but with the layers swapped.
2946
+ ///
2947
+ /// The effect is similar to shining a harsh spotlight on the backdrop.
2948
+ static member inline hardLight = Interop.mkAttr "mode" "hard-light"
2949
+ /// The final color has the hue of the top color, while using the saturation and luminosity of the
2950
+ /// bottom color.
2951
+ static member inline hue = Interop.mkAttr "mode" "hue"
2952
+ /// The final color is composed of the lightest values of each color channel.
2953
+ static member inline lighten = Interop.mkAttr "mode" "lighten"
2954
+ /// The final color has the luminosity of the top color, while using the hue and saturation of the
2955
+ /// bottom color.
2956
+ ///
2957
+ /// This blend mode is equivalent to color, but with the layers swapped.
2958
+ static member inline luminosity = Interop.mkAttr "mode" "luminosity"
2959
+ /// The final color is the result of multiplying the top and bottom colors.
2960
+ ///
2961
+ /// A black layer leads to a black final layer, and a white layer leads to no change.
2962
+ ///
2963
+ /// The effect is like two images printed on transparent film overlapping.
2964
+ static member inline multiply = Interop.mkAttr "mode" "multiply"
2965
+ /// The final color is the top color, regardless of what the bottom color is.
2966
+ ///
2967
+ /// The effect is like two opaque pieces of paper overlapping.
2968
+ static member inline normal = Interop.mkAttr "mode" "normal"
2969
+ /// The final color is the result of multiply if the bottom color is darker, or screen if the
2970
+ /// bottom color is lighter.
2971
+ ///
2972
+ /// This blend mode is equivalent to hard-light but with the layers swapped.
2973
+ static member inline overlay = Interop.mkAttr "mode" "overlay"
2974
+ /// The final color has the saturation of the top color, while using the hue and luminosity of the
2975
+ /// bottom color.
2976
+ ///
2977
+ /// A pure gray backdrop, having no saturation, will have no effect.
2978
+ static member inline saturation = Interop.mkAttr "mode" "saturation"
2979
+ /// The final color is the result of inverting the colors, multiplying them, and inverting
2980
+ /// that value.
2981
+ ///
2982
+ /// A black layer leads to no change, and a white layer leads to a white final layer.
2983
+ ///
2984
+ /// The effect is like two images shone onto a projection screen.
2985
+ static member inline screen = Interop.mkAttr "mode" "screen"
2986
+ /// The final color is similar to hard-light, but softer.
2987
+ ///
2988
+ /// This blend mode behaves similar to hard-light.
2989
+ ///
2990
+ /// The effect is similar to shining a diffused spotlight on the backdrop.
2991
+ static member inline softLight = Interop.mkAttr "mode" "soft-light"
2992
+
2993
+ /// Defines the blending mode on the <feBlend> filter primitive.
2994
+ [<Erase>]
2995
+ type operator =
2996
+ /// This value indicates that the source graphic defined in the in attribute and the
2997
+ /// destination graphic defined in the in2 attribute are combined using the following
2998
+ /// formula:
2999
+ ///
3000
+ /// result = k1*i1*i2 + k2*i1 + k3*i2 + k4
3001
+ ///
3002
+ /// where:
3003
+ ///
3004
+ /// i1 and i2 indicate the corresponding pixel channel values of the input image, which
3005
+ /// map to in and in2 respectively, and k1,k2,k3,and k4 indicate the values of the
3006
+ /// attributes with the same name.
3007
+ ///
3008
+ /// Used with <feComposite>
3009
+ static member inline arithmetic = Interop.mkAttr "operator" "arithmetic"
3010
+ /// Indicates that the parts of the source graphic defined in the in attribute, which overlap
3011
+ /// the destination graphic defined in the in2 attribute, replace the destination graphic.
3012
+ ///
3013
+ /// The parts of the destination graphic that do not overlap with the source graphic stay untouched.
3014
+ ///
3015
+ /// Used with <feComposite>
3016
+ static member inline atop = Interop.mkAttr "operator" "atop"
3017
+ /// Fattens the source graphic defined in the in attribute.
3018
+ ///
3019
+ /// Used with <feMorphology>
3020
+ static member inline dilate = Interop.mkAttr "operator" "dilate"
3021
+ /// Thins the source graphic defined in the in attribute.
3022
+ ///
3023
+ /// Used with <feMorphology>
3024
+ static member inline erode = Interop.mkAttr "operator" "erode"
3025
+ /// Indicates that the parts of the source graphic defined in the in attribute that overlap the
3026
+ /// destination graphic defined in the in2 attribute, replace the destination graphic.
3027
+ ///
3028
+ /// Used with <feComposite>
3029
+ static member inline in' = Interop.mkAttr "operator" "in"
3030
+ /// Indicates that the sum of the source graphic defined in the in attribute and the destination
3031
+ /// graphic defined in the in2 attribute is displayed.
3032
+ ///
3033
+ /// Used with <feComposite>
3034
+ static member inline lighter = Interop.mkAttr "operator" "lighter"
3035
+ /// Indicates that the parts of the source graphic defined in the in attribute that fall outside
3036
+ /// the destination graphic defined in the in2 attribute, are displayed.
3037
+ ///
3038
+ /// Used with <feComposite>
3039
+ static member inline out = Interop.mkAttr "operator" "out"
3040
+ /// Indicates that the source graphic defined in the in attribute is placed over the destination
3041
+ /// graphic defined in the in2 attribute.
3042
+ ///
3043
+ /// Used with <feComposite>
3044
+ static member inline over = Interop.mkAttr "operator" "over"
3045
+ /// Indicates that the non-overlapping regions of the source graphic defined in the in attribute
3046
+ /// and the destination graphic defined in the in2 attribute are combined.
3047
+ ///
3048
+ /// Used with <feComposite>
3049
+ static member inline xor = Interop.mkAttr "operator" "xor"
3050
+
3051
+ /// Indicates which coordinate system to use for the contents of the <pattern> element.
3052
+ [<Erase>]
3053
+ type patternContentUnits =
3054
+ /// Indicates that all coordinates inside the <pattern> element are relative to the bounding box of the element
3055
+ /// the pattern is applied to.
3056
+ ///
3057
+ /// A bounding box could be considered the same as if the content of the <pattern> were bound to a "0 0 1 1"
3058
+ /// viewbox for a pattern tile of width and height of 100%.
3059
+ static member inline objectBoundingBox = Interop.mkAttr "patternContentUnits" "objectBoundingBox"
3060
+ /// Indicates that all coordinates inside the <pattern> element refer to the user coordinate system as defined
3061
+ /// when the pattern tile was created.
3062
+ static member inline userSpaceOnUse = Interop.mkAttr "patternContentUnits" "userSpaceOnUse"
3063
+
3064
+ /// Indicates which coordinate system to use for the geometry properties of the <pattern> element.
3065
+ [<Erase>]
3066
+ type patternUnits =
3067
+ /// Indicates that all coordinates for the geometry properties represent fractions or percentages of the bounding
3068
+ /// box of the element to which the mask is applied.
3069
+ ///
3070
+ /// A bounding box could be considered the same as if the content of the <mask> were bound to a "0 0 1 1" viewbox.
3071
+ static member inline objectBoundingBox = Interop.mkAttr "patternUnits" "objectBoundingBox"
3072
+ /// Indicates that all coordinates for the geometry properties refer to the user coordinate system as defined
3073
+ /// when the pattern was applied.
3074
+ static member inline userSpaceOnUse = Interop.mkAttr "patternUnits" "userSpaceOnUse"
3075
+
3076
+ /// Provide a hint to the browser about what the author thinks will lead to the best user experience with regards
3077
+ /// to what content is loaded before the video is played.
3078
+ [<Erase>]
3079
+ type preload =
3080
+ /// Indicates that the whole video file can be downloaded, even if the user is not expected to use it.
3081
+ static member inline auto = Interop.mkAttr "preload" "auto"
3082
+ /// Indicates that only video metadata (e.g. length) is fetched.
3083
+ static member inline metadata = Interop.mkAttr "preload" "metadata"
3084
+ /// Indicates that the video should not be preloaded.
3085
+ static member inline none = Interop.mkAttr "preload" "none"
3086
+
3087
+ [<Erase>]
3088
+ type preserveAspectRatio =
3089
+ /// Do not force uniform scaling.
3090
+ ///
3091
+ /// Scale the graphic content of the given element non-uniformly if necessary such that the element's
3092
+ /// bounding box exactly matches the viewport rectangle. Note that if <align> is none, then the optional
3093
+ /// <meetOrSlice> value is ignored.
3094
+ static member inline none = Interop.mkAttr "preserveAspectRatio" "none"
3095
+
3096
+ [<Erase;RequireQualifiedAccess>]
3097
+ module preserveAspectRatio =
3098
+ /// Force uniform scaling.
3099
+ ///
3100
+ /// Align the <min-x> of the element's viewBox with the smallest X value of the viewport.
3101
+ ///
3102
+ /// Align the <min-y> of the element's viewBox with the smallest Y value of the viewport.
3103
+ [<Erase>]
3104
+ type xMinYMin =
3105
+ /// Scale the graphic such that:
3106
+ ///
3107
+ /// Aspect ratio is preserved.
3108
+ ///
3109
+ /// The entire viewBox is visible within the viewport.
3110
+ ///
3111
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3112
+ ///
3113
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3114
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3115
+ /// the viewBox will draw will be smaller than the viewport).
3116
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMinYMin meet"
3117
+ /// Scale the graphic such that:
3118
+ ///
3119
+ /// Aspect ratio is preserved.
3120
+ ///
3121
+ /// The entire viewport is covered by the viewBox.
3122
+ ///
3123
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3124
+ ///
3125
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3126
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3127
+ /// viewBox will draw is larger than the viewport).
3128
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMinYMin slice"
3129
+
3130
+ /// Force uniform scaling.
3131
+ ///
3132
+ /// Align the midpoint X value of the element's viewBox with the midpoint X value of the viewport.
3133
+ ///
3134
+ /// Align the <min-y> of the element's viewBox with the smallest Y value of the viewport.
3135
+ [<Erase>]
3136
+ type xMidYMin =
3137
+ /// Scale the graphic such that:
3138
+ ///
3139
+ /// Aspect ratio is preserved.
3140
+ ///
3141
+ /// The entire viewBox is visible within the viewport.
3142
+ ///
3143
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3144
+ ///
3145
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3146
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3147
+ /// the viewBox will draw will be smaller than the viewport).
3148
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMidYMin meet"
3149
+ /// Scale the graphic such that:
3150
+ ///
3151
+ /// Aspect ratio is preserved.
3152
+ ///
3153
+ /// The entire viewport is covered by the viewBox.
3154
+ ///
3155
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3156
+ ///
3157
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3158
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3159
+ /// viewBox will draw is larger than the viewport).
3160
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMidYMin slice"
3161
+
3162
+ /// Force uniform scaling.
3163
+ ///
3164
+ /// Align the <min-x>+<width> of the element's viewBox with the maximum X value of the viewport.
3165
+ ///
3166
+ /// Align the <min-y> of the element's viewBox with the smallest Y value of the viewport.
3167
+ [<Erase>]
3168
+ type xMaxYMin =
3169
+ /// Scale the graphic such that:
3170
+ ///
3171
+ /// Aspect ratio is preserved.
3172
+ ///
3173
+ /// The entire viewBox is visible within the viewport.
3174
+ ///
3175
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3176
+ ///
3177
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3178
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3179
+ /// the viewBox will draw will be smaller than the viewport).
3180
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMaxYMin meet"
3181
+ /// Scale the graphic such that:
3182
+ ///
3183
+ /// Aspect ratio is preserved.
3184
+ ///
3185
+ /// The entire viewport is covered by the viewBox.
3186
+ ///
3187
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3188
+ ///
3189
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3190
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3191
+ /// viewBox will draw is larger than the viewport).
3192
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMaxYMin slice"
3193
+
3194
+ /// Force uniform scaling.
3195
+ ///
3196
+ /// Align the <min-x> of the element's viewBox with the smallest X value of the viewport.
3197
+ ///
3198
+ /// Align the midpoint Y value of the element's viewBox with the midpoint Y value of the viewport.
3199
+ [<Erase>]
3200
+ type xMinYMid =
3201
+ /// Scale the graphic such that:
3202
+ ///
3203
+ /// Aspect ratio is preserved.
3204
+ ///
3205
+ /// The entire viewBox is visible within the viewport.
3206
+ ///
3207
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3208
+ ///
3209
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3210
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3211
+ /// the viewBox will draw will be smaller than the viewport).
3212
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMinYMid meet"
3213
+ /// Scale the graphic such that:
3214
+ ///
3215
+ /// Aspect ratio is preserved.
3216
+ ///
3217
+ /// The entire viewport is covered by the viewBox.
3218
+ ///
3219
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3220
+ ///
3221
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3222
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3223
+ /// viewBox will draw is larger than the viewport).
3224
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMinYMid slice"
3225
+
3226
+ /// Force uniform scaling.
3227
+ ///
3228
+ /// Align the midpoint X value of the element's viewBox with the midpoint X value of the viewport.
3229
+ ///
3230
+ /// Align the midpoint Y value of the element's viewBox with the midpoint Y value of the viewport.
3231
+ [<Erase>]
3232
+ type xMidYMid =
3233
+ /// Scale the graphic such that:
3234
+ ///
3235
+ /// Aspect ratio is preserved.
3236
+ ///
3237
+ /// The entire viewBox is visible within the viewport.
3238
+ ///
3239
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3240
+ ///
3241
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3242
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3243
+ /// the viewBox will draw will be smaller than the viewport).
3244
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMidYMid meet"
3245
+ /// Scale the graphic such that:
3246
+ ///
3247
+ /// Aspect ratio is preserved.
3248
+ ///
3249
+ /// The entire viewport is covered by the viewBox.
3250
+ ///
3251
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3252
+ ///
3253
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3254
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3255
+ /// viewBox will draw is larger than the viewport).
3256
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMidYMid slice"
3257
+
3258
+ /// Force uniform scaling.
3259
+ ///
3260
+ /// Align the <min-x>+<width> of the element's viewBox with the maximum X value of the viewport.
3261
+ ///
3262
+ /// Align the midpoint Y value of the element's viewBox with the midpoint Y value of the viewport.
3263
+ [<Erase>]
3264
+ type xMaxYMid =
3265
+ /// Scale the graphic such that:
3266
+ ///
3267
+ /// Aspect ratio is preserved.
3268
+ ///
3269
+ /// The entire viewBox is visible within the viewport.
3270
+ ///
3271
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3272
+ ///
3273
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3274
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3275
+ /// the viewBox will draw will be smaller than the viewport).
3276
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMaxYMid meet"
3277
+ /// Scale the graphic such that:
3278
+ ///
3279
+ /// Aspect ratio is preserved.
3280
+ ///
3281
+ /// The entire viewport is covered by the viewBox.
3282
+ ///
3283
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3284
+ ///
3285
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3286
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3287
+ /// viewBox will draw is larger than the viewport).
3288
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMaxYMid slice"
3289
+
3290
+ /// Force uniform scaling.
3291
+ ///
3292
+ /// Align the <min-x> of the element's viewBox with the smallest X value of the viewport.
3293
+ ///
3294
+ /// Align the <min-y>+<height> of the element's viewBox with the maximum Y value of the viewport.
3295
+ [<Erase>]
3296
+ type xMinYMax =
3297
+ /// Scale the graphic such that:
3298
+ ///
3299
+ /// Aspect ratio is preserved.
3300
+ ///
3301
+ /// The entire viewBox is visible within the viewport.
3302
+ ///
3303
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3304
+ ///
3305
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3306
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3307
+ /// the viewBox will draw will be smaller than the viewport).
3308
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMinYMax meet"
3309
+ /// Scale the graphic such that:
3310
+ ///
3311
+ /// Aspect ratio is preserved.
3312
+ ///
3313
+ /// The entire viewport is covered by the viewBox.
3314
+ ///
3315
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3316
+ ///
3317
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3318
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3319
+ /// viewBox will draw is larger than the viewport).
3320
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMinYMax slice"
3321
+
3322
+ /// Force uniform scaling.
3323
+ ///
3324
+ /// Align the midpoint X value of the element's viewBox with the midpoint X value of the viewport.
3325
+ ///
3326
+ /// Align the <min-y>+<height> of the element's viewBox with the maximum Y value of the viewport.
3327
+ [<Erase>]
3328
+ type xMidYMax =
3329
+ /// Scale the graphic such that:
3330
+ ///
3331
+ /// Aspect ratio is preserved.
3332
+ ///
3333
+ /// The entire viewBox is visible within the viewport.
3334
+ ///
3335
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3336
+ ///
3337
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3338
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3339
+ /// the viewBox will draw will be smaller than the viewport).
3340
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMidYMax meet"
3341
+ /// Scale the graphic such that:
3342
+ ///
3343
+ /// Aspect ratio is preserved.
3344
+ ///
3345
+ /// The entire viewport is covered by the viewBox.
3346
+ ///
3347
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3348
+ ///
3349
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3350
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3351
+ /// viewBox will draw is larger than the viewport).
3352
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMidYMax slice"
3353
+
3354
+ /// Force uniform scaling.
3355
+ ///
3356
+ /// Align the <min-x>+<width> of the element's viewBox with the maximum X value of the viewport.
3357
+ ///
3358
+ /// Align the <min-y>+<height> of the element's viewBox with the maximum Y value of the viewport.
3359
+ [<Erase>]
3360
+ type xMaxYMax =
3361
+ /// Scale the graphic such that:
3362
+ ///
3363
+ /// Aspect ratio is preserved.
3364
+ ///
3365
+ /// The entire viewBox is visible within the viewport.
3366
+ ///
3367
+ /// The viewBox is scaled up as much as possible, while still meeting the other criteria.
3368
+ ///
3369
+ /// In this case, if the aspect ratio of the graphic does not match the viewport, some of
3370
+ /// the viewport will extend beyond the bounds of the viewBox (i.e., the area into which
3371
+ /// the viewBox will draw will be smaller than the viewport).
3372
+ static member inline meet = Interop.mkAttr "preserveAspectRatio" "xMaxYMax meet"
3373
+ /// Scale the graphic such that:
3374
+ ///
3375
+ /// Aspect ratio is preserved.
3376
+ ///
3377
+ /// The entire viewport is covered by the viewBox.
3378
+ ///
3379
+ /// The viewBox is scaled down as much as possible, while still meeting the other criteria.
3380
+ ///
3381
+ /// In this case, if the aspect ratio of the viewBox does not match the viewport, some of the
3382
+ /// viewBox will extend beyond the bounds of the viewport (i.e., the area into which the
3383
+ /// viewBox will draw is larger than the viewport).
3384
+ static member inline slice = Interop.mkAttr "preserveAspectRatio" "xMaxYMax slice"
3385
+
3386
+ /// Specifies the coordinate system for the various length values within the filter primitives and
3387
+ /// for the attributes that define the filter primitive subregion.
3388
+ [<Erase>]
3389
+ type primitiveUnits =
3390
+ /// Indicates that any length values within the filter definitions represent fractions or
3391
+ /// percentages of the bounding box on the referencing element.
3392
+ static member inline objectBoundingBox = Interop.mkAttr "primitiveUnits" "objectBoundingBox"
3393
+ /// Indicates that any length values within the filter definitions represent values in the current user coordinate
3394
+ /// system in place at the time when the <filter> element is referenced (i.e., the user coordinate system for the
3395
+ /// element referencing the <filter> element via a filter attribute).
3396
+ static member inline userSpaceOnUse = Interop.mkAttr "primitiveUnits" "userSpaceOnUse"
3397
+
3398
+ /// Indicates which referrer to send when fetching the script, or resources fetched by the script
3399
+ [<Erase>]
3400
+ type referrerPolicy =
3401
+ /// The Referer header will not be sent.
3402
+ static member inline noReferrer = Interop.mkAttr "referrerPolicy" "no-referrer"
3403
+ /// The Referer header will not be sent to origins without TLS (HTTPS).
3404
+ static member inline noReferrerWhenDowngrade = Interop.mkAttr "referrerPolicy" "no-referrer-when-downgrade"
3405
+ /// The sent referrer will be limited to the origin of the referring page: its scheme, host, and port.
3406
+ static member inline origin = Interop.mkAttr "referrerPolicy" "origin"
3407
+ /// The referrer sent to other origins will be limited to the scheme, the host, and the port.
3408
+ /// Navigations on the same origin will still include the path.
3409
+ static member inline originWhenCrossOrigin = Interop.mkAttr "referrerPolicy" "origin-when-cross-origin"
3410
+ /// A referrer will be sent for same origin, but cross-origin requests will contain no referrer information.
3411
+ static member inline sameOrigin = Interop.mkAttr "referrerPolicy" "same-origin"
3412
+ /// Only send the origin of the document as the referrer when the protocol security level stays the same
3413
+ /// (e.g. HTTPS→HTTPS), but don't send it to a less secure destination (e.g. HTTPS→HTTP).
3414
+ static member inline strictOrigin = Interop.mkAttr "referrerPolicy" "strict-origin"
3415
+ /// Send a full URL when performing a same-origin request, but only send the origin when the protocol security
3416
+ /// level stays the same (e.g.HTTPS→HTTPS), and send no header to a less secure destination (e.g. HTTPS→HTTP).
3417
+ static member inline strictOriginWhenCrossOrigin = Interop.mkAttr "referrerPolicy" "strict-origin-when-cross-origin"
3418
+ /// The referrer will include the origin and the path (but not the fragment, password, or username). This value is unsafe,
3419
+ /// because it leaks origins and paths from TLS-protected resources to insecure origins.
3420
+ static member inline unsafeUrl = Interop.mkAttr "referrerPolicy" "unsafe-url"
3421
+
3422
+ /// Defines the x coordinate of an element’s reference point.
3423
+ [<Erase>]
3424
+ type refX =
3425
+ /// Numbers are interpreted as being in the coordinate system of the marker contents, after application of the
3426
+ /// viewBox and preserveAspectRatio attributes.
3427
+ static member inline length (value: float) = Interop.mkAttr "refX" value
3428
+ /// Lengths are interpreted as being in the coordinate system of the marker contents, after application
3429
+ /// of the viewBox and preserveAspectRatio attributes.
3430
+ static member inline length (value: ICssUnit) = Interop.mkAttr "refX" value
3431
+ /// Numbers are interpreted as being in the coordinate system of the marker contents, after application of the
3432
+ /// viewBox and preserveAspectRatio attributes.
3433
+ static member inline length (value: int) = Interop.mkAttr "refX" value
3434
+ /// The reference point of the marker is placed at the left edge of the shape.
3435
+ static member inline left = Interop.mkAttr "refX" "left"
3436
+ /// The reference point of the marker is placed at the horizontal center of the shape.
3437
+ static member inline center = Interop.mkAttr "refX" "center"
3438
+ /// The reference point of the marker is placed at the right edge of the shape.
3439
+ static member inline right = Interop.mkAttr "refX" "right"
3440
+
3441
+ /// Defines the y coordinate of an element’s reference point.
3442
+ [<Erase>]
3443
+ type refY =
3444
+ /// Numbers are interpreted as being in the coordinate system of the marker contents, after application of the
3445
+ /// viewBox and preserveAspectRatio attributes.
3446
+ static member inline length (value: float) = Interop.mkAttr "refY" value
3447
+ /// Lengths are interpreted as being in the coordinate system of the marker contents, after application of the
3448
+ /// viewBox and preserveAspectRatio attributes.
3449
+ ///
3450
+ /// Percentage values are interpreted as being a percentage of the viewBox height.
3451
+ static member inline length (value: ICssUnit) = Interop.mkAttr "refY" value
3452
+ /// Numbers are interpreted as being in the coordinate system of the marker contents, after application of the
3453
+ /// viewBox and preserveAspectRatio attributes.
3454
+ static member inline length (value: int) = Interop.mkAttr "refY" value
3455
+ /// The reference point of the marker is placed at the top edge of the shape.
3456
+ static member inline top = Interop.mkAttr "refY" "top"
3457
+ /// The reference point of the marker is placed at the vertical center of the shape.
3458
+ static member inline center = Interop.mkAttr "refY" "center"
3459
+ /// The reference point of the marker is placed at the bottom edge of the shape.
3460
+ static member inline bottom = Interop.mkAttr "refY" "bottom"
3461
+
3462
+ /// The required rel attribute specifies the relationship between the current document and the linked document/resource.
3463
+ ///
3464
+ /// Docs at https://www.w3schools.com/tags/att_link_rel.asp
3465
+ [<Erase>]
3466
+ type rel =
3467
+ /// Provides a link to an alternate version of the document (i.e. print page, translated or mirror).
3468
+ ///
3469
+ /// Example: <link rel="alternate" type="application/atom+xml" title="W3Schools News" href="/blog/news/atom">
3470
+ static member inline alternate = Interop.mkAttr "rel" "alternate"
3471
+ /// Provides a link to the author of the document.
3472
+ static member inline author = Interop.mkAttr "rel" "author"
3473
+ /// Permalink for the nearest ancestor section.
3474
+ static member inline bookmark = Interop.mkAttr "rel" "bookmark"
3475
+ /// Preferred URL for the current document.
3476
+ static member inline canonical = Interop.mkAttr "rel" "canonical"
3477
+ /// Specifies that the browser should preemptively perform DNS resolution for the target resource's origin.
3478
+ static member inline dnsPrefetch = Interop.mkAttr "rel" "dns-prefetch"
3479
+ /// The referenced document is not part of the same site as the current document.
3480
+ static member inline external = Interop.mkAttr "rel" "external"
3481
+ /// Provides a link to a help document. Example: <link rel="help" href="/help/">
3482
+ static member inline help = Interop.mkAttr "rel" "help"
3483
+ /// Imports an icon to represent the document.
3484
+ ///
3485
+ /// Example: <link rel="icon" href="/favicon.ico" type="image/x-icon">
3486
+ static member inline icon = Interop.mkAttr "rel" "icon"
3487
+ /// Provides a link to copyright information for the document.
3488
+ static member inline license = Interop.mkAttr "rel" "license"
3489
+ /// Web app manifest.
3490
+ static member inline manifest = Interop.mkAttr "rel" "manifest"
3491
+ /// Tells to browser to preemptively fetch the script and store it in the document's module map for later
3492
+ /// evaluation. Optionally, the module's dependencies can be fetched as well.
3493
+ static member inline modulepreload = Interop.mkAttr "rel" "modulepreload"
3494
+ /// Provides a link to the next document in the series.
3495
+ static member inline next = Interop.mkAttr "rel" "next"
3496
+ /// Indicates that the current document's original author or publisher does not endorse the referenced document.
3497
+ static member inline nofollow = Interop.mkAttr "rel" "nofollow"
3498
+ /// Creates a top-level browsing context that is not an auxiliary browsing context if the hyperlink would create
3499
+ /// either of those, to begin with (i.e., has an appropriate target attribute value).
3500
+ static member inline noopener = Interop.mkAttr "rel" "noopener"
3501
+ /// No Referer header will be included. Additionally, has the same effect as noopener.
3502
+ static member inline noreferrer = Interop.mkAttr "rel" "noreferrer"
3503
+ /// Creates an auxiliary browsing context if the hyperlink would otherwise create a top-level browsing context
3504
+ /// that is not an auxiliary browsing context (i.e., has "_blank" as target attribute value).
3505
+ static member inline opener = Interop.mkAttr "rel" "opener"
3506
+ /// Provides the address of the pingback server that handles pingbacks to the current document.
3507
+ static member inline pingback = Interop.mkAttr "rel" "pingback"
3508
+ /// Specifies that the browser should preemptively connect to the target resource's origin.
3509
+ static member inline preconnect = Interop.mkAttr "rel" "preconnect"
3510
+ /// Specifies that the browser should preemptively fetch and cache the target resource as it is likely to be
3511
+ /// required for a follow-up navigation.
3512
+ static member inline prefetch = Interop.mkAttr "rel" "prefetch"
3513
+ /// Specifies that the browser agent must preemptively fetch and cache the target resource for current navigation
3514
+ /// according to the destination given by the "as" attribute (and the priority associated with that destination).
3515
+ static member inline preload = Interop.mkAttr "rel" "preload"
3516
+ /// Specifies that the browser should pre-render (load) the specified webpage in the background. So, if the user
3517
+ /// navigates to this page, it speeds up the page load (because the page is already loaded).
3518
+ ///
3519
+ /// Warning! This wastes the user's bandwidth!
3520
+ ///
3521
+ /// Only use prerender if it is absolutely sure that the webpage is required at some point in the user journey.
3522
+ static member inline prerender = Interop.mkAttr "rel" "prerender"
3523
+ /// Indicates that the document is a part of a series, and that the previous document in the series is the referenced document.
3524
+ static member inline prev = Interop.mkAttr "rel" "prev"
3525
+ /// Provides a link to a resource that can be used to search through the current document and its related pages.
3526
+ static member inline search = Interop.mkAttr "rel" "search"
3527
+ /// Imports a style sheet.
3528
+ static member inline stylesheet = Interop.mkAttr "rel" "stylesheet"
3529
+ /// Gives a tag (identified by the given address) that applies to the current document.
3530
+ static member inline tag = Interop.mkAttr "rel" "tag"
3531
+
3532
+ /// Indicates the number of times an animation will take place.
3533
+ [<Erase>]
3534
+ type repeatCount =
3535
+ /// Specifies the number of iterations.
3536
+ ///
3537
+ /// It can include partial iterations expressed as fraction values.
3538
+ ///
3539
+ /// A fractional value describes a portion of the simple duration.
3540
+ ///
3541
+ /// Values must be greater than 0.
3542
+ static member inline iterations (value: float) = Interop.mkAttr "repeatCount" value
3543
+ /// Specifies the number of iterations.
3544
+ ///
3545
+ /// It can include partial iterations expressed as fraction values.
3546
+ ///
3547
+ /// A fractional value describes a portion of the simple duration.
3548
+ ///
3549
+ /// Values must be greater than 0.
3550
+ static member inline iterations (value: int) = Interop.mkAttr "repeatCount" value
3551
+ /// Indicates that the animation will be repeated indefinitely (i.e. until the document ends).
3552
+ static member inline indefinite = Interop.mkAttr "repeatCount" "indefinite"
3553
+
3554
+ /// Specifies the total duration for repeating an animation.
3555
+ [<Erase>]
3556
+ type repeatDur =
3557
+ /// This value specifies the duration in presentation time to repeat the animation.
3558
+ static member inline clockValue (duration: System.TimeSpan) =
3559
+ PropHelpers.createClockValue(duration)
3560
+ |> Interop.mkAttr "repeatDur"
3561
+ /// Indicates that the animation will be repeated indefinitely (i.e. until the document ends).
3562
+ static member inline indefinite = Interop.mkAttr "repeatDur" "indefinite"
3563
+
3564
+ /// Specifies whether or not an animation can restart.
3565
+ [<Erase>]
3566
+ type restart =
3567
+ /// Indicates that the animation can be restarted at any time.
3568
+ static member inline always = Interop.mkAttr "restart" "always"
3569
+ /// Indicates that the animation cannot be restarted for the time the document is loaded.
3570
+ static member inline never = Interop.mkAttr "restart" "never"
3571
+ /// Indicates that the animation can only be restarted when it is not active (i.e. after the active end).
3572
+ ///
3573
+ /// Attempts to restart the animation during its active duration are ignored.
3574
+ static member inline whenNotActive = Interop.mkAttr "restart" "whenNotActive"
3575
+
3576
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles
3577
+ [<Erase>]
3578
+ type role =
3579
+ /// A message with important, and usually time-sensitive, information.
3580
+ /// See related `alertdialog` and `status`.
3581
+ ///
3582
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#alert
3583
+ static member inline alert = Interop.mkAttr "role" "alert"
3584
+ /// A type of dialog that contains an alert message, where initial focus
3585
+ /// goes to an element within the dialog. See related `alert` and
3586
+ /// `dialog`.
3587
+ ///
3588
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#alertdialog
3589
+ static member inline alertDialog = Interop.mkAttr "role" "alertdialog"
3590
+ /// A region declared as a web application, as opposed to a web
3591
+ /// `document`.
3592
+ ///
3593
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#application
3594
+ static member inline application = Interop.mkAttr "role" "application"
3595
+ /// A section of a page that consists of a composition that forms an
3596
+ /// independent part of a document, page, or site.
3597
+ ///
3598
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#article
3599
+ static member inline article = Interop.mkAttr "role" "article"
3600
+ /// A region that contains mostly site-oriented content, rather than
3601
+ /// page-specific content.
3602
+ ///
3603
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#banner
3604
+ static member inline banner = Interop.mkAttr "role" "banner"
3605
+ /// An input that allows for user-triggered actions when clicked or
3606
+ /// pressed. See related `link`.
3607
+ ///
3608
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#button
3609
+ static member inline button = Interop.mkAttr "role" "button"
3610
+ /// A checkable input that has three possible values: `true`, `false`,
3611
+ /// or `mixed`.
3612
+ ///
3613
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#checkbox
3614
+ static member inline checkbox = Interop.mkAttr "role" "checkbox"
3615
+ /// A cell containing header information for a column.
3616
+ ///
3617
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#columnheader
3618
+ static member inline columnHeader = Interop.mkAttr "role" "columnheader"
3619
+ /// A presentation of a `select`; usually similar to a `textbox` where
3620
+ /// users can type ahead to select an option, or type to enter arbitrary
3621
+ /// text as a new item in the list. See related `listbox`.
3622
+ ///
3623
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#combobox
3624
+ static member inline comboBox = Interop.mkAttr "role" "combobox"
3625
+ /// A supporting section of the document, designed to be complementary
3626
+ /// to the main content at a similar level in the DOM hierarchy, but
3627
+ /// remains meaningful when separated from the main content.
3628
+ ///
3629
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#complementary
3630
+ static member inline complementary = Interop.mkAttr "role" "complementary"
3631
+ /// A large perceivable region that contains information about the
3632
+ /// parent document.
3633
+ ///
3634
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#contentinfo
3635
+ static member inline contentInfo = Interop.mkAttr "role" "contentinfo"
3636
+ /// A definition of a term or concept.
3637
+ ///
3638
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#definition
3639
+ static member inline definition = Interop.mkAttr "role" "definition"
3640
+ /// A dialog is an application window that is designed to interrupt the
3641
+ /// current processing of an application in order to prompt the user to
3642
+ /// enter information or require a response. See related `alertdialog`.
3643
+ ///
3644
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#dialog
3645
+ static member inline dialog = Interop.mkAttr "role" "dialog"
3646
+ /// A list of references to members of a group, such as a static table
3647
+ /// of contents.
3648
+ ///
3649
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#directory
3650
+ static member inline directory = Interop.mkAttr "role" "directory"
3651
+ /// A region containing related information that is declared as document
3652
+ /// content, as opposed to a web application.
3653
+ ///
3654
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#document
3655
+ static member inline document = Interop.mkAttr "role" "document"
3656
+ /// A `landmark` region that contains a collection of items and objects
3657
+ /// that, as a whole, combine to create a form. See related search.
3658
+ ///
3659
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#form
3660
+ static member inline form = Interop.mkAttr "role" "form"
3661
+ /// A grid is an interactive control which contains cells of tabular
3662
+ /// data arranged in rows and columns, like a table.
3663
+ ///
3664
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#grid
3665
+ static member inline grid = Interop.mkAttr "role" "grid"
3666
+ /// A cell in a grid or treegrid.
3667
+ ///
3668
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#gridcell
3669
+ static member inline gridCell = Interop.mkAttr "role" "gridcell"
3670
+ /// A set of user interface objects which are not intended to be
3671
+ /// included in a page summary or table of contents by assistive
3672
+ /// technologies.
3673
+ ///
3674
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#group
3675
+ static member inline group = Interop.mkAttr "role" "group"
3676
+ /// A heading for a section of the page.
3677
+ ///
3678
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#heading
3679
+ static member inline heading = Interop.mkAttr "role" "heading"
3680
+ /// A container for a collection of elements that form an image.
3681
+ ///
3682
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#img
3683
+ static member inline img = Interop.mkAttr "role" "img"
3684
+ /// An interactive reference to an internal or external resource that,
3685
+ /// when activated, causes the user agent to navigate to that resource.
3686
+ /// See related `button`.
3687
+ ///
3688
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#link
3689
+ static member inline link = Interop.mkAttr "role" "link"
3690
+ /// A group of non-interactive list items. See related `listbox`.
3691
+ ///
3692
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#list
3693
+ static member inline list = Interop.mkAttr "role" "list"
3694
+ /// A widget that allows the user to select one or more items from a
3695
+ /// list of choices. See related `combobox` and `list`.
3696
+ ///
3697
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#listbox
3698
+ static member inline listBox = Interop.mkAttr "role" "listbox"
3699
+ /// A single item in a list or directory.
3700
+ ///
3701
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#listitem
3702
+ static member inline listItem = Interop.mkAttr "role" "listitem"
3703
+ /// A type of live region where new information is added in meaningful
3704
+ /// order and old information may disappear. See related `marquee`.
3705
+ ///
3706
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#log
3707
+ static member inline log = Interop.mkAttr "role" "log"
3708
+ /// The main content of a document.
3709
+ ///
3710
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#main
3711
+ static member inline main = Interop.mkAttr "role" "main"
3712
+ /// A type of live region where non-essential information changes
3713
+ /// frequently. See related `log`.
3714
+ ///
3715
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#marquee
3716
+ static member inline marquee = Interop.mkAttr "role" "marquee"
3717
+ /// Content that represents a mathematical expression.
3718
+ ///
3719
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#math
3720
+ static member inline math = Interop.mkAttr "role" "math"
3721
+ /// A type of widget that offers a list of choices to the user.
3722
+ ///
3723
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#menu
3724
+ static member inline menu = Interop.mkAttr "role" "menu"
3725
+ /// A presentation of `menu` that usually remains visible and is usually
3726
+ /// presented horizontally.
3727
+ ///
3728
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#menubar
3729
+ static member inline menuBar = Interop.mkAttr "role" "menubar"
3730
+ /// An option in a set of choices contained by a `menu` or `menubar`.
3731
+ ///
3732
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#menuitem
3733
+ static member inline menuItem = Interop.mkAttr "role" "menuitem"
3734
+ /// A `menuitem` with a checkable state whose possible values are
3735
+ /// `true`, `false`, or `mixed`.
3736
+ ///
3737
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#menuitemcheckbox
3738
+ static member inline menuItemCheckbox = Interop.mkAttr "role" "menuitemcheckbox"
3739
+ /// A checkable menuitem in a set of elements with role `menuitemradio`,
3740
+ /// only one of which can be checked at a time.
3741
+ ///
3742
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#menuitemradio
3743
+ static member inline menuItemRadio = Interop.mkAttr "role" "menuitemradio"
3744
+ /// A collection of navigational elements (usually links) for navigating
3745
+ /// the document or related documents.
3746
+ ///
3747
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#navigation
3748
+ static member inline navigation = Interop.mkAttr "role" "navigation"
3749
+ /// A section whose content is parenthetic or ancillary to the main
3750
+ /// content of the resource.
3751
+ ///
3752
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#note
3753
+ static member inline note = Interop.mkAttr "role" "note"
3754
+ /// A selectable item in a `select` list.
3755
+ ///
3756
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#option
3757
+ static member inline option = Interop.mkAttr "role" "option"
3758
+ /// An element whose implicit native role semantics will not be mapped
3759
+ /// to the accessibility API.
3760
+ ///
3761
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#presentation
3762
+ static member inline presentation = Interop.mkAttr "role" "presentation"
3763
+ /// An element that displays the progress status for tasks that take a
3764
+ /// long time.
3765
+ ///
3766
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#progressbar
3767
+ static member inline progressBar = Interop.mkAttr "role" "progressbar"
3768
+ /// A checkable input in a group of elements with role radio, only one
3769
+ /// of which can be checked at a time.
3770
+ ///
3771
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#radio
3772
+ static member inline radio = Interop.mkAttr "role" "radio"
3773
+ /// A group of radio buttons.
3774
+ ///
3775
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#radiogroup
3776
+ static member inline radioGroup = Interop.mkAttr "role" "radiogroup"
3777
+ /// A large perceivable section of a web page or document, that is
3778
+ /// important enough to be included in a page summary or table of
3779
+ /// contents, for example, an area of the page containing live sporting
3780
+ /// event statistics.
3781
+ ///
3782
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#region
3783
+ static member inline region = Interop.mkAttr "role" "region"
3784
+ /// A row of cells in a grid.
3785
+ ///
3786
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#row
3787
+ static member inline row = Interop.mkAttr "role" "row"
3788
+ /// A group containing one or more row elements in a grid.
3789
+ ///
3790
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#rowgroup
3791
+ static member inline rowGroup = Interop.mkAttr "role" "rowgroup"
3792
+ /// A cell containing header information for a row in a grid.
3793
+ ///
3794
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#rowheader
3795
+ static member inline rowHeader = Interop.mkAttr "role" "rowheader"
3796
+ /// A graphical object that controls the scrolling of content within a
3797
+ /// viewing area, regardless of whether the content is fully displayed
3798
+ /// within the viewing area.
3799
+ ///
3800
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#scrollbar
3801
+ static member inline scrollBar = Interop.mkAttr "role" "scrollbar"
3802
+ /// A divider that separates and distinguishes sections of content or
3803
+ /// groups of menuitems.
3804
+ ///
3805
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#separator
3806
+ static member inline separator = Interop.mkAttr "role" "separator"
3807
+ /// A `landmark` region that contains a collection of items and objects
3808
+ /// that, as a whole, combine to create a search facility. See related
3809
+ /// `form`.
3810
+ ///
3811
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#search
3812
+ static member inline search = Interop.mkAttr "role" "search"
3813
+ /// A user input where the user selects a value from within a given
3814
+ /// range.
3815
+ ///
3816
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#slider
3817
+ static member inline slider = Interop.mkAttr "role" "slider"
3818
+ /// A form of `range` that expects the user to select from among
3819
+ /// discrete choices.
3820
+ ///
3821
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#spinbutton
3822
+ static member inline spinButton = Interop.mkAttr "role" "spinbutton"
3823
+ /// A container whose content is advisory information for the user but
3824
+ /// is not important enough to justify an alert, often but not
3825
+ /// necessarily presented as a status bar. See related `alert`.
3826
+ ///
3827
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#status
3828
+ static member inline status = Interop.mkAttr "role" "status"
3829
+ /// A grouping label providing a mechanism for selecting the tab content
3830
+ /// that is to be rendered to the user.
3831
+ ///
3832
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#tab
3833
+ static member inline tab = Interop.mkAttr "role" "tab"
3834
+ /// A list of `tab` elements, which are references to `tabpanel`
3835
+ /// elements.
3836
+ ///
3837
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#tablist
3838
+ static member inline tabList = Interop.mkAttr "role" "tablist"
3839
+ /// A container for the resources associated with a `tab`, where each
3840
+ /// `tab` is contained in a `tablist`.
3841
+ ///
3842
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#tabpanel
3843
+ static member inline tabPanel = Interop.mkAttr "role" "tabpanel"
3844
+ /// Input that allows free-form text as its value.
3845
+ ///
3846
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#textbox
3847
+ static member inline textBox = Interop.mkAttr "role" "textbox"
3848
+ /// A type of live region containing a numerical counter which indicates
3849
+ /// an amount of elapsed time from a start point, or the time remaining
3850
+ /// until an end point.
3851
+ ///
3852
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#timer
3853
+ static member inline timer = Interop.mkAttr "role" "timer"
3854
+ /// A collection of commonly used function buttons or controls
3855
+ /// represented in compact visual form.
3856
+ ///
3857
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#toolbar
3858
+ static member inline toolbar = Interop.mkAttr "role" "toolbar"
3859
+ /// A contextual popup that displays a description for an element.
3860
+ ///
3861
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#tooltip
3862
+ static member inline tooltip = Interop.mkAttr "role" "tooltip"
3863
+ /// A type of `list` that may contain sub-level nested groups that can
3864
+ /// be collapsed and expanded.
3865
+ ///
3866
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#tree
3867
+ static member inline tree = Interop.mkAttr "role" "tree"
3868
+ /// A `grid` whose rows can be expanded and collapsed in the same manner
3869
+ /// as for a `tree`.
3870
+ ///
3871
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#treegrid
3872
+ static member inline treeGrid = Interop.mkAttr "role" "treegrid"
3873
+ /// An option item of a `tree`. This is an element within a tree that
3874
+ /// may be expanded or collapsed if it contains a sub-level group of
3875
+ /// `treeitem` elements.
3876
+ ///
3877
+ /// https://www.w3.org/WAI/PF/aria-1.1/roles#treeitem
3878
+ static member inline treeItem = Interop.mkAttr "role" "treeitem"
3879
+
3880
+ [<Erase>]
3881
+ type selectionDirection =
3882
+ /// For the opposite direction.
3883
+ static member inline backward = Interop.mkAttr "selectionDirection" "backward"
3884
+ /// If selection was performed in the start-to-end direction of the current locale.
3885
+ static member inline forward = Interop.mkAttr "selectionDirection" "forward"
3886
+ /// If the direction is unknown.
3887
+ static member inline none = Interop.mkAttr "selectionDirection" "none"
3888
+
3889
+ /// The shape of the associated hot spot.
3890
+ [<Erase>]
3891
+ type shape =
3892
+ static member inline rect = Interop.mkAttr "shape" "rect"
3893
+ static member inline circle = Interop.mkAttr "shape" "circle"
3894
+ static member inline poly = Interop.mkAttr "shape" "poly"
3895
+
3896
+ /// The shape of the associated hot spot.
3897
+ [<Erase>]
3898
+ type spacing =
3899
+ /// Indicates that the user agent should use text-on-a-path layout algorithms to adjust
3900
+ /// the spacing between typographic characters in order to achieve visually appealing results.
3901
+ static member inline auto = Interop.mkAttr "spacing" "auto"
3902
+ /// Indicates that the typographic characters should be rendered exactly according to the
3903
+ /// spacing rules as specified by the layout rules for text-on-a-path.
3904
+ static member inline exact = Interop.mkAttr "spacing" "exact"
3905
+
3906
+ /// Determines how a shape is filled beyond the defined edges of a gradient.
3907
+ [<Erase>]
3908
+ type spreadMethod =
3909
+ /// Indicates that the final color of the gradient fills the shape beyond the gradient's edges.
3910
+ static member inline pad = Interop.mkAttr "spreadMethod" "pad"
3911
+ /// Indicates that the gradient repeats in reverse beyond its edges.
3912
+ static member inline reflect = Interop.mkAttr "spreadMethod" "reflect"
3913
+ /// Specifies that the gradient repeats in the original order beyond its edges.
3914
+ static member inline repeat = Interop.mkAttr "spreadMethod" "repeat"
3915
+
3916
+ /// Defines how the Perlin Noise tiles behave at the border.
3917
+ [<Erase>]
3918
+ type stitchTiles =
3919
+ /// Indicates that no attempt is made to achieve smooth transitions at the border of tiles which
3920
+ /// contain a turbulence function.
3921
+ ///
3922
+ /// Sometimes the result will show clear discontinuities at the tile borders.
3923
+ static member inline noStitch = Interop.mkAttr "stitchTiles" "noStitch"
3924
+ /// Indicates that the user agent will automatically adjust the x and y values of the base
3925
+ /// frequency such that the <feTurbulence> node’s width and height (i.e., the width and
3926
+ /// height of the current subregion) contain an integral number of the tile width and height
3927
+ /// for the first octave.
3928
+ static member inline stitch = Interop.mkAttr "stitchTiles" "stitch"
3929
+
3930
+ [<Erase>]
3931
+ type target =
3932
+ /// Opens the linked document in a new window or tab.
3933
+ static member inline blank = Interop.mkAttr "target" "_blank"
3934
+ /// Opens the linked document in the parent frame.
3935
+ static member inline parent = Interop.mkAttr "target" "_parent"
3936
+ /// Opens the linked document in the same frame as it was clicked (this is default).
3937
+ static member inline self = Interop.mkAttr "target" "_self"
3938
+ /// Opens the linked document in the full body of the window.
3939
+ static member inline top = Interop.mkAttr "target" "_top"
3940
+
3941
+ /// The `text-anchor` attribute is used to align (start-, middle- or
3942
+ /// end-alignment) a string of pre-formatted text or auto-wrapped text where
3943
+ /// the wrapping area is determined from the `inline-size` property relative
3944
+ /// to a given point. It is not applicable to other types of auto-wrapped
3945
+ /// text. For those cases you should use `text-align`. For multi-line text,
3946
+ /// the alignment takes place for each line.
3947
+ ///
3948
+ /// The `text-anchor` attribute is applied to each individual text chunk
3949
+ /// within a given `<text>` element. Each text chunk has an initial current
3950
+ /// text position, which represents the point in the user coordinate system
3951
+ /// resulting from (depending on context) application of the `x` and `y`
3952
+ /// attributes on the `<text>` element, any `x` or `y` attribute values on a
3953
+ /// `<tspan>`, `<tref>` or `<altGlyph>` element assigned explicitly to the
3954
+ /// first rendered character in a text chunk, or determination of the
3955
+ /// initial current text position for a `<textPath>` element.
3956
+ [<Erase>]
3957
+ type textAnchor =
3958
+ /// The rendered characters are shifted such that the end of the
3959
+ /// resulting rendered text (final current text position before applying
3960
+ /// the `text-anchor` property) is at the initial current text position.
3961
+ /// For an element with a `direction` property value of `ltr` (typical
3962
+ /// for most European languages), the right side of the text is rendered
3963
+ /// at the initial text position. For an element with a `direction`
3964
+ /// property value of `rtl` (typical for Arabic and Hebrew), the left
3965
+ /// side of the text is rendered at the initial text position. For an
3966
+ /// element with a vertical primary text direction (often typical for
3967
+ /// Asian text), the bottom of the text is rendered at the initial text
3968
+ /// position.
3969
+ static member inline endOfText = Interop.mkAttr "textAnchor" "end"
3970
+ /// The rendered characters are aligned such that the middle of the text
3971
+ /// string is at the current text position. (For text on a path,
3972
+ /// conceptually the text string is first laid out in a straight line.
3973
+ /// The midpoint between the start of the text string and the end of the
3974
+ /// text string is determined. Then, the text string is mapped onto the
3975
+ /// path with this midpoint placed at the current text position.)
3976
+ static member inline middle = Interop.mkAttr "textAnchor" "middle"
3977
+ /// The rendered characters are aligned such that the start of the text
3978
+ /// string is at the initial current text position. For an element with
3979
+ /// a `direction` property value of `ltr` (typical for most European
3980
+ /// languages), the left side of the text is rendered at the initial
3981
+ /// text position. For an element with a `direction` property value of
3982
+ /// `rtl` (typical for Arabic and Hebrew), the right side of the text is
3983
+ /// rendered at the initial text position. For an element with a
3984
+ /// vertical primary text direction (often typical for Asian text), the
3985
+ /// top side of the text is rendered at the initial text position.
3986
+ static member inline startOfText = Interop.mkAttr "textAnchor" "start"
3987
+
3988
+ [<Erase>]
3989
+ type type' =
3990
+ /// Defines a clickable button (mostly used with a JavaScript code to activate a script)
3991
+ static member inline button = Interop.mkAttr "type" "button"
3992
+ /// Defines a checkbox
3993
+ static member inline checkbox = Interop.mkAttr "type" "checkbox"
3994
+ /// Defines a color picker
3995
+ static member inline color = Interop.mkAttr "type" "color"
3996
+ /// Defines a date control with year, month and day (no time)
3997
+ static member inline date = Interop.mkAttr "type" "date"
3998
+ /// Defines a date and time control (year, month, day, time (no timezone)
3999
+ static member inline dateTimeLocal = Interop.mkAttr "type" "datetime-local"
4000
+ /// Defines a field for an e-mail address
4001
+ static member inline email = Interop.mkAttr "type" "email"
4002
+ /// Defines a file-select field and a "Browse" button (for file uploads)
4003
+ static member inline file = Interop.mkAttr "type" "file"
4004
+ /// Defines a hidden input field
4005
+ static member inline hidden = Interop.mkAttr "type" "hidden"
4006
+ /// Defines an image as the submit button
4007
+ static member inline image = Interop.mkAttr "type" "image"
4008
+ /// Defines a month and year control (no timezone)
4009
+ static member inline month = Interop.mkAttr "type" "month"
4010
+ /// Defines a field for entering a number
4011
+ static member inline number = Interop.mkAttr "type" "number"
4012
+ /// Defines a password field
4013
+ static member inline password = Interop.mkAttr "type" "password"
4014
+ /// Defines a radio button
4015
+ static member inline radio = Interop.mkAttr "type" "radio"
4016
+ /// Defines a range control (like a slider control)
4017
+ static member inline range = Interop.mkAttr "type" "range"
4018
+ /// Defines a reset button
4019
+ static member inline reset = Interop.mkAttr "type" "reset"
4020
+ /// Defines a text field for entering a search string
4021
+ static member inline search = Interop.mkAttr "type" "search"
4022
+ /// Defines a submit button
4023
+ static member inline submit = Interop.mkAttr "type" "submit"
4024
+ /// Defines a field for entering a telephone number
4025
+ static member inline tel = Interop.mkAttr "type" "tel"
4026
+ /// Default. Defines a single-line text field
4027
+ static member inline text = Interop.mkAttr "type" "text"
4028
+ /// Defines a control for entering a time (no timezone)
4029
+ static member inline time = Interop.mkAttr "type" "time"
4030
+ /// Defines a field for entering a URL
4031
+ static member inline url = Interop.mkAttr "type" "url"
4032
+ /// Defines a week and year control (no timezone)
4033
+ static member inline week = Interop.mkAttr "type" "week"
4034
+
4035
+ /// Indicates how the control wraps text.
4036
+ [<Erase>]
4037
+ type wrap =
4038
+ /// The browser ensures that all line breaks in the value consist of a CR+LF pair,
4039
+ /// but does not insert any additional line breaks.
4040
+ static member inline soft = Interop.mkAttr "wrap" "soft"
4041
+ /// The browser automatically inserts line breaks (CR+LF)
4042
+ /// so that each line has no more than the width of the control;
4043
+ /// the cols attribute must also be specified for this to take effect.
4044
+ static member inline hard = Interop.mkAttr "wrap" "hard"
4045
+ /// Like soft but changes appearance to white-space: pre
4046
+ /// so line segments exceeding cols are not wrapped and the `<textarea>` becomes horizontally scrollable.
4047
+ /// WARNING: This API has not been standardized.
4048
+ static member inline off = Interop.mkAttr "wrap" "off"
4049
+
4050
+ /// Indicates which color channel from in2 to use to displace the pixels in in along the x-axis.
4051
+ [<Erase>]
4052
+ type xChannelSelector =
4053
+ /// Specifies that the alpha channel of the input image defined in in2 will be used to displace
4054
+ /// the pixels of the input image defined in in along the x-axis.
4055
+ static member inline A = Interop.mkAttr "xChannelSelector" "A"
4056
+ /// Specifies that the blue color channel of the input image defined in in2 will be used to
4057
+ /// displace the pixels of the input image defined in in along the x-axis.
4058
+ static member inline B = Interop.mkAttr "xChannelSelector" "B"
4059
+ /// Specifies that the green color channel of the input image defined in in2 will be used to
4060
+ /// displace the pixels of the input image defined in in along the x-axis.
4061
+ static member inline G = Interop.mkAttr "xChannelSelector" "G"
4062
+ /// Specifies that the red color channel of the input image defined in in2 will be used to
4063
+ /// displace the pixels of the input image defined in in along the x-axis.
4064
+ static member inline R = Interop.mkAttr "xChannelSelector" "R"
4065
+
4066
+ /// Indicates which color channel from in2 to use to displace the pixels in in along the y-axis.
4067
+ [<Erase>]
4068
+ type yChannelSelector =
4069
+ /// Specifies that the alpha channel of the input image defined in in2 will be used to displace
4070
+ /// the pixels of the input image defined in in along the y-axis.
4071
+ static member inline A = Interop.mkAttr "yChannelSelector" "A"
4072
+ /// Specifies that the blue color channel of the input image defined in in2 will be used to
4073
+ /// displace the pixels of the input image defined in in along the y-axis.
4074
+ static member inline B = Interop.mkAttr "yChannelSelector" "B"
4075
+ /// Specifies that the green color channel of the input image defined in in2 will be used to
4076
+ /// displace the pixels of the input image defined in in along the y-axis.
4077
+ static member inline G = Interop.mkAttr "yChannelSelector" "G"
4078
+ /// Specifies that the red color channel of the input image defined in in2 will be used to
4079
+ /// displace the pixels of the input image defined in in along the y-axis.
4080
+ static member inline R = Interop.mkAttr "yChannelSelector" "R"