aspose-html-net 24.6.0__py3-none-win32.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. .__pyi_patched +0 -0
  2. aspose/__init__.py +139 -0
  3. aspose/__pyinstaller/__init__.pyi +1 -0
  4. aspose/__pyinstaller/hook-aspose.py +10 -0
  5. aspose/assemblies/html/Aspose.HTML.dll +0 -0
  6. aspose/assemblies/html/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  7. aspose/assemblies/html/Microsoft.Win32.SystemEvents.dll +0 -0
  8. aspose/assemblies/html/System.Diagnostics.DiagnosticSource.dll +0 -0
  9. aspose/assemblies/html/System.Drawing.Common.dll +0 -0
  10. aspose/assemblies/html/System.Runtime.CompilerServices.Unsafe.dll +0 -0
  11. aspose/assemblies/html/System.Security.AccessControl.dll +0 -0
  12. aspose/assemblies/html/System.Security.Permissions.dll +0 -0
  13. aspose/assemblies/html/System.Security.Principal.Windows.dll +0 -0
  14. aspose/assemblies/html/System.Windows.Extensions.dll +0 -0
  15. aspose/assemblies/html/WrpInterop.Aspose.Html.dll +0 -0
  16. aspose/assemblies/pycore/WrpInterop.Aspose.PyCore.dll +0 -0
  17. aspose/assemblies/pydrawing/Microsoft.Win32.SystemEvents.dll +0 -0
  18. aspose/assemblies/pydrawing/System.Drawing.Common.dll +0 -0
  19. aspose/assemblies/pydrawing/WrpInterop.Aspose.PyDrawing.dll +0 -0
  20. aspose/assemblies/pygc/Aspose.PyGC.dll +0 -0
  21. aspose/assemblies/pyreflection/WrpInterop.Aspose.PyReflection.dll +0 -0
  22. aspose/html/__init__.pyi +40753 -0
  23. aspose/html/__pyinstaller/__init__.pyi +1 -0
  24. aspose/html/__pyinstaller/hook-aspose.html.py +9 -0
  25. aspose/html/accessibility/__init__.pyi +469 -0
  26. aspose/html/accessibility/results/__init__.pyi +106 -0
  27. aspose/html/accessibility/saving/__init__.pyi +78 -0
  28. aspose/html/collections/__init__.pyi +246 -0
  29. aspose/html/converters/__init__.pyi +2793 -0
  30. aspose/html/diagnostics/__init__.pyi +72 -0
  31. aspose/html/dom/__init__.pyi +6456 -0
  32. aspose/html/dom/attributes/__init__.pyi +144 -0
  33. aspose/html/dom/canvas/__init__.pyi +1103 -0
  34. aspose/html/dom/css/__init__.pyi +3487 -0
  35. aspose/html/dom/events/__init__.pyi +1397 -0
  36. aspose/html/dom/mutations/__init__.pyi +259 -0
  37. aspose/html/dom/svg/__init__.pyi +30800 -0
  38. aspose/html/dom/svg/datatypes/__init__.pyi +1247 -0
  39. aspose/html/dom/svg/events/__init__.pyi +279 -0
  40. aspose/html/dom/svg/filters/__init__.pyi +15600 -0
  41. aspose/html/dom/svg/paths/__init__.pyi +3466 -0
  42. aspose/html/dom/svg/saving/__init__.pyi +83 -0
  43. aspose/html/dom/traversal/__init__.pyi +461 -0
  44. aspose/html/dom/traversal/filters/__init__.pyi +200 -0
  45. aspose/html/dom/views/__init__.pyi +79 -0
  46. aspose/html/dom/xpath/__init__.pyi +317 -0
  47. aspose/html/drawing/__init__.pyi +2720 -0
  48. aspose/html/forms/__init__.pyi +998 -0
  49. aspose/html/io/__init__.pyi +219 -0
  50. aspose/html/loading/__init__.pyi +68 -0
  51. aspose/html/net/__init__.pyi +513 -0
  52. aspose/html/net/headers/__init__.pyi +147 -0
  53. aspose/html/net/messagefilters/__init__.pyi +67 -0
  54. aspose/html/net/messagehandlers/__init__.pyi +103 -0
  55. aspose/html/rendering/__init__.pyi +797 -0
  56. aspose/html/rendering/doc/__init__.pyi +282 -0
  57. aspose/html/rendering/fonts/__init__.pyi +90 -0
  58. aspose/html/rendering/image/__init__.pyi +360 -0
  59. aspose/html/rendering/pdf/__init__.pyi +375 -0
  60. aspose/html/rendering/pdf/encryption/__init__.pyi +171 -0
  61. aspose/html/rendering/xps/__init__.pyi +237 -0
  62. aspose/html/saving/__init__.pyi +751 -0
  63. aspose/html/saving/resourcehandlers/__init__.pyi +95 -0
  64. aspose/html/services/__init__.pyi +167 -0
  65. aspose/html/toolkit/__init__.pyi +55 -0
  66. aspose/html/toolkit/markdown/__init__.pyi +55 -0
  67. aspose/html/toolkit/markdown/syntax/__init__.pyi +6184 -0
  68. aspose/html/toolkit/markdown/syntax/extensions/__init__.pyi +549 -0
  69. aspose/html/toolkit/markdown/syntax/parser/__init__.pyi +631 -0
  70. aspose/html/toolkit/markdown/syntax/parser/extensions/__init__.pyi +55 -0
  71. aspose/html/toolkit/markdown/syntax/parser/extensions/gfm/__init__.pyi +66 -0
  72. aspose/html/toolkit/markdown/syntax/text/__init__.pyi +358 -0
  73. aspose/html/toolkit/optimizers/__init__.pyi +233 -0
  74. aspose/html/window/__init__.pyi +490 -0
  75. aspose/html.cp310-win32.pyd +0 -0
  76. aspose/html.cp311-win32.pyd +0 -0
  77. aspose/html.cp35-win32.pyd +0 -0
  78. aspose/html.cp36-win32.pyd +0 -0
  79. aspose/html.cp37-win32.pyd +0 -0
  80. aspose/html.cp38-win32.pyd +0 -0
  81. aspose/html.cp39-win32.pyd +0 -0
  82. aspose/netcore/netcore3.1/API-MS-Win-core-xstate-l2-1-0.dll +0 -0
  83. aspose/netcore/netcore3.1/Microsoft.CSharp.dll +0 -0
  84. aspose/netcore/netcore3.1/Microsoft.DiaSymReader.Native.x86.dll +0 -0
  85. aspose/netcore/netcore3.1/Microsoft.VisualBasic.Core.dll +0 -0
  86. aspose/netcore/netcore3.1/Microsoft.VisualBasic.dll +0 -0
  87. aspose/netcore/netcore3.1/Microsoft.Win32.Primitives.dll +0 -0
  88. aspose/netcore/netcore3.1/Microsoft.Win32.Registry.dll +0 -0
  89. aspose/netcore/netcore3.1/SOS_README.md +5 -0
  90. aspose/netcore/netcore3.1/System.AppContext.dll +0 -0
  91. aspose/netcore/netcore3.1/System.Buffers.dll +0 -0
  92. aspose/netcore/netcore3.1/System.Collections.Concurrent.dll +0 -0
  93. aspose/netcore/netcore3.1/System.Collections.Immutable.dll +0 -0
  94. aspose/netcore/netcore3.1/System.Collections.NonGeneric.dll +0 -0
  95. aspose/netcore/netcore3.1/System.Collections.Specialized.dll +0 -0
  96. aspose/netcore/netcore3.1/System.Collections.dll +0 -0
  97. aspose/netcore/netcore3.1/System.ComponentModel.Annotations.dll +0 -0
  98. aspose/netcore/netcore3.1/System.ComponentModel.DataAnnotations.dll +0 -0
  99. aspose/netcore/netcore3.1/System.ComponentModel.EventBasedAsync.dll +0 -0
  100. aspose/netcore/netcore3.1/System.ComponentModel.Primitives.dll +0 -0
  101. aspose/netcore/netcore3.1/System.ComponentModel.TypeConverter.dll +0 -0
  102. aspose/netcore/netcore3.1/System.ComponentModel.dll +0 -0
  103. aspose/netcore/netcore3.1/System.Configuration.dll +0 -0
  104. aspose/netcore/netcore3.1/System.Console.dll +0 -0
  105. aspose/netcore/netcore3.1/System.Core.dll +0 -0
  106. aspose/netcore/netcore3.1/System.Data.Common.dll +0 -0
  107. aspose/netcore/netcore3.1/System.Data.DataSetExtensions.dll +0 -0
  108. aspose/netcore/netcore3.1/System.Data.dll +0 -0
  109. aspose/netcore/netcore3.1/System.Diagnostics.Contracts.dll +0 -0
  110. aspose/netcore/netcore3.1/System.Diagnostics.Debug.dll +0 -0
  111. aspose/netcore/netcore3.1/System.Diagnostics.DiagnosticSource.dll +0 -0
  112. aspose/netcore/netcore3.1/System.Diagnostics.FileVersionInfo.dll +0 -0
  113. aspose/netcore/netcore3.1/System.Diagnostics.Process.dll +0 -0
  114. aspose/netcore/netcore3.1/System.Diagnostics.StackTrace.dll +0 -0
  115. aspose/netcore/netcore3.1/System.Diagnostics.TextWriterTraceListener.dll +0 -0
  116. aspose/netcore/netcore3.1/System.Diagnostics.Tools.dll +0 -0
  117. aspose/netcore/netcore3.1/System.Diagnostics.TraceSource.dll +0 -0
  118. aspose/netcore/netcore3.1/System.Diagnostics.Tracing.dll +0 -0
  119. aspose/netcore/netcore3.1/System.Drawing.Primitives.dll +0 -0
  120. aspose/netcore/netcore3.1/System.Drawing.dll +0 -0
  121. aspose/netcore/netcore3.1/System.Dynamic.Runtime.dll +0 -0
  122. aspose/netcore/netcore3.1/System.Globalization.Calendars.dll +0 -0
  123. aspose/netcore/netcore3.1/System.Globalization.Extensions.dll +0 -0
  124. aspose/netcore/netcore3.1/System.Globalization.dll +0 -0
  125. aspose/netcore/netcore3.1/System.IO.Compression.Brotli.dll +0 -0
  126. aspose/netcore/netcore3.1/System.IO.Compression.FileSystem.dll +0 -0
  127. aspose/netcore/netcore3.1/System.IO.Compression.ZipFile.dll +0 -0
  128. aspose/netcore/netcore3.1/System.IO.Compression.dll +0 -0
  129. aspose/netcore/netcore3.1/System.IO.FileSystem.AccessControl.dll +0 -0
  130. aspose/netcore/netcore3.1/System.IO.FileSystem.DriveInfo.dll +0 -0
  131. aspose/netcore/netcore3.1/System.IO.FileSystem.Primitives.dll +0 -0
  132. aspose/netcore/netcore3.1/System.IO.FileSystem.Watcher.dll +0 -0
  133. aspose/netcore/netcore3.1/System.IO.FileSystem.dll +0 -0
  134. aspose/netcore/netcore3.1/System.IO.IsolatedStorage.dll +0 -0
  135. aspose/netcore/netcore3.1/System.IO.MemoryMappedFiles.dll +0 -0
  136. aspose/netcore/netcore3.1/System.IO.Pipes.AccessControl.dll +0 -0
  137. aspose/netcore/netcore3.1/System.IO.Pipes.dll +0 -0
  138. aspose/netcore/netcore3.1/System.IO.UnmanagedMemoryStream.dll +0 -0
  139. aspose/netcore/netcore3.1/System.IO.dll +0 -0
  140. aspose/netcore/netcore3.1/System.Linq.Expressions.dll +0 -0
  141. aspose/netcore/netcore3.1/System.Linq.Parallel.dll +0 -0
  142. aspose/netcore/netcore3.1/System.Linq.Queryable.dll +0 -0
  143. aspose/netcore/netcore3.1/System.Linq.dll +0 -0
  144. aspose/netcore/netcore3.1/System.Memory.dll +0 -0
  145. aspose/netcore/netcore3.1/System.Net.Http.dll +0 -0
  146. aspose/netcore/netcore3.1/System.Net.HttpListener.dll +0 -0
  147. aspose/netcore/netcore3.1/System.Net.Mail.dll +0 -0
  148. aspose/netcore/netcore3.1/System.Net.NameResolution.dll +0 -0
  149. aspose/netcore/netcore3.1/System.Net.NetworkInformation.dll +0 -0
  150. aspose/netcore/netcore3.1/System.Net.Ping.dll +0 -0
  151. aspose/netcore/netcore3.1/System.Net.Primitives.dll +0 -0
  152. aspose/netcore/netcore3.1/System.Net.Requests.dll +0 -0
  153. aspose/netcore/netcore3.1/System.Net.Security.dll +0 -0
  154. aspose/netcore/netcore3.1/System.Net.ServicePoint.dll +0 -0
  155. aspose/netcore/netcore3.1/System.Net.Sockets.dll +0 -0
  156. aspose/netcore/netcore3.1/System.Net.WebClient.dll +0 -0
  157. aspose/netcore/netcore3.1/System.Net.WebHeaderCollection.dll +0 -0
  158. aspose/netcore/netcore3.1/System.Net.WebProxy.dll +0 -0
  159. aspose/netcore/netcore3.1/System.Net.WebSockets.Client.dll +0 -0
  160. aspose/netcore/netcore3.1/System.Net.WebSockets.dll +0 -0
  161. aspose/netcore/netcore3.1/System.Net.dll +0 -0
  162. aspose/netcore/netcore3.1/System.Numerics.Vectors.dll +0 -0
  163. aspose/netcore/netcore3.1/System.Numerics.dll +0 -0
  164. aspose/netcore/netcore3.1/System.ObjectModel.dll +0 -0
  165. aspose/netcore/netcore3.1/System.Private.CoreLib.dll +0 -0
  166. aspose/netcore/netcore3.1/System.Private.DataContractSerialization.dll +0 -0
  167. aspose/netcore/netcore3.1/System.Private.Uri.dll +0 -0
  168. aspose/netcore/netcore3.1/System.Private.Xml.Linq.dll +0 -0
  169. aspose/netcore/netcore3.1/System.Private.Xml.dll +0 -0
  170. aspose/netcore/netcore3.1/System.Reflection.DispatchProxy.dll +0 -0
  171. aspose/netcore/netcore3.1/System.Reflection.Emit.ILGeneration.dll +0 -0
  172. aspose/netcore/netcore3.1/System.Reflection.Emit.Lightweight.dll +0 -0
  173. aspose/netcore/netcore3.1/System.Reflection.Emit.dll +0 -0
  174. aspose/netcore/netcore3.1/System.Reflection.Extensions.dll +0 -0
  175. aspose/netcore/netcore3.1/System.Reflection.Metadata.dll +0 -0
  176. aspose/netcore/netcore3.1/System.Reflection.Primitives.dll +0 -0
  177. aspose/netcore/netcore3.1/System.Reflection.TypeExtensions.dll +0 -0
  178. aspose/netcore/netcore3.1/System.Reflection.dll +0 -0
  179. aspose/netcore/netcore3.1/System.Resources.Reader.dll +0 -0
  180. aspose/netcore/netcore3.1/System.Resources.ResourceManager.dll +0 -0
  181. aspose/netcore/netcore3.1/System.Resources.Writer.dll +0 -0
  182. aspose/netcore/netcore3.1/System.Runtime.CompilerServices.Unsafe.dll +0 -0
  183. aspose/netcore/netcore3.1/System.Runtime.CompilerServices.VisualC.dll +0 -0
  184. aspose/netcore/netcore3.1/System.Runtime.Extensions.dll +0 -0
  185. aspose/netcore/netcore3.1/System.Runtime.Handles.dll +0 -0
  186. aspose/netcore/netcore3.1/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
  187. aspose/netcore/netcore3.1/System.Runtime.InteropServices.WindowsRuntime.dll +0 -0
  188. aspose/netcore/netcore3.1/System.Runtime.InteropServices.dll +0 -0
  189. aspose/netcore/netcore3.1/System.Runtime.Intrinsics.dll +0 -0
  190. aspose/netcore/netcore3.1/System.Runtime.Loader.dll +0 -0
  191. aspose/netcore/netcore3.1/System.Runtime.Numerics.dll +0 -0
  192. aspose/netcore/netcore3.1/System.Runtime.Serialization.Formatters.dll +0 -0
  193. aspose/netcore/netcore3.1/System.Runtime.Serialization.Json.dll +0 -0
  194. aspose/netcore/netcore3.1/System.Runtime.Serialization.Primitives.dll +0 -0
  195. aspose/netcore/netcore3.1/System.Runtime.Serialization.Xml.dll +0 -0
  196. aspose/netcore/netcore3.1/System.Runtime.Serialization.dll +0 -0
  197. aspose/netcore/netcore3.1/System.Runtime.WindowsRuntime.UI.Xaml.dll +0 -0
  198. aspose/netcore/netcore3.1/System.Runtime.WindowsRuntime.dll +0 -0
  199. aspose/netcore/netcore3.1/System.Runtime.dll +0 -0
  200. aspose/netcore/netcore3.1/System.Security.AccessControl.dll +0 -0
  201. aspose/netcore/netcore3.1/System.Security.Claims.dll +0 -0
  202. aspose/netcore/netcore3.1/System.Security.Cryptography.Algorithms.dll +0 -0
  203. aspose/netcore/netcore3.1/System.Security.Cryptography.Cng.dll +0 -0
  204. aspose/netcore/netcore3.1/System.Security.Cryptography.Csp.dll +0 -0
  205. aspose/netcore/netcore3.1/System.Security.Cryptography.Encoding.dll +0 -0
  206. aspose/netcore/netcore3.1/System.Security.Cryptography.OpenSsl.dll +0 -0
  207. aspose/netcore/netcore3.1/System.Security.Cryptography.Primitives.dll +0 -0
  208. aspose/netcore/netcore3.1/System.Security.Cryptography.X509Certificates.dll +0 -0
  209. aspose/netcore/netcore3.1/System.Security.Principal.Windows.dll +0 -0
  210. aspose/netcore/netcore3.1/System.Security.Principal.dll +0 -0
  211. aspose/netcore/netcore3.1/System.Security.SecureString.dll +0 -0
  212. aspose/netcore/netcore3.1/System.Security.dll +0 -0
  213. aspose/netcore/netcore3.1/System.ServiceModel.Web.dll +0 -0
  214. aspose/netcore/netcore3.1/System.ServiceProcess.dll +0 -0
  215. aspose/netcore/netcore3.1/System.Text.Encoding.CodePages.dll +0 -0
  216. aspose/netcore/netcore3.1/System.Text.Encoding.Extensions.dll +0 -0
  217. aspose/netcore/netcore3.1/System.Text.Encoding.dll +0 -0
  218. aspose/netcore/netcore3.1/System.Text.Encodings.Web.dll +0 -0
  219. aspose/netcore/netcore3.1/System.Text.Json.dll +0 -0
  220. aspose/netcore/netcore3.1/System.Text.RegularExpressions.dll +0 -0
  221. aspose/netcore/netcore3.1/System.Threading.Channels.dll +0 -0
  222. aspose/netcore/netcore3.1/System.Threading.Overlapped.dll +0 -0
  223. aspose/netcore/netcore3.1/System.Threading.Tasks.Dataflow.dll +0 -0
  224. aspose/netcore/netcore3.1/System.Threading.Tasks.Extensions.dll +0 -0
  225. aspose/netcore/netcore3.1/System.Threading.Tasks.Parallel.dll +0 -0
  226. aspose/netcore/netcore3.1/System.Threading.Tasks.dll +0 -0
  227. aspose/netcore/netcore3.1/System.Threading.Thread.dll +0 -0
  228. aspose/netcore/netcore3.1/System.Threading.ThreadPool.dll +0 -0
  229. aspose/netcore/netcore3.1/System.Threading.Timer.dll +0 -0
  230. aspose/netcore/netcore3.1/System.Threading.dll +0 -0
  231. aspose/netcore/netcore3.1/System.Transactions.Local.dll +0 -0
  232. aspose/netcore/netcore3.1/System.Transactions.dll +0 -0
  233. aspose/netcore/netcore3.1/System.ValueTuple.dll +0 -0
  234. aspose/netcore/netcore3.1/System.Web.HttpUtility.dll +0 -0
  235. aspose/netcore/netcore3.1/System.Web.dll +0 -0
  236. aspose/netcore/netcore3.1/System.Windows.dll +0 -0
  237. aspose/netcore/netcore3.1/System.Xml.Linq.dll +0 -0
  238. aspose/netcore/netcore3.1/System.Xml.ReaderWriter.dll +0 -0
  239. aspose/netcore/netcore3.1/System.Xml.Serialization.dll +0 -0
  240. aspose/netcore/netcore3.1/System.Xml.XDocument.dll +0 -0
  241. aspose/netcore/netcore3.1/System.Xml.XPath.XDocument.dll +0 -0
  242. aspose/netcore/netcore3.1/System.Xml.XPath.dll +0 -0
  243. aspose/netcore/netcore3.1/System.Xml.XmlDocument.dll +0 -0
  244. aspose/netcore/netcore3.1/System.Xml.XmlSerializer.dll +0 -0
  245. aspose/netcore/netcore3.1/System.Xml.dll +0 -0
  246. aspose/netcore/netcore3.1/System.dll +0 -0
  247. aspose/netcore/netcore3.1/WindowsBase.dll +0 -0
  248. aspose/netcore/netcore3.1/api-ms-win-core-console-l1-1-0.dll +0 -0
  249. aspose/netcore/netcore3.1/api-ms-win-core-datetime-l1-1-0.dll +0 -0
  250. aspose/netcore/netcore3.1/api-ms-win-core-debug-l1-1-0.dll +0 -0
  251. aspose/netcore/netcore3.1/api-ms-win-core-errorhandling-l1-1-0.dll +0 -0
  252. aspose/netcore/netcore3.1/api-ms-win-core-file-l1-1-0.dll +0 -0
  253. aspose/netcore/netcore3.1/api-ms-win-core-file-l1-2-0.dll +0 -0
  254. aspose/netcore/netcore3.1/api-ms-win-core-file-l2-1-0.dll +0 -0
  255. aspose/netcore/netcore3.1/api-ms-win-core-handle-l1-1-0.dll +0 -0
  256. aspose/netcore/netcore3.1/api-ms-win-core-heap-l1-1-0.dll +0 -0
  257. aspose/netcore/netcore3.1/api-ms-win-core-interlocked-l1-1-0.dll +0 -0
  258. aspose/netcore/netcore3.1/api-ms-win-core-libraryloader-l1-1-0.dll +0 -0
  259. aspose/netcore/netcore3.1/api-ms-win-core-localization-l1-2-0.dll +0 -0
  260. aspose/netcore/netcore3.1/api-ms-win-core-memory-l1-1-0.dll +0 -0
  261. aspose/netcore/netcore3.1/api-ms-win-core-namedpipe-l1-1-0.dll +0 -0
  262. aspose/netcore/netcore3.1/api-ms-win-core-processenvironment-l1-1-0.dll +0 -0
  263. aspose/netcore/netcore3.1/api-ms-win-core-processthreads-l1-1-0.dll +0 -0
  264. aspose/netcore/netcore3.1/api-ms-win-core-processthreads-l1-1-1.dll +0 -0
  265. aspose/netcore/netcore3.1/api-ms-win-core-profile-l1-1-0.dll +0 -0
  266. aspose/netcore/netcore3.1/api-ms-win-core-rtlsupport-l1-1-0.dll +0 -0
  267. aspose/netcore/netcore3.1/api-ms-win-core-string-l1-1-0.dll +0 -0
  268. aspose/netcore/netcore3.1/api-ms-win-core-synch-l1-1-0.dll +0 -0
  269. aspose/netcore/netcore3.1/api-ms-win-core-synch-l1-2-0.dll +0 -0
  270. aspose/netcore/netcore3.1/api-ms-win-core-sysinfo-l1-1-0.dll +0 -0
  271. aspose/netcore/netcore3.1/api-ms-win-core-timezone-l1-1-0.dll +0 -0
  272. aspose/netcore/netcore3.1/api-ms-win-core-util-l1-1-0.dll +0 -0
  273. aspose/netcore/netcore3.1/api-ms-win-crt-conio-l1-1-0.dll +0 -0
  274. aspose/netcore/netcore3.1/api-ms-win-crt-convert-l1-1-0.dll +0 -0
  275. aspose/netcore/netcore3.1/api-ms-win-crt-environment-l1-1-0.dll +0 -0
  276. aspose/netcore/netcore3.1/api-ms-win-crt-filesystem-l1-1-0.dll +0 -0
  277. aspose/netcore/netcore3.1/api-ms-win-crt-heap-l1-1-0.dll +0 -0
  278. aspose/netcore/netcore3.1/api-ms-win-crt-locale-l1-1-0.dll +0 -0
  279. aspose/netcore/netcore3.1/api-ms-win-crt-math-l1-1-0.dll +0 -0
  280. aspose/netcore/netcore3.1/api-ms-win-crt-multibyte-l1-1-0.dll +0 -0
  281. aspose/netcore/netcore3.1/api-ms-win-crt-private-l1-1-0.dll +0 -0
  282. aspose/netcore/netcore3.1/api-ms-win-crt-process-l1-1-0.dll +0 -0
  283. aspose/netcore/netcore3.1/api-ms-win-crt-runtime-l1-1-0.dll +0 -0
  284. aspose/netcore/netcore3.1/api-ms-win-crt-stdio-l1-1-0.dll +0 -0
  285. aspose/netcore/netcore3.1/api-ms-win-crt-string-l1-1-0.dll +0 -0
  286. aspose/netcore/netcore3.1/api-ms-win-crt-time-l1-1-0.dll +0 -0
  287. aspose/netcore/netcore3.1/api-ms-win-crt-utility-l1-1-0.dll +0 -0
  288. aspose/netcore/netcore3.1/aspose.embed.coreclrwrap.dll +0 -0
  289. aspose/netcore/netcore3.1/clrcompression.dll +0 -0
  290. aspose/netcore/netcore3.1/clretwrc.dll +0 -0
  291. aspose/netcore/netcore3.1/clrjit.dll +0 -0
  292. aspose/netcore/netcore3.1/coreclr.dll +0 -0
  293. aspose/netcore/netcore3.1/dbgshim.dll +0 -0
  294. aspose/netcore/netcore3.1/hostfxr.dll +0 -0
  295. aspose/netcore/netcore3.1/hostpolicy.dll +0 -0
  296. aspose/netcore/netcore3.1/mscordaccore.dll +0 -0
  297. aspose/netcore/netcore3.1/mscordaccore_x86_x86_4.700.22.55902.dll +0 -0
  298. aspose/netcore/netcore3.1/mscordbi.dll +0 -0
  299. aspose/netcore/netcore3.1/mscorlib.dll +0 -0
  300. aspose/netcore/netcore3.1/mscorrc.debug.dll +0 -0
  301. aspose/netcore/netcore3.1/mscorrc.dll +0 -0
  302. aspose/netcore/netcore3.1/netstandard.dll +0 -0
  303. aspose/netcore/netcore3.1/ucrtbase.dll +0 -0
  304. aspose/pycore/__init__.pyi +56 -0
  305. aspose/pycore/__pyinstaller/__init__.pyi +1 -0
  306. aspose/pycore/__pyinstaller/hook-aspose.pycore.py +11 -0
  307. aspose/pycore.cp310-win32.pyd +0 -0
  308. aspose/pycore.cp311-win32.pyd +0 -0
  309. aspose/pycore.cp35-win32.pyd +0 -0
  310. aspose/pycore.cp36-win32.pyd +0 -0
  311. aspose/pycore.cp37-win32.pyd +0 -0
  312. aspose/pycore.cp38-win32.pyd +0 -0
  313. aspose/pycore.cp39-win32.pyd +0 -0
  314. aspose/pydrawing/__init__.pyi +8 -0
  315. aspose/pydrawing/__pyinstaller/__init__.pyi +1 -0
  316. aspose/pydrawing/__pyinstaller/hook-aspose.pydrawing.py +9 -0
  317. aspose/pydrawing.cp310-win32.pyd +0 -0
  318. aspose/pydrawing.cp311-win32.pyd +0 -0
  319. aspose/pydrawing.cp35-win32.pyd +0 -0
  320. aspose/pydrawing.cp36-win32.pyd +0 -0
  321. aspose/pydrawing.cp37-win32.pyd +0 -0
  322. aspose/pydrawing.cp38-win32.pyd +0 -0
  323. aspose/pydrawing.cp39-win32.pyd +0 -0
  324. aspose/pygc/__init__.pyi +8 -0
  325. aspose/pygc/__pyinstaller/__init__.pyi +1 -0
  326. aspose/pygc/__pyinstaller/hook-aspose.pygc.py +9 -0
  327. aspose/pygc.cp310-win32.pyd +0 -0
  328. aspose/pygc.cp311-win32.pyd +0 -0
  329. aspose/pygc.cp35-win32.pyd +0 -0
  330. aspose/pygc.cp36-win32.pyd +0 -0
  331. aspose/pygc.cp37-win32.pyd +0 -0
  332. aspose/pygc.cp38-win32.pyd +0 -0
  333. aspose/pygc.cp39-win32.pyd +0 -0
  334. aspose/pyreflection/__init__.pyi +8 -0
  335. aspose/pyreflection/__pyinstaller/__init__.pyi +1 -0
  336. aspose/pyreflection/__pyinstaller/hook-aspose.pyreflection.py +9 -0
  337. aspose/pyreflection.cp310-win32.pyd +0 -0
  338. aspose/pyreflection.cp311-win32.pyd +0 -0
  339. aspose/pyreflection.cp35-win32.pyd +0 -0
  340. aspose/pyreflection.cp36-win32.pyd +0 -0
  341. aspose/pyreflection.cp37-win32.pyd +0 -0
  342. aspose/pyreflection.cp38-win32.pyd +0 -0
  343. aspose/pyreflection.cp39-win32.pyd +0 -0
  344. aspose_html_net-24.6.0.dist-info/METADATA +112 -0
  345. aspose_html_net-24.6.0.dist-info/RECORD +348 -0
  346. aspose_html_net-24.6.0.dist-info/WHEEL +5 -0
  347. aspose_html_net-24.6.0.dist-info/entry_points.txt +3 -0
  348. aspose_html_net-24.6.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1103 @@
1
+ from typing import List, Optional, Dict, Iterable
2
+ import aspose.pycore
3
+ import aspose.pydrawing
4
+ import aspose.html
5
+ import aspose.html.accessibility
6
+ import aspose.html.accessibility.results
7
+ import aspose.html.accessibility.saving
8
+ import aspose.html.collections
9
+ import aspose.html.converters
10
+ import aspose.html.diagnostics
11
+ import aspose.html.dom
12
+ import aspose.html.dom.attributes
13
+ import aspose.html.dom.canvas
14
+ import aspose.html.dom.css
15
+ import aspose.html.dom.events
16
+ import aspose.html.dom.mutations
17
+ import aspose.html.dom.svg
18
+ import aspose.html.dom.svg.datatypes
19
+ import aspose.html.dom.svg.events
20
+ import aspose.html.dom.svg.filters
21
+ import aspose.html.dom.svg.paths
22
+ import aspose.html.dom.svg.saving
23
+ import aspose.html.dom.traversal
24
+ import aspose.html.dom.traversal.filters
25
+ import aspose.html.dom.views
26
+ import aspose.html.dom.xpath
27
+ import aspose.html.drawing
28
+ import aspose.html.forms
29
+ import aspose.html.io
30
+ import aspose.html.loading
31
+ import aspose.html.net
32
+ import aspose.html.net.headers
33
+ import aspose.html.net.messagefilters
34
+ import aspose.html.net.messagehandlers
35
+ import aspose.html.rendering
36
+ import aspose.html.rendering.doc
37
+ import aspose.html.rendering.fonts
38
+ import aspose.html.rendering.image
39
+ import aspose.html.rendering.pdf
40
+ import aspose.html.rendering.pdf.encryption
41
+ import aspose.html.rendering.xps
42
+ import aspose.html.saving
43
+ import aspose.html.saving.resourcehandlers
44
+ import aspose.html.services
45
+ import aspose.html.toolkit
46
+ import aspose.html.toolkit.markdown
47
+ import aspose.html.toolkit.markdown.syntax
48
+ import aspose.html.toolkit.markdown.syntax.extensions
49
+ import aspose.html.toolkit.markdown.syntax.parser
50
+ import aspose.html.toolkit.markdown.syntax.parser.extensions
51
+ import aspose.html.toolkit.markdown.syntax.parser.extensions.gfm
52
+ import aspose.html.toolkit.markdown.syntax.text
53
+ import aspose.html.toolkit.optimizers
54
+ import aspose.html.window
55
+
56
+ class ICanvasDrawingStyles:
57
+ '''The ICanvasDrawingStyles interface provides methods and properties control how lines are drawn and how text is laid out.'''
58
+
59
+ def set_line_dash(self, segments : List[float]):
60
+ '''Sets the current line dash pattern.
61
+
62
+ :param segments: An Array of numbers which specify distances to alternately draw a line and a gap (in coordinate space units)'''
63
+ ...
64
+
65
+ def get_line_dash(self) -> List[float]:
66
+ '''Returns the current line dash pattern array containing an even number of non-negative numbers.
67
+
68
+ :returns: An Array. A list of numbers that specifies distances to alternately draw a line and a gap (in coordinate space units).'''
69
+ ...
70
+
71
+ @property
72
+ def line_width(self) -> float:
73
+ ...
74
+
75
+ @line_width.setter
76
+ def line_width(self, value : float):
77
+ ...
78
+
79
+ @property
80
+ def line_cap(self) -> str:
81
+ ...
82
+
83
+ @line_cap.setter
84
+ def line_cap(self, value : str):
85
+ ...
86
+
87
+ @property
88
+ def line_join(self) -> str:
89
+ ...
90
+
91
+ @line_join.setter
92
+ def line_join(self, value : str):
93
+ ...
94
+
95
+ @property
96
+ def miter_limit(self) -> float:
97
+ ...
98
+
99
+ @miter_limit.setter
100
+ def miter_limit(self, value : float):
101
+ ...
102
+
103
+ @property
104
+ def line_dash_offset(self) -> float:
105
+ ...
106
+
107
+ @line_dash_offset.setter
108
+ def line_dash_offset(self, value : float):
109
+ ...
110
+
111
+ @property
112
+ def font(self) -> str:
113
+ '''Font setting. Default value 10px sans-serif'''
114
+ ...
115
+
116
+ @font.setter
117
+ def font(self, value : str):
118
+ '''Font setting. Default value 10px sans-serif'''
119
+ ...
120
+
121
+ @property
122
+ def text_align(self) -> str:
123
+ ...
124
+
125
+ @text_align.setter
126
+ def text_align(self, value : str):
127
+ ...
128
+
129
+ @property
130
+ def text_baseline(self) -> str:
131
+ ...
132
+
133
+ @text_baseline.setter
134
+ def text_baseline(self, value : str):
135
+ ...
136
+
137
+ ...
138
+
139
+ class ICanvasGradient:
140
+ '''Represents an opaque object describing a gradient.'''
141
+
142
+ def add_color_stop(self, offset : float, color : str):
143
+ '''Adds a new stop, defined by an offset and a color, to the gradient.
144
+
145
+ :param offset: A number between 0 and 1.
146
+ :param color: A CSS color'''
147
+ ...
148
+
149
+ ...
150
+
151
+ class ICanvasPathMethods:
152
+ '''The ICanvasPathMethods interface is used to manipulate paths of objects.'''
153
+
154
+ @overload
155
+ def arc(self, x : float, y : float, radius : float, start_angle : float, end_angle : float):
156
+ '''Adds an arc to the path which is centered at (x, y) position with radius r starting at startAngle and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
157
+
158
+ :param x: The x coordinate of the arc's center.
159
+ :param y: The y coordinate of the arc's center.
160
+ :param radius: The arc's radius.
161
+ :param start_angle: The angle at which the arc starts, measured clockwise from the positive x axis and expressed in radians.
162
+ :param end_angle: The angle at which the arc ends, measured clockwise from the positive x axis and expressed in radians.'''
163
+ ...
164
+
165
+ @overload
166
+ def arc(self, x : float, y : float, radius : float, start_angle : float, end_angle : float, counterclockwise : bool):
167
+ '''Adds an arc to the path which is centered at (x, y) position with radius r starting at startAngle and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
168
+
169
+ :param x: The x coordinate of the arc's center.
170
+ :param y: The y coordinate of the arc's center.
171
+ :param radius: The arc's radius.
172
+ :param start_angle: The angle at which the arc starts, measured clockwise from the positive x axis and expressed in radians.
173
+ :param end_angle: The angle at which the arc ends, measured clockwise from the positive x axis and expressed in radians.
174
+ :param counterclockwise: Causes the arc to be drawn counter-clockwise between the two angles. By default it is drawn clockwise.'''
175
+ ...
176
+
177
+ @overload
178
+ def ellipse(self, x : float, y : float, radius_x : float, radius_y : float, rotation : float, start_angle : float, end_angle : float):
179
+ '''Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and radiusY starting at startAngle
180
+ and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
181
+
182
+ :param x: The x axis of the coordinate for the ellipse's center.
183
+ :param y: The y axis of the coordinate for the ellipse's center.
184
+ :param radius_x: The ellipse's major-axis radius.
185
+ :param radius_y: The ellipse's minor-axis radius.
186
+ :param rotation: The rotation for this ellipse, expressed in radians.
187
+ :param start_angle: The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
188
+ :param end_angle: The end ellipse's angle to which it will be drawn, expressed in radians.'''
189
+ ...
190
+
191
+ @overload
192
+ def ellipse(self, x : float, y : float, radius_x : float, radius_y : float, rotation : float, start_angle : float, end_angle : float, anticlockwise : bool):
193
+ '''Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and radiusY starting at startAngle
194
+ and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
195
+
196
+ :param x: The x axis of the coordinate for the ellipse's center.
197
+ :param y: The y axis of the coordinate for the ellipse's center.
198
+ :param radius_x: The ellipse's major-axis radius.
199
+ :param radius_y: The ellipse's minor-axis radius.
200
+ :param rotation: The rotation for this ellipse, expressed in radians.
201
+ :param start_angle: The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
202
+ :param end_angle: The end ellipse's angle to which it will be drawn, expressed in radians.
203
+ :param anticlockwise: An optional boolean which, if true, draws the ellipse anticlockwise (counter-clockwise), otherwise in a clockwise direction.'''
204
+ ...
205
+
206
+ def close_path(self):
207
+ '''Causes the point of the pen to move back to the start of the current sub-path.
208
+ It tries to draw a straight line from the current point to the start.
209
+ If the shape has already been closed or has only one point, this function does nothing.'''
210
+ ...
211
+
212
+ def move_to(self, x : float, y : float):
213
+ '''Moves the starting point of a new sub-path to the (x, y) coordinates.
214
+
215
+ :param x: The x axis of the point
216
+ :param y: The y axis of the point'''
217
+ ...
218
+
219
+ def line_to(self, x : float, y : float):
220
+ '''Connects the last point in the subpath to the x, y coordinates with a straight line.
221
+
222
+ :param x: The x axis of the coordinate for the end of the line.
223
+ :param y: The y axis of the coordinate for the end of the line.'''
224
+ ...
225
+
226
+ def quadratic_curve_to(self, cpx : float, cpy : float, x : float, y : float):
227
+ '''Adds a quadratic Bézier curve to the current path.
228
+
229
+ :param cpx: The x axis of the coordinate for the control point.
230
+ :param cpy: The y axis of the coordinate for the control point.
231
+ :param x: The x axis of the coordinate for the end point.
232
+ :param y: The y axis of the coordinate for the end point.'''
233
+ ...
234
+
235
+ def bezier_curve_to(self, cp_1x : float, cp_1y : float, cp_2x : float, cp_2y : float, x : float, y : float):
236
+ '''Adds a cubic Bézier curve to the path. It requires three points.
237
+ The first two points are control points and the third one is the end point.
238
+ The starting point is the last point in the current path,
239
+ which can be changed using moveTo() before creating the Bézier curve.
240
+
241
+ :param cp_1x: The x axis of the coordinate for the first control point.
242
+ :param cp_1y: The y axis of the coordinate for the first control point.
243
+ :param cp_2x: The x axis of the coordinate for the second control point.
244
+ :param cp_2y: The y axis of the coordinate for the second control point.
245
+ :param x: The x axis of the coordinate for the end point.
246
+ :param y: The y axis of the coordinate for the end point.'''
247
+ ...
248
+
249
+ def arc_to(self, x1 : float, y1 : float, x2 : float, y2 : float, radius : float):
250
+ '''Adds an arc to the path with the given control points and radius, connected to the previous point by a straight line.
251
+
252
+ :param x1: x-axis coordinates for the first control point.
253
+ :param y1: y-axis coordinates for the first control point.
254
+ :param x2: x-axis coordinates for the second control point.
255
+ :param y2: y-axis coordinates for the second control point.
256
+ :param radius: The arc's radius.'''
257
+ ...
258
+
259
+ def rect(self, x : float, y : float, w : float, h : float):
260
+ '''Creates a path for a rectangle at position (x, y) with a size that is determined by width and height.
261
+
262
+ :param x: The x axis of the coordinate for the rectangle starting point.
263
+ :param y: The y axis of the coordinate for the rectangle starting point.
264
+ :param w: The rectangle's width.
265
+ :param h: The rectangle's height.'''
266
+ ...
267
+
268
+ ...
269
+
270
+ class ICanvasPattern:
271
+ '''Represents an opaque object describing a pattern, based on an image, a canvas or a video.'''
272
+
273
+ def set_transform(self, transform : aspose.html.dom.svg.datatypes.SVGMatrix):
274
+ '''Applies an SVGMatrix representing a linear transform to the pattern.
275
+
276
+ :param transform: An SVGMatrix to use as the pattern's transformation matrix.'''
277
+ ...
278
+
279
+ ...
280
+
281
+ class ICanvasRenderingContext2D(ICanvasDrawingStyles):
282
+ '''The ICanvasRenderingContext2D interface is used for drawing rectangles, text, images and other objects onto the canvas element. It provides the 2D rendering context for the drawing surface of a canvas element.'''
283
+
284
+ @overload
285
+ def create_pattern(self, image : aspose.html.HTMLImageElement, repetition : str) -> aspose.html.dom.canvas.ICanvasPattern:
286
+ '''Creates a pattern using the specified image (a CanvasImageSource).
287
+ It repeats the source in the directions specified by the repetition argument.
288
+
289
+ :param image: A HTMLImageElement to be used as the image to repeat
290
+ :param repetition: A string indicating how to repeat the image.
291
+ :returns: An opaque object describing a pattern.'''
292
+ ...
293
+
294
+ @overload
295
+ def create_pattern(self, image : aspose.html.HTMLCanvasElement, repetition : str) -> aspose.html.dom.canvas.ICanvasPattern:
296
+ '''Creates a pattern using the specified image (a CanvasImageSource).
297
+ It repeats the source in the directions specified by the repetition argument.
298
+
299
+ :param image: A HTMLCanvasElement to be used as the image to repeat
300
+ :param repetition: A string indicating how to repeat the image.
301
+ :returns: An opaque object describing a pattern.'''
302
+ ...
303
+
304
+ @overload
305
+ def fill(self):
306
+ '''Fills the subpaths with the current fill style and default algorithm CanvasFillRule.Nonzero.'''
307
+ ...
308
+
309
+ @overload
310
+ def fill(self, fill_rule : aspose.html.dom.canvas.CanvasFillRule):
311
+ '''Fills the subpaths with the current fill style.
312
+
313
+ :param fill_rule: The algorithm by which to determine if a point is inside a path or outside a path.'''
314
+ ...
315
+
316
+ @overload
317
+ def fill(self, path : aspose.html.dom.canvas.Path2D):
318
+ '''Fills the subpaths with the current fill style and default algorithm CanvasFillRule.Nonzero.
319
+
320
+ :param path: A Path2D path to fill.'''
321
+ ...
322
+
323
+ @overload
324
+ def fill(self, path : aspose.html.dom.canvas.Path2D, fill_rule : aspose.html.dom.canvas.CanvasFillRule):
325
+ '''Fills the subpaths with the current fill style.
326
+
327
+ :param path: A Path2D path to fill.
328
+ :param fill_rule: The algorithm by which to determine if a point is inside a path or outside a path.'''
329
+ ...
330
+
331
+ @overload
332
+ def stroke(self):
333
+ '''Strokes the subpaths with the current stroke style.'''
334
+ ...
335
+
336
+ @overload
337
+ def stroke(self, path : aspose.html.dom.canvas.Path2D):
338
+ '''Strokes the subpaths with the current stroke style.
339
+
340
+ :param path: A Path2D path to stroke.'''
341
+ ...
342
+
343
+ @overload
344
+ def clip(self):
345
+ '''Creates a new clipping region by calculating the intersection of the current clipping region and the area described by the path, using the non-zero winding number rule.
346
+ Open subpaths must be implicitly closed when computing the clipping region, without affecting the actual subpaths.
347
+ The new clipping region replaces the current clipping region.'''
348
+ ...
349
+
350
+ @overload
351
+ def clip(self, fill_rule : aspose.html.dom.canvas.CanvasFillRule):
352
+ '''Creates a new clipping region by calculating the intersection of the current clipping region and the area described by the path, using the non-zero winding number rule.
353
+ Open subpaths must be implicitly closed when computing the clipping region, without affecting the actual subpaths.
354
+ The new clipping region replaces the current clipping region.
355
+
356
+ :param fill_rule: The algorithm by which to determine if a point is inside a path or outside a path'''
357
+ ...
358
+
359
+ @overload
360
+ def clip(self, path : aspose.html.dom.canvas.Path2D, fill_rule : aspose.html.dom.canvas.CanvasFillRule):
361
+ '''Creates a new clipping region by calculating the intersection of the current clipping region and the area described by the path, using the non-zero winding number rule.
362
+ Open subpaths must be implicitly closed when computing the clipping region, without affecting the actual subpaths.
363
+ The new clipping region replaces the current clipping region.
364
+
365
+ :param path: A Path2D path to clip.
366
+ :param fill_rule: The algorithm by which to determine if a point is inside a path or outside a path.'''
367
+ ...
368
+
369
+ @overload
370
+ def is_point_in_path(self, x : float, y : float) -> bool:
371
+ '''Reports whether or not the specified point is contained in the current path.
372
+
373
+ :param x: The X coordinate of the point to check.
374
+ :param y: The Y coordinate of the point to check.
375
+ :returns: Returns true if the point is inside the area contained by the filling of a path, otherwise false.'''
376
+ ...
377
+
378
+ @overload
379
+ def is_point_in_path(self, x : float, y : float, fill_rule : aspose.html.dom.canvas.CanvasFillRule) -> bool:
380
+ '''Reports whether or not the specified point is contained in the current path.
381
+
382
+ :param x: The X coordinate of the point to check.
383
+ :param y: The Y coordinate of the point to check.
384
+ :param fill_rule: The algorithm by which to determine if a point is inside a path or outside a path.
385
+ :returns: Returns true if the point is inside the area contained by the filling of a path, otherwise false.'''
386
+ ...
387
+
388
+ @overload
389
+ def is_point_in_path(self, path : aspose.html.dom.canvas.Path2D, x : float, y : float) -> bool:
390
+ '''Reports whether or not the specified point is contained in the current path.
391
+
392
+ :param path: A Path2D path to check.
393
+ :param x: The X coordinate of the point to check.
394
+ :param y: The Y coordinate of the point to check.
395
+ :returns: Returns true if the point is inside the area contained by the filling of a path, otherwise false.'''
396
+ ...
397
+
398
+ @overload
399
+ def is_point_in_path(self, path : aspose.html.dom.canvas.Path2D, x : float, y : float, fill_rule : aspose.html.dom.canvas.CanvasFillRule) -> bool:
400
+ '''Reports whether or not the specified point is contained in the current path.
401
+
402
+ :param path: A Path2D path to check.
403
+ :param x: The X coordinate of the point to check.
404
+ :param y: The Y coordinate of the point to check.
405
+ :param fill_rule: The algorithm by which to determine if a point is inside a path or outside a path.
406
+ :returns: Returns true if the point is inside the area contained by the filling of a path, otherwise false.'''
407
+ ...
408
+
409
+ @overload
410
+ def is_point_in_stroke(self, x : float, y : float) -> bool:
411
+ '''Reports whether or not the specified point is inside the area contained by the stroking of a path.
412
+
413
+ :param x: The X coordinate of the point to check.
414
+ :param y: The Y coordinate of the point to check.
415
+ :returns: Returns true if the point is inside the area contained by the stroking of a path, otherwise false.'''
416
+ ...
417
+
418
+ @overload
419
+ def is_point_in_stroke(self, path : aspose.html.dom.canvas.Path2D, x : float, y : float) -> bool:
420
+ '''Reports whether or not the specified point is inside the area contained by the stroking of a path.
421
+
422
+ :param path: A Path2D path to check.
423
+ :param x: The X coordinate of the point to check.
424
+ :param y: The Y coordinate of the point to check.
425
+ :returns: Returns true if the point is inside the area contained by the stroking of a path, otherwise false.'''
426
+ ...
427
+
428
+ @overload
429
+ def fill_text(self, text : str, x : float, y : float):
430
+ '''Draws (fills) a given text at the given (x,y) position.
431
+
432
+ :param text: The text to draw using the current font, textAlign, textBaseline, and direction values.
433
+ :param x: The x axis of the coordinate for the text starting point.
434
+ :param y: The y axis of the coordinate for the text starting point.'''
435
+ ...
436
+
437
+ @overload
438
+ def fill_text(self, text : str, x : float, y : float, max_width : float):
439
+ '''Draws (fills) a given text at the given (x,y) position.
440
+
441
+ :param text: The text to draw using the current font, textAlign, textBaseline, and direction values.
442
+ :param x: The x axis of the coordinate for the text starting point.
443
+ :param y: The y axis of the coordinate for the text starting point.
444
+ :param max_width: The maximum width to draw. If specified, and the string is computed to be wider than this width, the font is adjusted to use a more horizontally condensed font (if one is available or if a reasonably readable one can be synthesized by scaling the current font horizontally) or a smaller font.'''
445
+ ...
446
+
447
+ @overload
448
+ def stroke_text(self, text : str, x : float, y : float):
449
+ '''Draws (strokes) a given text at the given (x, y) position.
450
+
451
+ :param text: The text to draw using the current font, textAlign, textBaseline, and direction values.
452
+ :param x: The x axis of the coordinate for the text starting point.
453
+ :param y: The y axis of the coordinate for the text starting point.'''
454
+ ...
455
+
456
+ @overload
457
+ def stroke_text(self, text : str, x : float, y : float, max_width : Optional[float]):
458
+ ...
459
+
460
+ @overload
461
+ def draw_image(self, image : aspose.html.HTMLImageElement, dx : float, dy : float):
462
+ '''Draws the specified image.
463
+
464
+ :param image: The HTMLImageElement to draw into the context.
465
+ :param dx: The X coordinate in the destination canvas at which to place the top-left corner of the source image.
466
+ :param dy: The Y coordinate in the destination canvas at which to place the top-left corner of the source image.'''
467
+ ...
468
+
469
+ @overload
470
+ def draw_image(self, image : aspose.html.HTMLCanvasElement, dx : float, dy : float):
471
+ '''Draws the specified image.
472
+
473
+ :param image: The HTMLCanvasElement to draw into the context.
474
+ :param dx: The X coordinate in the destination canvas at which to place the top-left corner of the source image.
475
+ :param dy: The Y coordinate in the destination canvas at which to place the top-left corner of the source image.'''
476
+ ...
477
+
478
+ @overload
479
+ def draw_image(self, image : aspose.html.HTMLImageElement, dx : float, dy : float, dw : float, dh : float):
480
+ '''Draws the specified image.
481
+
482
+ :param image: The HTMLImageElement to draw into the context.
483
+ :param dx: The X coordinate in the destination canvas at which to place the top-left corner of the source image.
484
+ :param dy: The Y coordinate in the destination canvas at which to place the top-left corner of the source image.
485
+ :param dw: The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn.
486
+ :param dh: The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.'''
487
+ ...
488
+
489
+ @overload
490
+ def draw_image(self, image : aspose.html.HTMLCanvasElement, dx : float, dy : float, dw : float, dh : float):
491
+ '''Draws the specified image.
492
+
493
+ :param image: The HTMLCanvasElement to draw into the context.
494
+ :param dx: The X coordinate in the destination canvas at which to place the top-left corner of the source image.
495
+ :param dy: The Y coordinate in the destination canvas at which to place the top-left corner of the source image.
496
+ :param dw: The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn.
497
+ :param dh: The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.'''
498
+ ...
499
+
500
+ @overload
501
+ def draw_image(self, image : aspose.html.HTMLImageElement, sx : float, sy : float, sw : float, sh : float, dx : float, dy : float, dw : float, dh : float):
502
+ '''Draws the specified image.
503
+
504
+ :param image: The HTMLImageElement to draw into the context.
505
+ :param sx: The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.
506
+ :param sy: The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.
507
+ :param sw: The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used.
508
+ :param sh: The height of the sub-rectangle of the source image to draw into the destination context.
509
+ :param dx: The X coordinate in the destination canvas at which to place the top-left corner of the source image.
510
+ :param dy: The Y coordinate in the destination canvas at which to place the top-left corner of the source image.
511
+ :param dw: The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn.
512
+ :param dh: The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.'''
513
+ ...
514
+
515
+ @overload
516
+ def draw_image(self, image : aspose.html.HTMLCanvasElement, sx : float, sy : float, sw : float, sh : float, dx : float, dy : float, dw : float, dh : float):
517
+ '''Draws the specified image.
518
+
519
+ :param image: The HTMLCanvasElement to draw into the context.
520
+ :param sx: The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.
521
+ :param sy: The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.
522
+ :param sw: The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used.
523
+ :param sh: The height of the sub-rectangle of the source image to draw into the destination context.
524
+ :param dx: The X coordinate in the destination canvas at which to place the top-left corner of the source image.
525
+ :param dy: The Y coordinate in the destination canvas at which to place the top-left corner of the source image.
526
+ :param dw: The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn.
527
+ :param dh: The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.'''
528
+ ...
529
+
530
+ @overload
531
+ def create_image_data(self, sw : float, sh : float) -> aspose.html.dom.canvas.IImageData:
532
+ '''Creates a new, blank ImageData object with the specified dimensions.
533
+ All of the pixels in the new object are transparent black.
534
+
535
+ :param sw: The width to give the new ImageData object.
536
+ :param sh: The height to give the new ImageData object.
537
+ :returns: A new ImageData object with the specified width and height. The new object is filled with transparent black pixels.'''
538
+ ...
539
+
540
+ @overload
541
+ def create_image_data(self, imagedata : aspose.html.dom.canvas.IImageData) -> aspose.html.dom.canvas.IImageData:
542
+ '''Creates a new, blank ImageData object with the specified dimensions.
543
+ All of the pixels in the new object are transparent black.
544
+
545
+ :param imagedata: An existing ImageData object from which to copy the width and height. The image itself is not copied.
546
+ :returns: A new ImageData object with the specified width and height. The new object is filled with transparent black pixels.'''
547
+ ...
548
+
549
+ @overload
550
+ def put_image_data(self, imagedata : aspose.html.dom.canvas.IImageData, dx : float, dy : float):
551
+ '''Paints data from the given ImageData object onto the bitmap.
552
+ If a dirty rectangle is provided, only the pixels from that rectangle are painted.
553
+ This method is not affected by the canvas transformation matrix.
554
+
555
+ :param imagedata: An ImageData object containing the array of pixel values.
556
+ :param dx: Horizontal position (x-coordinate) at which to place the image data in the destination canvas.
557
+ :param dy: Vertical position (y-coordinate) at which to place the image data in the destination canvas.'''
558
+ ...
559
+
560
+ @overload
561
+ def put_image_data(self, imagedata : aspose.html.dom.canvas.IImageData, dx : float, dy : float, dirty_x : float, dirty_y : float, dirty_width : float, dirty_height : float):
562
+ '''Paints data from the given ImageData object onto the bitmap.
563
+ If a dirty rectangle is provided, only the pixels from that rectangle are painted.
564
+ This method is not affected by the canvas transformation matrix.
565
+
566
+ :param imagedata: An ImageData object containing the array of pixel values.
567
+ :param dx: Horizontal position (x-coordinate) at which to place the image data in the destination canvas.
568
+ :param dy: Vertical position (y-coordinate) at which to place the image data in the destination canvas.
569
+ :param dirty_x: Horizontal position (x-coordinate). The x coordinate of the top left hand corner of your Image data. Defaults to 0.
570
+ :param dirty_y: Vertical position (y-coordinate). The y coordinate of the top left hand corner of your Image data. Defaults to 0.
571
+ :param dirty_width: Width of the rectangle to be painted. Defaults to the width of the image data.
572
+ :param dirty_height: Height of the rectangle to be painted. Defaults to the height of the image data.'''
573
+ ...
574
+
575
+ @overload
576
+ def arc(self, x : float, y : float, radius : float, start_angle : float, end_angle : float):
577
+ ...
578
+
579
+ @overload
580
+ def arc(self, x : float, y : float, radius : float, start_angle : float, end_angle : float, counterclockwise : bool):
581
+ ...
582
+
583
+ @overload
584
+ def ellipse(self, x : float, y : float, radius_x : float, radius_y : float, rotation : float, start_angle : float, end_angle : float):
585
+ ...
586
+
587
+ @overload
588
+ def ellipse(self, x : float, y : float, radius_x : float, radius_y : float, rotation : float, start_angle : float, end_angle : float, anticlockwise : bool):
589
+ ...
590
+
591
+ def save(self):
592
+ '''Saves the current drawing style state using a stack so you can revert any change you make to it using restore().'''
593
+ ...
594
+
595
+ def restore(self):
596
+ '''Restores the drawing style state to the last element on the 'state stack' saved by save().'''
597
+ ...
598
+
599
+ def scale(self, x : float, y : float):
600
+ '''Adds a scaling transformation to the canvas units by x horizontally and by y vertically.
601
+
602
+ :param x: Scaling factor in the horizontal direction.
603
+ :param y: Scaling factor in the vertical direction.'''
604
+ ...
605
+
606
+ def rotate(self, angle : float):
607
+ '''Adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation angle and is expressed in radians.
608
+
609
+ :param angle: Represents a clockwise rotation angle expressed in radians.'''
610
+ ...
611
+
612
+ def translate(self, x : float, y : float):
613
+ '''Adds a translation transformation by moving the canvas and its origin x horzontally and y vertically on the grid.
614
+
615
+ :param x: Distance to move in the horizontal direction.
616
+ :param y: Distance to move in the vertical direction.'''
617
+ ...
618
+
619
+ def transform(self, a : float, b : float, c : float, d : float, e : float, f : float):
620
+ '''Multiplies the current transformation matrix with the matrix described by its arguments.
621
+
622
+ :param a: Horizontal scaling.
623
+ :param b: Horizontal skewing.
624
+ :param c: Vertical skewing.
625
+ :param d: Vertical scaling.
626
+ :param e: Horizontal moving.
627
+ :param f: Vertical moving.'''
628
+ ...
629
+
630
+ def set_transform(self, a : float, b : float, c : float, d : float, e : float, f : float):
631
+ '''Resets the current transform to the identity matrix, and then invokes the transform() method with the same arguments.
632
+
633
+ :param a: Horizontal scaling.
634
+ :param b: Horizontal skewing.
635
+ :param c: Vertical skewing.
636
+ :param d: Vertical scaling.
637
+ :param e: Horizontal moving.
638
+ :param f: Vertical moving.'''
639
+ ...
640
+
641
+ def reset_transform(self):
642
+ '''Resets the current transform by the identity matrix.'''
643
+ ...
644
+
645
+ def create_linear_gradient(self, x0 : float, y0 : float, x1 : float, y1 : float) -> aspose.html.dom.canvas.ICanvasGradient:
646
+ '''Creates a linear gradient along the line given by the coordinates represented by the parameters.
647
+
648
+ :param x0: The x axis of the coordinate of the start point.
649
+ :param y0: The y axis of the coordinate of the start point.
650
+ :param x1: The x axis of the coordinate of the end point.
651
+ :param y1: The y axis of the coordinate of the end point.
652
+ :returns: The linear CanvasGradient.'''
653
+ ...
654
+
655
+ def create_radial_gradient(self, x0 : float, y0 : float, r0 : float, x1 : float, y1 : float, r1 : float) -> aspose.html.dom.canvas.ICanvasGradient:
656
+ '''Creates a radial gradient given by the coordinates of the two circles represented by the parameters.
657
+
658
+ :param x0: The x axis of the coordinate of the start circle.
659
+ :param y0: The y axis of the coordinate of the start circle
660
+ :param r0: The radius of the start circle.
661
+ :param x1: The x axis of the coordinate of the end circle.
662
+ :param y1: The y axis of the coordinate of the end circle.
663
+ :param r1: The radius of the end circle.
664
+ :returns: A radial CanvasGradient initialized with the two specified circles.'''
665
+ ...
666
+
667
+ def clear_rect(self, x : float, y : float, w : float, h : float):
668
+ '''Sets all pixels in the rectangle defined by starting point (x, y) and size (width, height) to transparent black, erasing any previously drawn content.
669
+
670
+ :param x: The x axis of the coordinate for the rectangle starting point.
671
+ :param y: The y axis of the coordinate for the rectangle starting point.
672
+ :param w: The rectangle's width.
673
+ :param h: The rectangle's height.'''
674
+ ...
675
+
676
+ def fill_rect(self, x : float, y : float, w : float, h : float):
677
+ '''Draws a filled rectangle at (x, y) position whose size is determined by width and height.
678
+
679
+ :param x: The x axis of the coordinate for the rectangle starting point.
680
+ :param y: The y axis of the coordinate for the rectangle starting point.
681
+ :param w: The rectangle's width.
682
+ :param h: The rectangle's height.'''
683
+ ...
684
+
685
+ def stroke_rect(self, x : float, y : float, w : float, h : float):
686
+ '''Paints a rectangle which has a starting point at (x, y) and has a w width and an h height onto the canvas, using the current stroke style.
687
+
688
+ :param x: The x axis of the coordinate for the rectangle starting point.
689
+ :param y: The y axis of the coordinate for the rectangle starting point.
690
+ :param w: The rectangle's width.
691
+ :param h: The rectangle's height.'''
692
+ ...
693
+
694
+ def begin_path(self):
695
+ '''Starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path.'''
696
+ ...
697
+
698
+ def draw_focus_if_needed(self, element : aspose.html.dom.Element):
699
+ '''If a given element is focused, this method draws a focus ring around the current path.
700
+
701
+ :param element: The element to check whether it is focused or not.'''
702
+ ...
703
+
704
+ def measure_text(self, text : str) -> aspose.html.dom.canvas.ITextMetrics:
705
+ '''Returns a TextMetrics object.
706
+
707
+ :param text: The text to measure.
708
+ :returns: A TextMetrics object.'''
709
+ ...
710
+
711
+ def remove_hit_region(self, id : str):
712
+ '''Removes the hit region with the specified id from the canvas.
713
+
714
+ :param id: A string representing the id of the region that is to be removed.'''
715
+ ...
716
+
717
+ def clear_hit_regions(self):
718
+ '''Removes all hit regions from the canvas.'''
719
+ ...
720
+
721
+ def get_image_data(self, sx : float, sy : float, sw : float, sh : float) -> aspose.html.dom.canvas.IImageData:
722
+ '''Returns an ImageData object representing the underlying pixel data for the area of the canvas denoted by the rectangle which starts at (sx, sy) and has an sw width and sh height.
723
+ This method is not affected by the canvas transformation matrix.
724
+
725
+ :param sx: The x coordinate of the upper left corner of the rectangle from which the ImageData will be extracted.
726
+ :param sy: The y coordinate of the upper left corner of the rectangle from which the ImageData will be extracted.
727
+ :param sw: The width of the rectangle from which the ImageData will be extracted.
728
+ :param sh: The height of the rectangle from which the ImageData will be extracted.
729
+ :returns: An ImageData object containing the image data for the given rectangle of the canvas.'''
730
+ ...
731
+
732
+ def set_line_dash(self, segments : List[float]):
733
+ '''Sets the current line dash pattern.
734
+
735
+ :param segments: An Array of numbers which specify distances to alternately draw a line and a gap (in coordinate space units)'''
736
+ ...
737
+
738
+ def get_line_dash(self) -> List[float]:
739
+ '''Returns the current line dash pattern array containing an even number of non-negative numbers.
740
+
741
+ :returns: An Array. A list of numbers that specifies distances to alternately draw a line and a gap (in coordinate space units).'''
742
+ ...
743
+
744
+ def close_path(self):
745
+ ...
746
+
747
+ def move_to(self, x : float, y : float):
748
+ ...
749
+
750
+ def line_to(self, x : float, y : float):
751
+ ...
752
+
753
+ def quadratic_curve_to(self, cpx : float, cpy : float, x : float, y : float):
754
+ ...
755
+
756
+ def bezier_curve_to(self, cp_1x : float, cp_1y : float, cp_2x : float, cp_2y : float, x : float, y : float):
757
+ ...
758
+
759
+ def arc_to(self, x1 : float, y1 : float, x2 : float, y2 : float, radius : float):
760
+ ...
761
+
762
+ def rect(self, x : float, y : float, w : float, h : float):
763
+ ...
764
+
765
+ @property
766
+ def canvas(self) -> aspose.html.HTMLCanvasElement:
767
+ '''A read-only back-reference to the HTMLCanvasElement. Might be null if it is not associated with a canvas element.'''
768
+ ...
769
+
770
+ @property
771
+ def global_alpha(self) -> float:
772
+ ...
773
+
774
+ @global_alpha.setter
775
+ def global_alpha(self, value : float):
776
+ ...
777
+
778
+ @property
779
+ def global_composite_operation(self) -> str:
780
+ ...
781
+
782
+ @global_composite_operation.setter
783
+ def global_composite_operation(self, value : str):
784
+ ...
785
+
786
+ @property
787
+ def stroke_style(self) -> any:
788
+ ...
789
+
790
+ @stroke_style.setter
791
+ def stroke_style(self, value : any):
792
+ ...
793
+
794
+ @property
795
+ def fill_style(self) -> any:
796
+ ...
797
+
798
+ @fill_style.setter
799
+ def fill_style(self, value : any):
800
+ ...
801
+
802
+ @property
803
+ def image_smoothing_enabled(self) -> bool:
804
+ ...
805
+
806
+ @image_smoothing_enabled.setter
807
+ def image_smoothing_enabled(self, value : bool):
808
+ ...
809
+
810
+ @property
811
+ def shadow_offset_x(self) -> float:
812
+ ...
813
+
814
+ @shadow_offset_x.setter
815
+ def shadow_offset_x(self, value : float):
816
+ ...
817
+
818
+ @property
819
+ def shadow_offset_y(self) -> float:
820
+ ...
821
+
822
+ @shadow_offset_y.setter
823
+ def shadow_offset_y(self, value : float):
824
+ ...
825
+
826
+ @property
827
+ def shadow_blur(self) -> float:
828
+ ...
829
+
830
+ @shadow_blur.setter
831
+ def shadow_blur(self, value : float):
832
+ ...
833
+
834
+ @property
835
+ def shadow_color(self) -> str:
836
+ ...
837
+
838
+ @shadow_color.setter
839
+ def shadow_color(self, value : str):
840
+ ...
841
+
842
+ @property
843
+ def line_width(self) -> float:
844
+ ...
845
+
846
+ @line_width.setter
847
+ def line_width(self, value : float):
848
+ ...
849
+
850
+ @property
851
+ def line_cap(self) -> str:
852
+ ...
853
+
854
+ @line_cap.setter
855
+ def line_cap(self, value : str):
856
+ ...
857
+
858
+ @property
859
+ def line_join(self) -> str:
860
+ ...
861
+
862
+ @line_join.setter
863
+ def line_join(self, value : str):
864
+ ...
865
+
866
+ @property
867
+ def miter_limit(self) -> float:
868
+ ...
869
+
870
+ @miter_limit.setter
871
+ def miter_limit(self, value : float):
872
+ ...
873
+
874
+ @property
875
+ def line_dash_offset(self) -> float:
876
+ ...
877
+
878
+ @line_dash_offset.setter
879
+ def line_dash_offset(self, value : float):
880
+ ...
881
+
882
+ @property
883
+ def font(self) -> str:
884
+ '''Font setting. Default value 10px sans-serif'''
885
+ ...
886
+
887
+ @font.setter
888
+ def font(self, value : str):
889
+ '''Font setting. Default value 10px sans-serif'''
890
+ ...
891
+
892
+ @property
893
+ def text_align(self) -> str:
894
+ ...
895
+
896
+ @text_align.setter
897
+ def text_align(self, value : str):
898
+ ...
899
+
900
+ @property
901
+ def text_baseline(self) -> str:
902
+ ...
903
+
904
+ @text_baseline.setter
905
+ def text_baseline(self, value : str):
906
+ ...
907
+
908
+ ...
909
+
910
+ class IImageData:
911
+ '''Creates an ImageData object from a given Uint8ClampedArray and the size of the image it contains.
912
+ If no array is given, it creates an image of a black rectangle.'''
913
+
914
+ @property
915
+ def width(self) -> int:
916
+ '''Is an unsigned long representing the actual width, in pixels, of the ImageData.'''
917
+ ...
918
+
919
+ @property
920
+ def height(self) -> int:
921
+ '''Is an unsigned long representing the actual height, in pixels, of the ImageData.'''
922
+ ...
923
+
924
+ @property
925
+ def data(self) -> aspose.html.Uint8ClampedArray:
926
+ '''Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order,
927
+ with integer values between 0 and 255 (included).'''
928
+ ...
929
+
930
+ ...
931
+
932
+ class ITextMetrics:
933
+ '''Represents the dimension of a text in the canvas.'''
934
+
935
+ @property
936
+ def width(self) -> float:
937
+ '''Is a double giving the calculated width of a segment of inline text in CSS pixels.'''
938
+ ...
939
+
940
+ ...
941
+
942
+ class Path2D(aspose.html.dom.DOMObject):
943
+ '''The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects.
944
+ The path methods of the CanvasRenderingContext2D interface are present on this interface as well and are allowing you to create
945
+ paths that you can retain and replay as required on a canvas.'''
946
+
947
+ @overload
948
+ def add_path(self, path : aspose.html.dom.canvas.Path2D):
949
+ '''Adds to the path the path given by the argument.
950
+
951
+ :param path: A Path2D path to add.'''
952
+ ...
953
+
954
+ @overload
955
+ def add_path(self, path : aspose.html.dom.canvas.Path2D, transformation : aspose.html.dom.svg.datatypes.SVGMatrix):
956
+ '''Adds to the path the path given by the argument.
957
+
958
+ :param path: A Path2D path to add.
959
+ :param transformation: An SVGMatrix to be used as the transformation matrix for the path that is added.'''
960
+ ...
961
+
962
+ @overload
963
+ def arc(self, x : float, y : float, radius : float, start_angle : float, end_angle : float):
964
+ '''Adds an arc to the path which is centered at (x, y) position with radius r starting at startAngle and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
965
+
966
+ :param x: The x coordinate of the arc's center.
967
+ :param y: The y coordinate of the arc's center.
968
+ :param radius: The arc's radius.
969
+ :param start_angle: The angle at which the arc starts, measured clockwise from the positive x axis and expressed in radians.
970
+ :param end_angle: The angle at which the arc ends, measured clockwise from the positive x axis and expressed in radians.'''
971
+ ...
972
+
973
+ @overload
974
+ def arc(self, x : float, y : float, radius : float, start_angle : float, end_angle : float, counterclockwise : bool):
975
+ '''Adds an arc to the path which is centered at (x, y) position with radius r starting at startAngle and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
976
+
977
+ :param x: The x coordinate of the arc's center.
978
+ :param y: The y coordinate of the arc's center.
979
+ :param radius: The arc's radius.
980
+ :param start_angle: The angle at which the arc starts, measured clockwise from the positive x axis and expressed in radians.
981
+ :param end_angle: The angle at which the arc ends, measured clockwise from the positive x axis and expressed in radians.
982
+ :param counterclockwise: Causes the arc to be drawn counter-clockwise between the two angles. By default it is drawn clockwise.'''
983
+ ...
984
+
985
+ @overload
986
+ def ellipse(self, x : float, y : float, radius_x : float, radius_y : float, rotation : float, start_angle : float, end_angle : float):
987
+ '''Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and radiusY starting at startAngle
988
+ and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
989
+
990
+ :param x: The x axis of the coordinate for the ellipse's center.
991
+ :param y: The y axis of the coordinate for the ellipse's center.
992
+ :param radius_x: The ellipse's major-axis radius.
993
+ :param radius_y: The ellipse's minor-axis radius.
994
+ :param rotation: The rotation for this ellipse, expressed in radians.
995
+ :param start_angle: The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
996
+ :param end_angle: The end ellipse's angle to which it will be drawn, expressed in radians.'''
997
+ ...
998
+
999
+ @overload
1000
+ def ellipse(self, x : float, y : float, radius_x : float, radius_y : float, rotation : float, start_angle : float, end_angle : float, anticlockwise : bool):
1001
+ '''Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and radiusY starting at startAngle
1002
+ and ending at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
1003
+
1004
+ :param x: The x axis of the coordinate for the ellipse's center.
1005
+ :param y: The y axis of the coordinate for the ellipse's center.
1006
+ :param radius_x: The ellipse's major-axis radius.
1007
+ :param radius_y: The ellipse's minor-axis radius.
1008
+ :param rotation: The rotation for this ellipse, expressed in radians.
1009
+ :param start_angle: The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
1010
+ :param end_angle: The end ellipse's angle to which it will be drawn, expressed in radians.
1011
+ :param anticlockwise: An optional boolean which, if true, draws the ellipse anticlockwise (counter-clockwise), otherwise in a clockwise direction.'''
1012
+ ...
1013
+
1014
+ def get_platform_type(self) -> Type:
1015
+ '''This method is used to retrieve ECMAScript object :py:class:`System.Type`.
1016
+
1017
+ :returns: The ECMAScript object :py:class:`System.Type`.'''
1018
+ ...
1019
+
1020
+ def close_path(self):
1021
+ '''Causes the point of the pen to move back to the start of the current sub-path.
1022
+ It tries to draw a straight line from the current point to the start.
1023
+ If the shape has already been closed or has only one point, this function does nothing.'''
1024
+ ...
1025
+
1026
+ def move_to(self, x : float, y : float):
1027
+ '''Moves the starting point of a new sub-path to the (x, y) coordinates.
1028
+
1029
+ :param x: The x axis of the point
1030
+ :param y: The y axis of the point'''
1031
+ ...
1032
+
1033
+ def line_to(self, x : float, y : float):
1034
+ '''Connects the last point in the subpath to the x, y coordinates with a straight line.
1035
+
1036
+ :param x: The x axis of the coordinate for the end of the line.
1037
+ :param y: The y axis of the coordinate for the end of the line.'''
1038
+ ...
1039
+
1040
+ def quadratic_curve_to(self, cpx : float, cpy : float, x : float, y : float):
1041
+ '''Adds a quadratic Bézier curve to the current path.
1042
+
1043
+ :param cpx: The x axis of the coordinate for the control point.
1044
+ :param cpy: The y axis of the coordinate for the control point.
1045
+ :param x: The x axis of the coordinate for the end point.
1046
+ :param y: The y axis of the coordinate for the end point.'''
1047
+ ...
1048
+
1049
+ def bezier_curve_to(self, cp_1x : float, cp_1y : float, cp_2x : float, cp_2y : float, x : float, y : float):
1050
+ '''Adds a cubic Bézier curve to the path. It requires three points.
1051
+ The first two points are control points and the third one is the end point.
1052
+ The starting point is the last point in the current path,
1053
+ which can be changed using moveTo() before creating the Bézier curve.
1054
+
1055
+ :param cp_1x: The x axis of the coordinate for the first control point.
1056
+ :param cp_1y: The y axis of the coordinate for the first control point.
1057
+ :param cp_2x: The x axis of the coordinate for the second control point.
1058
+ :param cp_2y: The y axis of the coordinate for the second control point.
1059
+ :param x: The x axis of the coordinate for the end point.
1060
+ :param y: The y axis of the coordinate for the end point.'''
1061
+ ...
1062
+
1063
+ def arc_to(self, x1 : float, y1 : float, x2 : float, y2 : float, radius : float):
1064
+ '''Adds an arc to the path with the given control points and radius, connected to the previous point by a straight line.
1065
+
1066
+ :param x1: x-axis coordinates for the first control point.
1067
+ :param y1: y-axis coordinates for the first control point.
1068
+ :param x2: x-axis coordinates for the second control point.
1069
+ :param y2: y-axis coordinates for the second control point.
1070
+ :param radius: The arc's radius.'''
1071
+ ...
1072
+
1073
+ def rect(self, x : float, y : float, w : float, h : float):
1074
+ '''Creates a path for a rectangle at position (x, y) with a size that is determined by width and height.
1075
+
1076
+ :param x: The x axis of the coordinate for the rectangle starting point.
1077
+ :param y: The y axis of the coordinate for the rectangle starting point.
1078
+ :param w: The rectangle's width.
1079
+ :param h: The rectangle's height.'''
1080
+ ...
1081
+
1082
+ ...
1083
+
1084
+ class CanvasFillRule:
1085
+ '''This enumeration is used to select the fill rule algorithm by which to determine if a point is inside or outside a path.'''
1086
+
1087
+ @classmethod
1088
+ @property
1089
+ def NON_ZERO(cls) -> CanvasFillRule:
1090
+ '''The value "nonzero" value indicates the non-zero winding rule, wherein a point is considered to be outside a
1091
+ shape if the number of times a half-infinite straight line drawn from that point crosses the shape's path
1092
+ going in one direction is equal to the number of times it crosses the path going in the other direction.'''
1093
+ ...
1094
+
1095
+ @classmethod
1096
+ @property
1097
+ def EVEN_ODD(cls) -> CanvasFillRule:
1098
+ '''The "evenodd" value indicates the even-odd rule, wherein a point is considered to be outside a shape if the
1099
+ number of times a half-infinite straight line drawn from that point crosses the shape's path is even.'''
1100
+ ...
1101
+
1102
+ ...
1103
+