@next2d/player 1.14.19 → 1.14.21

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 (386) hide show
  1. package/index.js +3 -3
  2. package/package.json +31 -6
  3. package/interface/AjaxEventImpl.d.ts +0 -5
  4. package/interface/AjaxEventImpl.js +0 -1
  5. package/interface/AjaxOptionImpl.d.ts +0 -13
  6. package/interface/AjaxOptionImpl.js +0 -1
  7. package/interface/AttachmentImpl.d.ts +0 -11
  8. package/interface/AttachmentImpl.js +0 -1
  9. package/interface/BitmapDataChannelImpl.d.ts +0 -1
  10. package/interface/BitmapDataChannelImpl.js +0 -1
  11. package/interface/BitmapDrawObjectImpl.d.ts +0 -6
  12. package/interface/BitmapDrawObjectImpl.js +0 -1
  13. package/interface/BitmapFilterTypeImpl.d.ts +0 -1
  14. package/interface/BitmapFilterTypeImpl.js +0 -1
  15. package/interface/BlendModeImpl.d.ts +0 -1
  16. package/interface/BlendModeImpl.js +0 -1
  17. package/interface/BoundsImpl.d.ts +0 -6
  18. package/interface/BoundsImpl.js +0 -1
  19. package/interface/Character.d.ts +0 -2
  20. package/interface/Character.js +0 -1
  21. package/interface/CharacterImpl.d.ts +0 -2
  22. package/interface/CharacterImpl.js +0 -1
  23. package/interface/ClipObjectImpl.d.ts +0 -14
  24. package/interface/ClipObjectImpl.js +0 -1
  25. package/interface/ColorStopImpl.d.ts +0 -7
  26. package/interface/ColorStopImpl.js +0 -1
  27. package/interface/DictionaryTagImpl.d.ts +0 -7
  28. package/interface/DictionaryTagImpl.js +0 -1
  29. package/interface/DisplacementMapFilterModeImpl.d.ts +0 -1
  30. package/interface/DisplacementMapFilterModeImpl.js +0 -1
  31. package/interface/DisplayImpl.d.ts +0 -28
  32. package/interface/DisplayImpl.js +0 -1
  33. package/interface/DisplayObjectImpl.d.ts +0 -2
  34. package/interface/DisplayObjectImpl.js +0 -1
  35. package/interface/DragRulesImpl.d.ts +0 -7
  36. package/interface/DragRulesImpl.js +0 -1
  37. package/interface/DropTargetImpl.d.ts +0 -2
  38. package/interface/DropTargetImpl.js +0 -1
  39. package/interface/EventDispatcherImpl.d.ts +0 -2
  40. package/interface/EventDispatcherImpl.js +0 -1
  41. package/interface/EventListenerImpl.d.ts +0 -6
  42. package/interface/EventListenerImpl.js +0 -1
  43. package/interface/EventsImpl.d.ts +0 -20
  44. package/interface/EventsImpl.js +0 -1
  45. package/interface/FillMeshImpl.d.ts +0 -5
  46. package/interface/FillMeshImpl.js +0 -1
  47. package/interface/FilterArrayImpl.d.ts +0 -10
  48. package/interface/FilterArrayImpl.js +0 -1
  49. package/interface/FilterQualityImpl.d.ts +0 -1
  50. package/interface/FilterQualityImpl.js +0 -1
  51. package/interface/FiltersImpl.d.ts +0 -20
  52. package/interface/FiltersImpl.js +0 -1
  53. package/interface/GeomImpl.d.ts +0 -12
  54. package/interface/GeomImpl.js +0 -1
  55. package/interface/GradientTypeImpl.d.ts +0 -3
  56. package/interface/GradientTypeImpl.js +0 -1
  57. package/interface/GraphicsParentImpl.d.ts +0 -2
  58. package/interface/GraphicsParentImpl.js +0 -1
  59. package/interface/GridImpl.d.ts +0 -6
  60. package/interface/GridImpl.js +0 -1
  61. package/interface/ImageTypeImpl.d.ts +0 -1
  62. package/interface/ImageTypeImpl.js +0 -1
  63. package/interface/IndexRangeImpl.d.ts +0 -4
  64. package/interface/IndexRangeImpl.js +0 -1
  65. package/interface/LoaderInfoDataImpl.d.ts +0 -7
  66. package/interface/LoaderInfoDataImpl.js +0 -1
  67. package/interface/LoopConfigImpl.d.ts +0 -8
  68. package/interface/LoopConfigImpl.js +0 -1
  69. package/interface/LoopTypeImpl.d.ts +0 -1
  70. package/interface/LoopTypeImpl.js +0 -1
  71. package/interface/MediaImpl.d.ts +0 -10
  72. package/interface/MediaImpl.js +0 -1
  73. package/interface/MovieClipActionObjectImpl.d.ts +0 -5
  74. package/interface/MovieClipActionObjectImpl.js +0 -1
  75. package/interface/MovieClipCharacterImpl.d.ts +0 -18
  76. package/interface/MovieClipCharacterImpl.js +0 -1
  77. package/interface/MovieClipLabelObjectImpl.d.ts +0 -4
  78. package/interface/MovieClipLabelObjectImpl.js +0 -1
  79. package/interface/MovieClipSoundObjectImpl.d.ts +0 -5
  80. package/interface/MovieClipSoundObjectImpl.js +0 -1
  81. package/interface/NetImpl.d.ts +0 -6
  82. package/interface/NetImpl.js +0 -1
  83. package/interface/NoCodeDataImpl.d.ts +0 -7
  84. package/interface/NoCodeDataImpl.js +0 -1
  85. package/interface/NoCodeDataZlibImpl.d.ts +0 -4
  86. package/interface/NoCodeDataZlibImpl.js +0 -1
  87. package/interface/ParentImpl.d.ts +0 -2
  88. package/interface/ParentImpl.js +0 -1
  89. package/interface/PlaceObjectImpl.d.ts +0 -12
  90. package/interface/PlaceObjectImpl.js +0 -1
  91. package/interface/PlayerHitObjectImpl.d.ts +0 -7
  92. package/interface/PlayerHitObjectImpl.js +0 -1
  93. package/interface/PlayerModeImpl.d.ts +0 -1
  94. package/interface/PlayerModeImpl.js +0 -1
  95. package/interface/PlayerOptionsImpl.d.ts +0 -8
  96. package/interface/PlayerOptionsImpl.js +0 -1
  97. package/interface/PointImpl.d.ts +0 -4
  98. package/interface/PointImpl.js +0 -1
  99. package/interface/PreObjectImpl.d.ts +0 -23
  100. package/interface/PreObjectImpl.js +0 -1
  101. package/interface/PropertyBitmapDataMessageImpl.d.ts +0 -8
  102. package/interface/PropertyBitmapDataMessageImpl.js +0 -1
  103. package/interface/PropertyContainerMessageImpl.d.ts +0 -6
  104. package/interface/PropertyContainerMessageImpl.js +0 -1
  105. package/interface/PropertyMessageImpl.d.ts +0 -41
  106. package/interface/PropertyMessageImpl.js +0 -1
  107. package/interface/PropertyMessageMapImpl.d.ts +0 -2
  108. package/interface/PropertyMessageMapImpl.js +0 -1
  109. package/interface/PropertyShapeMessageImpl.d.ts +0 -6
  110. package/interface/PropertyShapeMessageImpl.js +0 -1
  111. package/interface/PropertyTextMessageImpl.d.ts +0 -25
  112. package/interface/PropertyTextMessageImpl.js +0 -1
  113. package/interface/PropertyVideoMessageImpl.d.ts +0 -5
  114. package/interface/PropertyVideoMessageImpl.js +0 -1
  115. package/interface/RGBAImpl.d.ts +0 -6
  116. package/interface/RGBAImpl.js +0 -1
  117. package/interface/ShapeCharacterImpl.d.ts +0 -14
  118. package/interface/ShapeCharacterImpl.js +0 -1
  119. package/interface/SoundCharacterImpl.d.ts +0 -5
  120. package/interface/SoundCharacterImpl.js +0 -1
  121. package/interface/SoundTagImpl.d.ts +0 -6
  122. package/interface/SoundTagImpl.js +0 -1
  123. package/interface/SpriteImpl.d.ts +0 -2
  124. package/interface/SpriteImpl.js +0 -1
  125. package/interface/StageDataImpl.d.ts +0 -6
  126. package/interface/StageDataImpl.js +0 -1
  127. package/interface/StageQualityImpl.d.ts +0 -1
  128. package/interface/StageQualityImpl.js +0 -1
  129. package/interface/StrokeMethImpl.d.ts +0 -4
  130. package/interface/StrokeMethImpl.js +0 -1
  131. package/interface/StrokeTypeImpl.d.ts +0 -2
  132. package/interface/StrokeTypeImpl.js +0 -1
  133. package/interface/SurfaceFilterImpl.d.ts +0 -6
  134. package/interface/SurfaceFilterImpl.js +0 -1
  135. package/interface/TextBreakObjectImpl.d.ts +0 -9
  136. package/interface/TextBreakObjectImpl.js +0 -1
  137. package/interface/TextCharacterImpl.d.ts +0 -27
  138. package/interface/TextCharacterImpl.js +0 -1
  139. package/interface/TextDataImpl.d.ts +0 -2
  140. package/interface/TextDataImpl.js +0 -1
  141. package/interface/TextFieldAutoSizeImpl.d.ts +0 -1
  142. package/interface/TextFieldAutoSizeImpl.js +0 -1
  143. package/interface/TextFieldTypeImpl.d.ts +0 -1
  144. package/interface/TextFieldTypeImpl.js +0 -1
  145. package/interface/TextFormatAlignImpl.d.ts +0 -1
  146. package/interface/TextFormatAlignImpl.js +0 -1
  147. package/interface/TextFormatVerticalAlignImpl.d.ts +0 -1
  148. package/interface/TextFormatVerticalAlignImpl.js +0 -1
  149. package/interface/TextImageObjectImpl.d.ts +0 -11
  150. package/interface/TextImageObjectImpl.js +0 -1
  151. package/interface/TextImpl.d.ts +0 -6
  152. package/interface/TextImpl.js +0 -1
  153. package/interface/TextObjectImpl.d.ts +0 -7
  154. package/interface/TextObjectImpl.js +0 -1
  155. package/interface/TextObjectModeImpl.d.ts +0 -1
  156. package/interface/TextObjectModeImpl.js +0 -1
  157. package/interface/TextStringObjectImpl.d.ts +0 -7
  158. package/interface/TextStringObjectImpl.js +0 -1
  159. package/interface/UIImpl.d.ts +0 -8
  160. package/interface/UIImpl.js +0 -1
  161. package/interface/URLLoaderDataFormatImpl.d.ts +0 -1
  162. package/interface/URLLoaderDataFormatImpl.js +0 -1
  163. package/interface/URLRequestMethodImpl.d.ts +0 -1
  164. package/interface/URLRequestMethodImpl.js +0 -1
  165. package/interface/UniformDataImpl.d.ts +0 -5
  166. package/interface/UniformDataImpl.js +0 -1
  167. package/interface/UnzipQueueImpl.d.ts +0 -6
  168. package/interface/UnzipQueueImpl.js +0 -1
  169. package/interface/VerticesImpl.d.ts +0 -1
  170. package/interface/VerticesImpl.js +0 -1
  171. package/interface/VideoCharacterImpl.d.ts +0 -12
  172. package/interface/VideoCharacterImpl.js +0 -1
  173. package/next2d/display/BitmapData.d.ts +0 -143
  174. package/next2d/display/BitmapData.js +0 -387
  175. package/next2d/display/BlendMode.d.ts +0 -204
  176. package/next2d/display/BlendMode.js +0 -240
  177. package/next2d/display/DisplayObject.d.ts +0 -565
  178. package/next2d/display/DisplayObject.js +0 -1670
  179. package/next2d/display/DisplayObjectContainer.d.ts +0 -351
  180. package/next2d/display/DisplayObjectContainer.js +0 -1776
  181. package/next2d/display/FrameLabel.d.ts +0 -98
  182. package/next2d/display/FrameLabel.js +0 -120
  183. package/next2d/display/Graphics.d.ts +0 -577
  184. package/next2d/display/Graphics.js +0 -2161
  185. package/next2d/display/GraphicsBitmapFill.d.ts +0 -49
  186. package/next2d/display/GraphicsBitmapFill.js +0 -86
  187. package/next2d/display/GraphicsGradientFill.d.ts +0 -66
  188. package/next2d/display/GraphicsGradientFill.js +0 -157
  189. package/next2d/display/InteractiveObject.d.ts +0 -32
  190. package/next2d/display/InteractiveObject.js +0 -43
  191. package/next2d/display/Loader.d.ts +0 -131
  192. package/next2d/display/Loader.js +0 -321
  193. package/next2d/display/LoaderInfo.d.ts +0 -122
  194. package/next2d/display/LoaderInfo.js +0 -184
  195. package/next2d/display/LoopConfig.d.ts +0 -108
  196. package/next2d/display/LoopConfig.js +0 -156
  197. package/next2d/display/LoopType.d.ts +0 -104
  198. package/next2d/display/LoopType.js +0 -122
  199. package/next2d/display/MovieClip.d.ts +0 -314
  200. package/next2d/display/MovieClip.js +0 -941
  201. package/next2d/display/Shape.d.ts +0 -169
  202. package/next2d/display/Shape.js +0 -509
  203. package/next2d/display/Sprite.d.ts +0 -175
  204. package/next2d/display/Sprite.js +0 -280
  205. package/next2d/display/Stage.d.ts +0 -164
  206. package/next2d/display/Stage.js +0 -251
  207. package/next2d/events/Event.d.ts +0 -424
  208. package/next2d/events/Event.js +0 -560
  209. package/next2d/events/EventDispatcher.d.ts +0 -138
  210. package/next2d/events/EventDispatcher.js +0 -623
  211. package/next2d/events/EventPhase.d.ts +0 -80
  212. package/next2d/events/EventPhase.js +0 -94
  213. package/next2d/events/FocusEvent.d.ts +0 -89
  214. package/next2d/events/FocusEvent.js +0 -103
  215. package/next2d/events/HTTPStatusEvent.d.ts +0 -107
  216. package/next2d/events/HTTPStatusEvent.js +0 -139
  217. package/next2d/events/IOErrorEvent.d.ts +0 -82
  218. package/next2d/events/IOErrorEvent.js +0 -101
  219. package/next2d/events/MouseEvent.d.ts +0 -163
  220. package/next2d/events/MouseEvent.js +0 -207
  221. package/next2d/events/ProgressEvent.d.ts +0 -97
  222. package/next2d/events/ProgressEvent.js +0 -123
  223. package/next2d/events/VideoEvent.d.ts +0 -145
  224. package/next2d/events/VideoEvent.js +0 -181
  225. package/next2d/filters/BevelFilter.d.ts +0 -254
  226. package/next2d/filters/BevelFilter.js +0 -491
  227. package/next2d/filters/BitmapFilter.d.ts +0 -75
  228. package/next2d/filters/BitmapFilter.js +0 -95
  229. package/next2d/filters/BlurFilter.d.ts +0 -150
  230. package/next2d/filters/BlurFilter.js +0 -370
  231. package/next2d/filters/ColorMatrixFilter.d.ts +0 -116
  232. package/next2d/filters/ColorMatrixFilter.js +0 -179
  233. package/next2d/filters/ConvolutionFilter.d.ts +0 -210
  234. package/next2d/filters/ConvolutionFilter.js +0 -366
  235. package/next2d/filters/DisplacementMapFilter.d.ts +0 -212
  236. package/next2d/filters/DisplacementMapFilter.js +0 -372
  237. package/next2d/filters/DropShadowFilter.d.ts +0 -240
  238. package/next2d/filters/DropShadowFilter.js +0 -461
  239. package/next2d/filters/GlowFilter.d.ts +0 -204
  240. package/next2d/filters/GlowFilter.js +0 -356
  241. package/next2d/filters/GradientBevelFilter.d.ts +0 -243
  242. package/next2d/filters/GradientBevelFilter.js +0 -474
  243. package/next2d/filters/GradientGlowFilter.d.ts +0 -243
  244. package/next2d/filters/GradientGlowFilter.js +0 -464
  245. package/next2d/geom/ColorTransform.d.ts +0 -201
  246. package/next2d/geom/ColorTransform.js +0 -278
  247. package/next2d/geom/Matrix.d.ts +0 -299
  248. package/next2d/geom/Matrix.js +0 -454
  249. package/next2d/geom/Point.d.ts +0 -213
  250. package/next2d/geom/Point.js +0 -274
  251. package/next2d/geom/Rectangle.d.ts +0 -364
  252. package/next2d/geom/Rectangle.js +0 -513
  253. package/next2d/geom/Transform.d.ts +0 -213
  254. package/next2d/geom/Transform.js +0 -492
  255. package/next2d/media/Sound.d.ts +0 -208
  256. package/next2d/media/Sound.js +0 -504
  257. package/next2d/media/SoundMixer.d.ts +0 -68
  258. package/next2d/media/SoundMixer.js +0 -115
  259. package/next2d/media/SoundTransform.d.ts +0 -80
  260. package/next2d/media/SoundTransform.js +0 -111
  261. package/next2d/media/Video.d.ts +0 -331
  262. package/next2d/media/Video.js +0 -856
  263. package/next2d/net/URLRequest.d.ts +0 -143
  264. package/next2d/net/URLRequest.js +0 -232
  265. package/next2d/net/URLRequestHeader.d.ts +0 -82
  266. package/next2d/net/URLRequestHeader.js +0 -105
  267. package/next2d/text/TextField.d.ts +0 -644
  268. package/next2d/text/TextField.js +0 -2662
  269. package/next2d/text/TextFormat.d.ts +0 -250
  270. package/next2d/text/TextFormat.js +0 -460
  271. package/next2d/ui/Easing.d.ts +0 -359
  272. package/next2d/ui/Easing.js +0 -481
  273. package/next2d/ui/Job.d.ts +0 -155
  274. package/next2d/ui/Job.js +0 -333
  275. package/next2d/ui/Tween.d.ts +0 -62
  276. package/next2d/ui/Tween.js +0 -72
  277. package/packages/Display.d.ts +0 -3
  278. package/packages/Display.js +0 -36
  279. package/packages/Events.d.ts +0 -3
  280. package/packages/Events.js +0 -28
  281. package/packages/Filters.d.ts +0 -3
  282. package/packages/Filters.js +0 -28
  283. package/packages/Geom.d.ts +0 -3
  284. package/packages/Geom.js +0 -20
  285. package/packages/Media.d.ts +0 -3
  286. package/packages/Media.js +0 -18
  287. package/packages/Net.d.ts +0 -3
  288. package/packages/Net.js +0 -14
  289. package/packages/Text.d.ts +0 -3
  290. package/packages/Text.js +0 -14
  291. package/packages/UI.d.ts +0 -3
  292. package/packages/UI.js +0 -16
  293. package/player/Next2D.d.ts +0 -70
  294. package/player/Next2D.js +0 -192
  295. package/player/Player.d.ts +0 -334
  296. package/player/Player.js +0 -1863
  297. package/util/CacheStore.d.ts +0 -115
  298. package/util/CacheStore.js +0 -276
  299. package/util/Global.d.ts +0 -23
  300. package/util/Global.js +0 -67
  301. package/util/RenderUtil.d.ts +0 -472
  302. package/util/RenderUtil.js +0 -686
  303. package/util/Shortcut.d.ts +0 -28
  304. package/util/Shortcut.js +0 -28
  305. package/util/Util.d.ts +0 -334
  306. package/util/Util.js +0 -844
  307. package/webgl/BezierConverter.d.ts +0 -59
  308. package/webgl/BezierConverter.js +0 -106
  309. package/webgl/CanvasGradientToWebGL.d.ts +0 -94
  310. package/webgl/CanvasGradientToWebGL.js +0 -181
  311. package/webgl/CanvasPatternToWebGL.d.ts +0 -39
  312. package/webgl/CanvasPatternToWebGL.js +0 -66
  313. package/webgl/CanvasToWebGLContext.d.ts +0 -596
  314. package/webgl/CanvasToWebGLContext.js +0 -1421
  315. package/webgl/CanvasToWebGLContextBlend.d.ts +0 -97
  316. package/webgl/CanvasToWebGLContextBlend.js +0 -299
  317. package/webgl/CanvasToWebGLContextGrid.d.ts +0 -74
  318. package/webgl/CanvasToWebGLContextGrid.js +0 -283
  319. package/webgl/CanvasToWebGLContextMask.d.ts +0 -113
  320. package/webgl/CanvasToWebGLContextMask.js +0 -436
  321. package/webgl/CanvasToWebGLContextPath.d.ts +0 -111
  322. package/webgl/CanvasToWebGLContextPath.js +0 -210
  323. package/webgl/CanvasToWebGLContextStyle.d.ts +0 -77
  324. package/webgl/CanvasToWebGLContextStyle.js +0 -139
  325. package/webgl/ColorBufferPool.d.ts +0 -58
  326. package/webgl/ColorBufferPool.js +0 -134
  327. package/webgl/FrameBufferManager.d.ts +0 -135
  328. package/webgl/FrameBufferManager.js +0 -358
  329. package/webgl/StencilBufferPool.d.ts +0 -56
  330. package/webgl/StencilBufferPool.js +0 -142
  331. package/webgl/TextureManager.d.ts +0 -130
  332. package/webgl/TextureManager.js +0 -296
  333. package/webgl/VertexArrayObjectManager.d.ts +0 -95
  334. package/webgl/VertexArrayObjectManager.js +0 -277
  335. package/webgl/WebGLFillMeshGenerator.d.ts +0 -31
  336. package/webgl/WebGLFillMeshGenerator.js +0 -101
  337. package/webgl/WebGLStrokeMeshGenerator.d.ts +0 -182
  338. package/webgl/WebGLStrokeMeshGenerator.js +0 -504
  339. package/webgl/shader/CanvasToWebGLShader.d.ts +0 -85
  340. package/webgl/shader/CanvasToWebGLShader.js +0 -192
  341. package/webgl/shader/CanvasToWebGLShaderList.d.ts +0 -70
  342. package/webgl/shader/CanvasToWebGLShaderList.js +0 -109
  343. package/webgl/shader/GradientLUTGenerator.d.ts +0 -36
  344. package/webgl/shader/GradientLUTGenerator.js +0 -123
  345. package/webgl/shader/WebGLShaderUniform.d.ts +0 -52
  346. package/webgl/shader/WebGLShaderUniform.js +0 -165
  347. package/webgl/shader/fragment/FragmentShaderLibrary.d.ts +0 -18
  348. package/webgl/shader/fragment/FragmentShaderLibrary.js +0 -35
  349. package/webgl/shader/fragment/FragmentShaderSource.d.ts +0 -29
  350. package/webgl/shader/fragment/FragmentShaderSource.js +0 -99
  351. package/webgl/shader/fragment/FragmentShaderSourceBlend.d.ts +0 -67
  352. package/webgl/shader/fragment/FragmentShaderSourceBlend.js +0 -319
  353. package/webgl/shader/fragment/FragmentShaderSourceGradient.d.ts +0 -44
  354. package/webgl/shader/fragment/FragmentShaderSourceGradient.js +0 -114
  355. package/webgl/shader/fragment/FragmentShaderSourceGradientLUT.d.ts +0 -14
  356. package/webgl/shader/fragment/FragmentShaderSourceGradientLUT.js +0 -58
  357. package/webgl/shader/fragment/FragmentShaderSourceTexture.d.ts +0 -12
  358. package/webgl/shader/fragment/FragmentShaderSourceTexture.js +0 -36
  359. package/webgl/shader/fragment/filter/FragmentShaderSourceBlurFilter.d.ts +0 -12
  360. package/webgl/shader/fragment/filter/FragmentShaderSourceBlurFilter.js +0 -42
  361. package/webgl/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.d.ts +0 -11
  362. package/webgl/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.js +0 -35
  363. package/webgl/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.d.ts +0 -16
  364. package/webgl/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.js +0 -80
  365. package/webgl/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.d.ts +0 -15
  366. package/webgl/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.js +0 -106
  367. package/webgl/shader/fragment/filter/FragmentShaderSourceFilter.d.ts +0 -112
  368. package/webgl/shader/fragment/filter/FragmentShaderSourceFilter.js +0 -275
  369. package/webgl/shader/variants/BlendShaderVariantCollection.d.ts +0 -99
  370. package/webgl/shader/variants/BlendShaderVariantCollection.js +0 -239
  371. package/webgl/shader/variants/FilterShaderVariantCollection.d.ts +0 -150
  372. package/webgl/shader/variants/FilterShaderVariantCollection.js +0 -395
  373. package/webgl/shader/variants/GradientLUTShaderVariantCollection.d.ts +0 -49
  374. package/webgl/shader/variants/GradientLUTShaderVariantCollection.js +0 -107
  375. package/webgl/shader/variants/GradientShapeShaderVariantCollection.d.ts +0 -61
  376. package/webgl/shader/variants/GradientShapeShaderVariantCollection.js +0 -196
  377. package/webgl/shader/variants/ShapeShaderVariantCollection.d.ts +0 -117
  378. package/webgl/shader/variants/ShapeShaderVariantCollection.js +0 -427
  379. package/webgl/shader/vertex/VertexShaderLibrary.d.ts +0 -18
  380. package/webgl/shader/vertex/VertexShaderLibrary.js +0 -75
  381. package/webgl/shader/vertex/VertexShaderSource.d.ts +0 -23
  382. package/webgl/shader/vertex/VertexShaderSource.js +0 -92
  383. package/webgl/shader/vertex/VertexShaderSourceFill.d.ts +0 -45
  384. package/webgl/shader/vertex/VertexShaderSourceFill.js +0 -112
  385. package/webgl/shader/vertex/VertexShaderSourceStroke.d.ts +0 -27
  386. package/webgl/shader/vertex/VertexShaderSourceStroke.js +0 -149
@@ -1,513 +0,0 @@
1
- import { Point } from "./Point";
2
- import { $Math, $clamp, $SHORT_INT_MIN, $SHORT_INT_MAX } from "../../util/RenderUtil";
3
- /**
4
- * Rectangle オブジェクトは、その位置(左上隅のポイント (x, y) で示される)、および幅と高さで定義される領域です。
5
- * Rectangle クラスの x、y、width、および height の各プロパティは、互いに独立しているため、
6
- * あるプロパティの値を変更しても、他のプロパティに影響はありません。
7
- * ただし、right プロパティと bottom プロパティはこれら 4 つのプロパティと不可分に関連しています。
8
- * 例えば、right プロパティの値を変更すると width プロパティの値も変更されます。
9
- * bottom プロパティの値を変更すると、height プロパティの値も変更されます。
10
- *
11
- * A Rectangle object is an area defined by its position,
12
- * as indicated by its top-left corner point (x, y) and by its width and its height.
13
- * The x, y, width, and height properties of the Rectangle class are independent of each other;
14
- * changing the value of one property has no effect on the others. However,
15
- * the right and bottom properties are integrally related to those four properties.
16
- * For example, if you change the value of the right property, the value of the width property changes;
17
- * if you change the bottom property, the value of the height property changes.
18
- *
19
- * @example <caption>Example usage of Rectangle.</caption>
20
- * // new Rectangle
21
- * const {Rectangle} = next2d.geom;
22
- * const rectangle = new Rectangle(0, 0, 100, 100);
23
- *
24
- * @class
25
- * @memberOf next2d.geom
26
- */
27
- export class Rectangle {
28
- /**
29
- * @param {number} [x=0]
30
- * @param {number} [y=0]
31
- * @param {number} [width=0]
32
- * @param {number} [height=0]
33
- *
34
- * @constructor
35
- * @public
36
- */
37
- constructor(x = 0, y = 0, width = 0, height = 0) {
38
- /**
39
- * @type {number}
40
- * @default 0
41
- * @private
42
- */
43
- this._$x = 0;
44
- /**
45
- * @type {number}
46
- * @default 0
47
- * @private
48
- */
49
- this._$y = 0;
50
- /**
51
- * @type {number}
52
- * @default 0
53
- * @private
54
- */
55
- this._$width = 0;
56
- /**
57
- * @type {number}
58
- * @default 0
59
- * @private
60
- */
61
- this._$height = 0;
62
- // init
63
- this.setTo(x, y, width, height);
64
- }
65
- /**
66
- * 指定されたクラスのストリングを返します。
67
- * Returns the string representation of the specified class.
68
- *
69
- * @return {string}
70
- * @default [class Rectangle]
71
- * @method
72
- * @static
73
- */
74
- static toString() {
75
- return "[class Rectangle]";
76
- }
77
- /**
78
- * @description 指定されたクラスの空間名を返します。
79
- * Returns the space name of the specified class.
80
- *
81
- * @member {string}
82
- * @default next2d.geom.Rectangle
83
- * @const
84
- * @static
85
- */
86
- static get namespace() {
87
- return "next2d.geom.Rectangle";
88
- }
89
- /**
90
- * @description 指定されたオブジェクトのストリングを返します。
91
- * Returns the string representation of the specified object.
92
- *
93
- * @return {string}
94
- * @method
95
- * @public
96
- */
97
- toString() {
98
- return `(x=${this.x}, y=${this.y}, w=${this.width}, h=${this.height})`;
99
- }
100
- /**
101
- * @description 指定されたオブジェクトの空間名を返します。
102
- * Returns the space name of the specified object.
103
- *
104
- * @member {string}
105
- * @default next2d.geom.Rectangle
106
- * @const
107
- * @public
108
- */
109
- get namespace() {
110
- return "next2d.geom.Rectangle";
111
- }
112
- /**
113
- * @description y プロパティと height プロパティの合計です。
114
- * The sum of the y and height properties.
115
- *
116
- * @member {number}
117
- * @public
118
- */
119
- get bottom() {
120
- return this.y + this.height;
121
- }
122
- set bottom(bottom) {
123
- this.height = +bottom - this.y;
124
- }
125
- /**
126
- * @description Rectangle オブジェクトの右下隅の位置で、
127
- * right プロパティと bottom プロパティの値で決まります。
128
- * The location of the Rectangle object's bottom-right corner,
129
- * determined by the values of the right and bottom properties.
130
- *
131
- * @member {Point}
132
- * @public
133
- */
134
- get bottomRight() {
135
- return new Point(this.right, this.bottom);
136
- }
137
- set bottomRight(point) {
138
- this.right = point.x;
139
- this.bottom = point.y;
140
- }
141
- /**
142
- * @description 矩形の高さ(ピクセル単位)です。
143
- * The height of the rectangle, in pixels.
144
- *
145
- * @member {number}
146
- * @public
147
- */
148
- get height() {
149
- return this._$height;
150
- }
151
- set height(height) {
152
- this._$height = $clamp(+height, $SHORT_INT_MIN, $SHORT_INT_MAX, 0);
153
- }
154
- /**
155
- * @description 矩形の左上隅の x 座標です。
156
- * The x coordinate of the top-left corner of the rectangle.
157
- *
158
- * @member {number}
159
- * @public
160
- */
161
- get left() {
162
- return this.x;
163
- }
164
- set left(left) {
165
- this.width = this.right - +left;
166
- this.x = left;
167
- }
168
- /**
169
- * @description x プロパティと width プロパティの合計です。
170
- * The sum of the x and width properties.
171
- *
172
- * @member {number}
173
- * @public
174
- */
175
- get right() {
176
- return this.x + this.width;
177
- }
178
- set right(right) {
179
- this.width = +right - this.x;
180
- }
181
- /**
182
- * @description Rectangle オブジェクトのサイズで、
183
- * width プロパティと height プロパティの値を持つ Point オブジェクトとして表現されます。
184
- * The size of the Rectangle object,
185
- * expressed as a Point object with the values of the width and height properties.
186
- *
187
- * @member {Point}
188
- * @public
189
- */
190
- get size() {
191
- return new Point(this.width, this.height);
192
- }
193
- set size(point) {
194
- this.width = point.x;
195
- this.height = point.y;
196
- }
197
- /**
198
- * @description 矩形の左上隅の y 座標です。
199
- * The y coordinate of the top-left corner of the rectangle.
200
- *
201
- * @member {number}
202
- * @public
203
- */
204
- get top() {
205
- return this.y;
206
- }
207
- set top(top) {
208
- this.height = +(this.bottom - +top);
209
- this.y = top;
210
- }
211
- /**
212
- * @description Rectangle オブジェクトの左上隅の位置で、
213
- * そのポイントの x 座標と y 座標で決まります。
214
- * The location of the Rectangle object's top-left corner,
215
- * determined by the x and y coordinates of the point.
216
- *
217
- * @member {Point}
218
- * @public
219
- */
220
- get topLeft() {
221
- return new Point(this.x, this.y);
222
- }
223
- set topLeft(point) {
224
- this.left = point.x;
225
- this.top = point.y;
226
- }
227
- /**
228
- * @description 矩形の幅(ピクセル単位)です。
229
- * The width of the rectangle, in pixels.
230
- *
231
- * @member {number}
232
- * @public
233
- */
234
- get width() {
235
- return this._$width;
236
- }
237
- set width(width) {
238
- this._$width = $clamp(+width, $SHORT_INT_MIN, $SHORT_INT_MAX, 0);
239
- }
240
- /**
241
- * @description 矩形の左上隅の x 座標です。
242
- * The x coordinate of the top-left corner of the rectangle.
243
- *
244
- * @member {number}
245
- * @public
246
- */
247
- get x() {
248
- return this._$x;
249
- }
250
- set x(x) {
251
- this._$x = $clamp(+x, $SHORT_INT_MIN, $SHORT_INT_MAX, 0);
252
- }
253
- /**
254
- * @description 矩形の左上隅の y 座標です。
255
- * The y coordinate of the top-left corner of the rectangle.
256
- *
257
- * @member {number}
258
- * @public
259
- */
260
- get y() {
261
- return this._$y;
262
- }
263
- set y(y) {
264
- this._$y = $clamp(+y, $SHORT_INT_MIN, $SHORT_INT_MAX, 0);
265
- }
266
- /**
267
- * @description 元の Rectangle オブジェクトと x、y、width、および height の各プロパティの値が同じである、
268
- * 新しい Rectangle オブジェクトを返します。
269
- * Returns a new Rectangle object with the same values for the x, y, width,
270
- * and height properties as the original Rectangle object.
271
- *
272
- * @return {Rectangle}
273
- * @method
274
- * @public
275
- */
276
- clone() {
277
- return new Rectangle(this.x, this.y, this.width, this.height);
278
- }
279
- /**
280
- * @description 指定されたポイントがこの Rectangle オブジェクトで定義される矩形領域内にあるかどうかを判別します。
281
- * Determines whether the specified point is contained within
282
- * the rectangular region defined by this Rectangle object.
283
- *
284
- * @param {number} x
285
- * @param {number} y
286
- * @return {boolean}
287
- * @method
288
- * @public
289
- */
290
- contains(x, y) {
291
- return this.x <= x && this.y <= y && this.right > x && this.bottom > y;
292
- }
293
- /**
294
- * @description 指定されたポイントがこの Rectangle オブジェクトで定義される矩形領域内にあるかどうかを判別します。
295
- * Determines whether the specified point is contained within
296
- * the rectangular region defined by this Rectangle object.
297
- *
298
- * @param {Point} point
299
- * @return {boolean}
300
- * @method
301
- * @public
302
- */
303
- containsPoint(point) {
304
- return this.x <= point.x && this.y <= point.y &&
305
- this.right > point.x && this.bottom > point.y;
306
- }
307
- /**
308
- * @description rect パラメーターで指定された Rectangle オブジェクトがこの Rectangle オブジェクト内にあるかどうかを判別します。
309
- * Determines whether the Rectangle object specified by
310
- * the rect parameter is contained within this Rectangle object.
311
- *
312
- * @param {Rectangle} rect
313
- * @return {boolean}
314
- * @method
315
- * @public
316
- */
317
- containsRect(rect) {
318
- return this.x <= rect.x && this.y <= rect.y &&
319
- this.right >= rect.right && this.bottom >= rect.bottom;
320
- }
321
- /**
322
- * @description すべての矩形データを、ソース Rectangle オブジェクトから、
323
- * 呼び出し元の Rectangle オブジェクトにコピーします。
324
- * Copies all of rectangle data from
325
- * the source Rectangle object into the calling Rectangle object.
326
- *
327
- * @param {Rectangle} source_rect
328
- * @return {void}
329
- * @method
330
- * @public
331
- */
332
- copyFrom(source_rect) {
333
- this.x = source_rect.x;
334
- this.y = source_rect.y;
335
- this.width = source_rect.width;
336
- this.height = source_rect.height;
337
- }
338
- /**
339
- * @description toCompare パラメーターで指定されたオブジェクトが
340
- * この Rectangle オブジェクトと等しいかどうかを判別します。
341
- * Determines whether the object specified
342
- * in the toCompare parameter is equal to this Rectangle object.
343
- *
344
- * @param {Rectangle} to_compare
345
- * @return {boolean}
346
- * @method
347
- * @public
348
- */
349
- equals(to_compare) {
350
- return this.x === to_compare.x && this.y === to_compare.y &&
351
- this.width === to_compare.width && this.height === to_compare.height;
352
- }
353
- /**
354
- * @description Rectangle オブジェクトのサイズを、指定された量(ピクセル単位)だけ大きくします。
355
- * Increases the size of the Rectangle object by the specified amounts, in pixels.
356
- *
357
- * @param {number} dx
358
- * @param {number} dy
359
- * @return void
360
- * @method
361
- * @public
362
- */
363
- inflate(dx, dy) {
364
- this.x = this.x - +dx;
365
- this.width = this.width + 2 * +dx;
366
- this.y = this.y - +dy;
367
- this.height = this.height + 2 * +dy;
368
- }
369
- /**
370
- * @description Rectangle オブジェクトのサイズを大きくします。
371
- * Increases the size of the Rectangle object.
372
- *
373
- * @param {Point} point
374
- * @return {void}
375
- * @method
376
- * @public
377
- */
378
- inflatePoint(point) {
379
- this.x = this.x - point.x;
380
- this.width = this.width + 2 * point.x;
381
- this.y = this.y - point.y;
382
- this.height = this.height + 2 * point.y;
383
- }
384
- /**
385
- * @description toIntersect パラメーターで指定された Rectangle オブジェクトが
386
- * この Rectangle オブジェクトと交差する場合に、交差領域を Rectangle オブジェクトとして返します。
387
- * If the Rectangle object specified in the toIntersect parameter intersects
388
- * with this Rectangle object, returns the area of intersection as a Rectangle object.
389
- *
390
- * @param {Rectangle} to_intersect
391
- * @return {Rectangle}
392
- * @method
393
- * @public
394
- */
395
- intersection(to_intersect) {
396
- const sx = $Math.max(this.x, to_intersect.x);
397
- const sy = $Math.max(this.y, to_intersect.y);
398
- const ex = $Math.min(this.right, to_intersect.right);
399
- const ey = $Math.min(this.bottom, to_intersect.bottom);
400
- const w = ex - sx;
401
- const h = ey - sy;
402
- return w > 0 && h > 0 ? new Rectangle(sx, sy, w, h) : new Rectangle(0, 0, 0, 0);
403
- }
404
- /**
405
- * @description toIntersect パラメーターで指定されたオブジェクトが
406
- * この Rectangle オブジェクトと交差するかどうかを判別します。
407
- * Determines whether the object specified
408
- * in the toIntersect parameter intersects with this Rectangle object.
409
- *
410
- * @param {Rectangle} to_intersect
411
- * @return {boolean}
412
- * @method
413
- * @public
414
- */
415
- intersects(to_intersect) {
416
- const sx = $Math.max(this.x, to_intersect.x);
417
- const sy = $Math.max(this.y, to_intersect.y);
418
- const ex = $Math.min(this.right, to_intersect.right);
419
- const ey = $Math.min(this.bottom, to_intersect.bottom);
420
- return ex - sx > 0 && ey - sy > 0;
421
- }
422
- /**
423
- * @description この Rectangle オブジェクトが空かどうかを判別します。
424
- * Determine if this Rectangle object is empty.
425
- *
426
- * @return {boolean}
427
- * @method
428
- * @public
429
- */
430
- isEmpty() {
431
- return this.width <= 0 || this.height <= 0;
432
- }
433
- /**
434
- * @description Rectangle オブジェクトの位置(左上隅で決定される)を、指定された量だけ調整します。
435
- * Adjusts the location of the Rectangle object,
436
- * as determined by its top-left corner, by the specified amounts.
437
- *
438
- * @param {number} dx
439
- * @param {number} dy
440
- * @return {void}
441
- * @method
442
- * @public
443
- */
444
- offset(dx, dy) {
445
- this.x += dx;
446
- this.y += dy;
447
- }
448
- /**
449
- * @description Point オブジェクトをパラメーターとして使用して、Rectangle オブジェクトの位置を調整します。
450
- * Adjusts the location of the Rectangle object using a Point object as a parameter.
451
- *
452
- * @param {Point} point
453
- * @return {void}
454
- * @method
455
- * @public
456
- */
457
- offsetPoint(point) {
458
- this.x += point.x;
459
- this.y += point.y;
460
- }
461
- /**
462
- * @description Rectangle オブジェクトのすべてのプロパティを 0 に設定します。
463
- * Sets all properties of the Rectangle object to 0.
464
- *
465
- * @return {void}
466
- * @method
467
- * @public
468
- */
469
- setEmpty() {
470
- this._$x = 0;
471
- this._$y = 0;
472
- this._$width = 0;
473
- this._$height = 0;
474
- }
475
- /**
476
- * @description Rectangle のメンバーを指定の値に設定します。
477
- * Sets the members of Rectangle to the specified values
478
- *
479
- * @param {number} x
480
- * @param {number} y
481
- * @param {number} width
482
- * @param {number} height
483
- * @return {void}
484
- * @method
485
- * @public
486
- */
487
- setTo(x, y, width, height) {
488
- this.x = x;
489
- this.y = y;
490
- this.width = width;
491
- this.height = height;
492
- }
493
- /**
494
- * @description 2 つの矩形間の水平と垂直の空間を塗りつぶすことにより、
495
- * 2 つの矩形を加算して新しい Rectangle オブジェクトを作成します。
496
- * Adds two rectangles together to create a new Rectangle object,
497
- * by filling in the horizontal and vertical space between the two rectangles.
498
- *
499
- * @param {Rectangle} to_union
500
- * @return {Rectangle}
501
- * @method
502
- * @public
503
- */
504
- union(to_union) {
505
- if (this.isEmpty()) {
506
- return to_union.clone();
507
- }
508
- if (to_union.isEmpty()) {
509
- return this.clone();
510
- }
511
- return new Rectangle($Math.min(this.x, to_union.x), $Math.min(this.y, to_union.y), $Math.max(this.right - to_union.left, to_union.right - this.left), $Math.max(this.bottom - to_union.top, to_union.bottom - this.top));
512
- }
513
- }