@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.
- package/index.js +3 -3
- package/package.json +31 -6
- package/interface/AjaxEventImpl.d.ts +0 -5
- package/interface/AjaxEventImpl.js +0 -1
- package/interface/AjaxOptionImpl.d.ts +0 -13
- package/interface/AjaxOptionImpl.js +0 -1
- package/interface/AttachmentImpl.d.ts +0 -11
- package/interface/AttachmentImpl.js +0 -1
- package/interface/BitmapDataChannelImpl.d.ts +0 -1
- package/interface/BitmapDataChannelImpl.js +0 -1
- package/interface/BitmapDrawObjectImpl.d.ts +0 -6
- package/interface/BitmapDrawObjectImpl.js +0 -1
- package/interface/BitmapFilterTypeImpl.d.ts +0 -1
- package/interface/BitmapFilterTypeImpl.js +0 -1
- package/interface/BlendModeImpl.d.ts +0 -1
- package/interface/BlendModeImpl.js +0 -1
- package/interface/BoundsImpl.d.ts +0 -6
- package/interface/BoundsImpl.js +0 -1
- package/interface/Character.d.ts +0 -2
- package/interface/Character.js +0 -1
- package/interface/CharacterImpl.d.ts +0 -2
- package/interface/CharacterImpl.js +0 -1
- package/interface/ClipObjectImpl.d.ts +0 -14
- package/interface/ClipObjectImpl.js +0 -1
- package/interface/ColorStopImpl.d.ts +0 -7
- package/interface/ColorStopImpl.js +0 -1
- package/interface/DictionaryTagImpl.d.ts +0 -7
- package/interface/DictionaryTagImpl.js +0 -1
- package/interface/DisplacementMapFilterModeImpl.d.ts +0 -1
- package/interface/DisplacementMapFilterModeImpl.js +0 -1
- package/interface/DisplayImpl.d.ts +0 -28
- package/interface/DisplayImpl.js +0 -1
- package/interface/DisplayObjectImpl.d.ts +0 -2
- package/interface/DisplayObjectImpl.js +0 -1
- package/interface/DragRulesImpl.d.ts +0 -7
- package/interface/DragRulesImpl.js +0 -1
- package/interface/DropTargetImpl.d.ts +0 -2
- package/interface/DropTargetImpl.js +0 -1
- package/interface/EventDispatcherImpl.d.ts +0 -2
- package/interface/EventDispatcherImpl.js +0 -1
- package/interface/EventListenerImpl.d.ts +0 -6
- package/interface/EventListenerImpl.js +0 -1
- package/interface/EventsImpl.d.ts +0 -20
- package/interface/EventsImpl.js +0 -1
- package/interface/FillMeshImpl.d.ts +0 -5
- package/interface/FillMeshImpl.js +0 -1
- package/interface/FilterArrayImpl.d.ts +0 -10
- package/interface/FilterArrayImpl.js +0 -1
- package/interface/FilterQualityImpl.d.ts +0 -1
- package/interface/FilterQualityImpl.js +0 -1
- package/interface/FiltersImpl.d.ts +0 -20
- package/interface/FiltersImpl.js +0 -1
- package/interface/GeomImpl.d.ts +0 -12
- package/interface/GeomImpl.js +0 -1
- package/interface/GradientTypeImpl.d.ts +0 -3
- package/interface/GradientTypeImpl.js +0 -1
- package/interface/GraphicsParentImpl.d.ts +0 -2
- package/interface/GraphicsParentImpl.js +0 -1
- package/interface/GridImpl.d.ts +0 -6
- package/interface/GridImpl.js +0 -1
- package/interface/ImageTypeImpl.d.ts +0 -1
- package/interface/ImageTypeImpl.js +0 -1
- package/interface/IndexRangeImpl.d.ts +0 -4
- package/interface/IndexRangeImpl.js +0 -1
- package/interface/LoaderInfoDataImpl.d.ts +0 -7
- package/interface/LoaderInfoDataImpl.js +0 -1
- package/interface/LoopConfigImpl.d.ts +0 -8
- package/interface/LoopConfigImpl.js +0 -1
- package/interface/LoopTypeImpl.d.ts +0 -1
- package/interface/LoopTypeImpl.js +0 -1
- package/interface/MediaImpl.d.ts +0 -10
- package/interface/MediaImpl.js +0 -1
- package/interface/MovieClipActionObjectImpl.d.ts +0 -5
- package/interface/MovieClipActionObjectImpl.js +0 -1
- package/interface/MovieClipCharacterImpl.d.ts +0 -18
- package/interface/MovieClipCharacterImpl.js +0 -1
- package/interface/MovieClipLabelObjectImpl.d.ts +0 -4
- package/interface/MovieClipLabelObjectImpl.js +0 -1
- package/interface/MovieClipSoundObjectImpl.d.ts +0 -5
- package/interface/MovieClipSoundObjectImpl.js +0 -1
- package/interface/NetImpl.d.ts +0 -6
- package/interface/NetImpl.js +0 -1
- package/interface/NoCodeDataImpl.d.ts +0 -7
- package/interface/NoCodeDataImpl.js +0 -1
- package/interface/NoCodeDataZlibImpl.d.ts +0 -4
- package/interface/NoCodeDataZlibImpl.js +0 -1
- package/interface/ParentImpl.d.ts +0 -2
- package/interface/ParentImpl.js +0 -1
- package/interface/PlaceObjectImpl.d.ts +0 -12
- package/interface/PlaceObjectImpl.js +0 -1
- package/interface/PlayerHitObjectImpl.d.ts +0 -7
- package/interface/PlayerHitObjectImpl.js +0 -1
- package/interface/PlayerModeImpl.d.ts +0 -1
- package/interface/PlayerModeImpl.js +0 -1
- package/interface/PlayerOptionsImpl.d.ts +0 -8
- package/interface/PlayerOptionsImpl.js +0 -1
- package/interface/PointImpl.d.ts +0 -4
- package/interface/PointImpl.js +0 -1
- package/interface/PreObjectImpl.d.ts +0 -23
- package/interface/PreObjectImpl.js +0 -1
- package/interface/PropertyBitmapDataMessageImpl.d.ts +0 -8
- package/interface/PropertyBitmapDataMessageImpl.js +0 -1
- package/interface/PropertyContainerMessageImpl.d.ts +0 -6
- package/interface/PropertyContainerMessageImpl.js +0 -1
- package/interface/PropertyMessageImpl.d.ts +0 -41
- package/interface/PropertyMessageImpl.js +0 -1
- package/interface/PropertyMessageMapImpl.d.ts +0 -2
- package/interface/PropertyMessageMapImpl.js +0 -1
- package/interface/PropertyShapeMessageImpl.d.ts +0 -6
- package/interface/PropertyShapeMessageImpl.js +0 -1
- package/interface/PropertyTextMessageImpl.d.ts +0 -25
- package/interface/PropertyTextMessageImpl.js +0 -1
- package/interface/PropertyVideoMessageImpl.d.ts +0 -5
- package/interface/PropertyVideoMessageImpl.js +0 -1
- package/interface/RGBAImpl.d.ts +0 -6
- package/interface/RGBAImpl.js +0 -1
- package/interface/ShapeCharacterImpl.d.ts +0 -14
- package/interface/ShapeCharacterImpl.js +0 -1
- package/interface/SoundCharacterImpl.d.ts +0 -5
- package/interface/SoundCharacterImpl.js +0 -1
- package/interface/SoundTagImpl.d.ts +0 -6
- package/interface/SoundTagImpl.js +0 -1
- package/interface/SpriteImpl.d.ts +0 -2
- package/interface/SpriteImpl.js +0 -1
- package/interface/StageDataImpl.d.ts +0 -6
- package/interface/StageDataImpl.js +0 -1
- package/interface/StageQualityImpl.d.ts +0 -1
- package/interface/StageQualityImpl.js +0 -1
- package/interface/StrokeMethImpl.d.ts +0 -4
- package/interface/StrokeMethImpl.js +0 -1
- package/interface/StrokeTypeImpl.d.ts +0 -2
- package/interface/StrokeTypeImpl.js +0 -1
- package/interface/SurfaceFilterImpl.d.ts +0 -6
- package/interface/SurfaceFilterImpl.js +0 -1
- package/interface/TextBreakObjectImpl.d.ts +0 -9
- package/interface/TextBreakObjectImpl.js +0 -1
- package/interface/TextCharacterImpl.d.ts +0 -27
- package/interface/TextCharacterImpl.js +0 -1
- package/interface/TextDataImpl.d.ts +0 -2
- package/interface/TextDataImpl.js +0 -1
- package/interface/TextFieldAutoSizeImpl.d.ts +0 -1
- package/interface/TextFieldAutoSizeImpl.js +0 -1
- package/interface/TextFieldTypeImpl.d.ts +0 -1
- package/interface/TextFieldTypeImpl.js +0 -1
- package/interface/TextFormatAlignImpl.d.ts +0 -1
- package/interface/TextFormatAlignImpl.js +0 -1
- package/interface/TextFormatVerticalAlignImpl.d.ts +0 -1
- package/interface/TextFormatVerticalAlignImpl.js +0 -1
- package/interface/TextImageObjectImpl.d.ts +0 -11
- package/interface/TextImageObjectImpl.js +0 -1
- package/interface/TextImpl.d.ts +0 -6
- package/interface/TextImpl.js +0 -1
- package/interface/TextObjectImpl.d.ts +0 -7
- package/interface/TextObjectImpl.js +0 -1
- package/interface/TextObjectModeImpl.d.ts +0 -1
- package/interface/TextObjectModeImpl.js +0 -1
- package/interface/TextStringObjectImpl.d.ts +0 -7
- package/interface/TextStringObjectImpl.js +0 -1
- package/interface/UIImpl.d.ts +0 -8
- package/interface/UIImpl.js +0 -1
- package/interface/URLLoaderDataFormatImpl.d.ts +0 -1
- package/interface/URLLoaderDataFormatImpl.js +0 -1
- package/interface/URLRequestMethodImpl.d.ts +0 -1
- package/interface/URLRequestMethodImpl.js +0 -1
- package/interface/UniformDataImpl.d.ts +0 -5
- package/interface/UniformDataImpl.js +0 -1
- package/interface/UnzipQueueImpl.d.ts +0 -6
- package/interface/UnzipQueueImpl.js +0 -1
- package/interface/VerticesImpl.d.ts +0 -1
- package/interface/VerticesImpl.js +0 -1
- package/interface/VideoCharacterImpl.d.ts +0 -12
- package/interface/VideoCharacterImpl.js +0 -1
- package/next2d/display/BitmapData.d.ts +0 -143
- package/next2d/display/BitmapData.js +0 -387
- package/next2d/display/BlendMode.d.ts +0 -204
- package/next2d/display/BlendMode.js +0 -240
- package/next2d/display/DisplayObject.d.ts +0 -565
- package/next2d/display/DisplayObject.js +0 -1670
- package/next2d/display/DisplayObjectContainer.d.ts +0 -351
- package/next2d/display/DisplayObjectContainer.js +0 -1776
- package/next2d/display/FrameLabel.d.ts +0 -98
- package/next2d/display/FrameLabel.js +0 -120
- package/next2d/display/Graphics.d.ts +0 -577
- package/next2d/display/Graphics.js +0 -2161
- package/next2d/display/GraphicsBitmapFill.d.ts +0 -49
- package/next2d/display/GraphicsBitmapFill.js +0 -86
- package/next2d/display/GraphicsGradientFill.d.ts +0 -66
- package/next2d/display/GraphicsGradientFill.js +0 -157
- package/next2d/display/InteractiveObject.d.ts +0 -32
- package/next2d/display/InteractiveObject.js +0 -43
- package/next2d/display/Loader.d.ts +0 -131
- package/next2d/display/Loader.js +0 -321
- package/next2d/display/LoaderInfo.d.ts +0 -122
- package/next2d/display/LoaderInfo.js +0 -184
- package/next2d/display/LoopConfig.d.ts +0 -108
- package/next2d/display/LoopConfig.js +0 -156
- package/next2d/display/LoopType.d.ts +0 -104
- package/next2d/display/LoopType.js +0 -122
- package/next2d/display/MovieClip.d.ts +0 -314
- package/next2d/display/MovieClip.js +0 -941
- package/next2d/display/Shape.d.ts +0 -169
- package/next2d/display/Shape.js +0 -509
- package/next2d/display/Sprite.d.ts +0 -175
- package/next2d/display/Sprite.js +0 -280
- package/next2d/display/Stage.d.ts +0 -164
- package/next2d/display/Stage.js +0 -251
- package/next2d/events/Event.d.ts +0 -424
- package/next2d/events/Event.js +0 -560
- package/next2d/events/EventDispatcher.d.ts +0 -138
- package/next2d/events/EventDispatcher.js +0 -623
- package/next2d/events/EventPhase.d.ts +0 -80
- package/next2d/events/EventPhase.js +0 -94
- package/next2d/events/FocusEvent.d.ts +0 -89
- package/next2d/events/FocusEvent.js +0 -103
- package/next2d/events/HTTPStatusEvent.d.ts +0 -107
- package/next2d/events/HTTPStatusEvent.js +0 -139
- package/next2d/events/IOErrorEvent.d.ts +0 -82
- package/next2d/events/IOErrorEvent.js +0 -101
- package/next2d/events/MouseEvent.d.ts +0 -163
- package/next2d/events/MouseEvent.js +0 -207
- package/next2d/events/ProgressEvent.d.ts +0 -97
- package/next2d/events/ProgressEvent.js +0 -123
- package/next2d/events/VideoEvent.d.ts +0 -145
- package/next2d/events/VideoEvent.js +0 -181
- package/next2d/filters/BevelFilter.d.ts +0 -254
- package/next2d/filters/BevelFilter.js +0 -491
- package/next2d/filters/BitmapFilter.d.ts +0 -75
- package/next2d/filters/BitmapFilter.js +0 -95
- package/next2d/filters/BlurFilter.d.ts +0 -150
- package/next2d/filters/BlurFilter.js +0 -370
- package/next2d/filters/ColorMatrixFilter.d.ts +0 -116
- package/next2d/filters/ColorMatrixFilter.js +0 -179
- package/next2d/filters/ConvolutionFilter.d.ts +0 -210
- package/next2d/filters/ConvolutionFilter.js +0 -366
- package/next2d/filters/DisplacementMapFilter.d.ts +0 -212
- package/next2d/filters/DisplacementMapFilter.js +0 -372
- package/next2d/filters/DropShadowFilter.d.ts +0 -240
- package/next2d/filters/DropShadowFilter.js +0 -461
- package/next2d/filters/GlowFilter.d.ts +0 -204
- package/next2d/filters/GlowFilter.js +0 -356
- package/next2d/filters/GradientBevelFilter.d.ts +0 -243
- package/next2d/filters/GradientBevelFilter.js +0 -474
- package/next2d/filters/GradientGlowFilter.d.ts +0 -243
- package/next2d/filters/GradientGlowFilter.js +0 -464
- package/next2d/geom/ColorTransform.d.ts +0 -201
- package/next2d/geom/ColorTransform.js +0 -278
- package/next2d/geom/Matrix.d.ts +0 -299
- package/next2d/geom/Matrix.js +0 -454
- package/next2d/geom/Point.d.ts +0 -213
- package/next2d/geom/Point.js +0 -274
- package/next2d/geom/Rectangle.d.ts +0 -364
- package/next2d/geom/Rectangle.js +0 -513
- package/next2d/geom/Transform.d.ts +0 -213
- package/next2d/geom/Transform.js +0 -492
- package/next2d/media/Sound.d.ts +0 -208
- package/next2d/media/Sound.js +0 -504
- package/next2d/media/SoundMixer.d.ts +0 -68
- package/next2d/media/SoundMixer.js +0 -115
- package/next2d/media/SoundTransform.d.ts +0 -80
- package/next2d/media/SoundTransform.js +0 -111
- package/next2d/media/Video.d.ts +0 -331
- package/next2d/media/Video.js +0 -856
- package/next2d/net/URLRequest.d.ts +0 -143
- package/next2d/net/URLRequest.js +0 -232
- package/next2d/net/URLRequestHeader.d.ts +0 -82
- package/next2d/net/URLRequestHeader.js +0 -105
- package/next2d/text/TextField.d.ts +0 -644
- package/next2d/text/TextField.js +0 -2662
- package/next2d/text/TextFormat.d.ts +0 -250
- package/next2d/text/TextFormat.js +0 -460
- package/next2d/ui/Easing.d.ts +0 -359
- package/next2d/ui/Easing.js +0 -481
- package/next2d/ui/Job.d.ts +0 -155
- package/next2d/ui/Job.js +0 -333
- package/next2d/ui/Tween.d.ts +0 -62
- package/next2d/ui/Tween.js +0 -72
- package/packages/Display.d.ts +0 -3
- package/packages/Display.js +0 -36
- package/packages/Events.d.ts +0 -3
- package/packages/Events.js +0 -28
- package/packages/Filters.d.ts +0 -3
- package/packages/Filters.js +0 -28
- package/packages/Geom.d.ts +0 -3
- package/packages/Geom.js +0 -20
- package/packages/Media.d.ts +0 -3
- package/packages/Media.js +0 -18
- package/packages/Net.d.ts +0 -3
- package/packages/Net.js +0 -14
- package/packages/Text.d.ts +0 -3
- package/packages/Text.js +0 -14
- package/packages/UI.d.ts +0 -3
- package/packages/UI.js +0 -16
- package/player/Next2D.d.ts +0 -70
- package/player/Next2D.js +0 -192
- package/player/Player.d.ts +0 -334
- package/player/Player.js +0 -1863
- package/util/CacheStore.d.ts +0 -115
- package/util/CacheStore.js +0 -276
- package/util/Global.d.ts +0 -23
- package/util/Global.js +0 -67
- package/util/RenderUtil.d.ts +0 -472
- package/util/RenderUtil.js +0 -686
- package/util/Shortcut.d.ts +0 -28
- package/util/Shortcut.js +0 -28
- package/util/Util.d.ts +0 -334
- package/util/Util.js +0 -844
- package/webgl/BezierConverter.d.ts +0 -59
- package/webgl/BezierConverter.js +0 -106
- package/webgl/CanvasGradientToWebGL.d.ts +0 -94
- package/webgl/CanvasGradientToWebGL.js +0 -181
- package/webgl/CanvasPatternToWebGL.d.ts +0 -39
- package/webgl/CanvasPatternToWebGL.js +0 -66
- package/webgl/CanvasToWebGLContext.d.ts +0 -596
- package/webgl/CanvasToWebGLContext.js +0 -1421
- package/webgl/CanvasToWebGLContextBlend.d.ts +0 -97
- package/webgl/CanvasToWebGLContextBlend.js +0 -299
- package/webgl/CanvasToWebGLContextGrid.d.ts +0 -74
- package/webgl/CanvasToWebGLContextGrid.js +0 -283
- package/webgl/CanvasToWebGLContextMask.d.ts +0 -113
- package/webgl/CanvasToWebGLContextMask.js +0 -436
- package/webgl/CanvasToWebGLContextPath.d.ts +0 -111
- package/webgl/CanvasToWebGLContextPath.js +0 -210
- package/webgl/CanvasToWebGLContextStyle.d.ts +0 -77
- package/webgl/CanvasToWebGLContextStyle.js +0 -139
- package/webgl/ColorBufferPool.d.ts +0 -58
- package/webgl/ColorBufferPool.js +0 -134
- package/webgl/FrameBufferManager.d.ts +0 -135
- package/webgl/FrameBufferManager.js +0 -358
- package/webgl/StencilBufferPool.d.ts +0 -56
- package/webgl/StencilBufferPool.js +0 -142
- package/webgl/TextureManager.d.ts +0 -130
- package/webgl/TextureManager.js +0 -296
- package/webgl/VertexArrayObjectManager.d.ts +0 -95
- package/webgl/VertexArrayObjectManager.js +0 -277
- package/webgl/WebGLFillMeshGenerator.d.ts +0 -31
- package/webgl/WebGLFillMeshGenerator.js +0 -101
- package/webgl/WebGLStrokeMeshGenerator.d.ts +0 -182
- package/webgl/WebGLStrokeMeshGenerator.js +0 -504
- package/webgl/shader/CanvasToWebGLShader.d.ts +0 -85
- package/webgl/shader/CanvasToWebGLShader.js +0 -192
- package/webgl/shader/CanvasToWebGLShaderList.d.ts +0 -70
- package/webgl/shader/CanvasToWebGLShaderList.js +0 -109
- package/webgl/shader/GradientLUTGenerator.d.ts +0 -36
- package/webgl/shader/GradientLUTGenerator.js +0 -123
- package/webgl/shader/WebGLShaderUniform.d.ts +0 -52
- package/webgl/shader/WebGLShaderUniform.js +0 -165
- package/webgl/shader/fragment/FragmentShaderLibrary.d.ts +0 -18
- package/webgl/shader/fragment/FragmentShaderLibrary.js +0 -35
- package/webgl/shader/fragment/FragmentShaderSource.d.ts +0 -29
- package/webgl/shader/fragment/FragmentShaderSource.js +0 -99
- package/webgl/shader/fragment/FragmentShaderSourceBlend.d.ts +0 -67
- package/webgl/shader/fragment/FragmentShaderSourceBlend.js +0 -319
- package/webgl/shader/fragment/FragmentShaderSourceGradient.d.ts +0 -44
- package/webgl/shader/fragment/FragmentShaderSourceGradient.js +0 -114
- package/webgl/shader/fragment/FragmentShaderSourceGradientLUT.d.ts +0 -14
- package/webgl/shader/fragment/FragmentShaderSourceGradientLUT.js +0 -58
- package/webgl/shader/fragment/FragmentShaderSourceTexture.d.ts +0 -12
- package/webgl/shader/fragment/FragmentShaderSourceTexture.js +0 -36
- package/webgl/shader/fragment/filter/FragmentShaderSourceBlurFilter.d.ts +0 -12
- package/webgl/shader/fragment/filter/FragmentShaderSourceBlurFilter.js +0 -42
- package/webgl/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.d.ts +0 -11
- package/webgl/shader/fragment/filter/FragmentShaderSourceColorMatrixFilter.js +0 -35
- package/webgl/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.d.ts +0 -16
- package/webgl/shader/fragment/filter/FragmentShaderSourceConvolutionFilter.js +0 -80
- package/webgl/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.d.ts +0 -15
- package/webgl/shader/fragment/filter/FragmentShaderSourceDisplacementMapFilter.js +0 -106
- package/webgl/shader/fragment/filter/FragmentShaderSourceFilter.d.ts +0 -112
- package/webgl/shader/fragment/filter/FragmentShaderSourceFilter.js +0 -275
- package/webgl/shader/variants/BlendShaderVariantCollection.d.ts +0 -99
- package/webgl/shader/variants/BlendShaderVariantCollection.js +0 -239
- package/webgl/shader/variants/FilterShaderVariantCollection.d.ts +0 -150
- package/webgl/shader/variants/FilterShaderVariantCollection.js +0 -395
- package/webgl/shader/variants/GradientLUTShaderVariantCollection.d.ts +0 -49
- package/webgl/shader/variants/GradientLUTShaderVariantCollection.js +0 -107
- package/webgl/shader/variants/GradientShapeShaderVariantCollection.d.ts +0 -61
- package/webgl/shader/variants/GradientShapeShaderVariantCollection.js +0 -196
- package/webgl/shader/variants/ShapeShaderVariantCollection.d.ts +0 -117
- package/webgl/shader/variants/ShapeShaderVariantCollection.js +0 -427
- package/webgl/shader/vertex/VertexShaderLibrary.d.ts +0 -18
- package/webgl/shader/vertex/VertexShaderLibrary.js +0 -75
- package/webgl/shader/vertex/VertexShaderSource.d.ts +0 -23
- package/webgl/shader/vertex/VertexShaderSource.js +0 -92
- package/webgl/shader/vertex/VertexShaderSourceFill.d.ts +0 -45
- package/webgl/shader/vertex/VertexShaderSourceFill.js +0 -112
- package/webgl/shader/vertex/VertexShaderSourceStroke.d.ts +0 -27
- package/webgl/shader/vertex/VertexShaderSourceStroke.js +0 -149
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import { BitmapFilter } from "./BitmapFilter";
|
|
2
|
-
import { BlurFilter } from "./BlurFilter";
|
|
3
|
-
import { $Array, $clamp, $Deg2Rad, $getArray, $Math, $toColorInt } from "../../util/RenderUtil";
|
|
4
|
-
/**
|
|
5
|
-
* GradientBevelFilter クラスを使用すると、オブジェクトにグラデーションベベル効果を適用し、表示できます。
|
|
6
|
-
* グラデーションベベルは、オブジェクトの外側、内側、または上側が斜めになったエッジであり、グラデーションカラーで強調されます。
|
|
7
|
-
* 斜めのエッジによってオブジェクトが 3 次元に見えます。
|
|
8
|
-
*
|
|
9
|
-
* The GradientBevelFilter class lets you apply a gradient bevel effect to display objects.
|
|
10
|
-
* A gradient bevel is a beveled edge, enhanced with gradient color,
|
|
11
|
-
* on the outside, inside, or top of an object.
|
|
12
|
-
* Beveled edges make objects look three-dimensional.
|
|
13
|
-
*
|
|
14
|
-
* @class
|
|
15
|
-
* @memberOf next2d.filters
|
|
16
|
-
* @extends BitmapFilter
|
|
17
|
-
*/
|
|
18
|
-
export class GradientBevelFilter extends BitmapFilter {
|
|
19
|
-
/**
|
|
20
|
-
* @param {number} [distance=4.0]
|
|
21
|
-
* @param {number} [angle=45]
|
|
22
|
-
* @param {array} [colors=null]
|
|
23
|
-
* @param {array} [alphas=null]
|
|
24
|
-
* @param {array} [ratios=null]
|
|
25
|
-
* @param {number} [blur_x=4.0]
|
|
26
|
-
* @param {number} [blur_y=4.0]
|
|
27
|
-
* @param {number} [strength=1]
|
|
28
|
-
* @param {number} [quality=1]
|
|
29
|
-
* @param {string} [type=BitmapFilterType.INNER]
|
|
30
|
-
* @param {boolean} [knockout=false]
|
|
31
|
-
*
|
|
32
|
-
* @constructor
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
constructor(distance = 4, angle = 45, colors = null, alphas = null, ratios = null, blur_x = 4, blur_y = 4, strength = 1, quality = 1, type = "inner", knockout = false) {
|
|
36
|
-
super();
|
|
37
|
-
/**
|
|
38
|
-
* @type {BlurFilter}
|
|
39
|
-
* @default BlurFilter
|
|
40
|
-
* @private
|
|
41
|
-
*/
|
|
42
|
-
this._$blurFilter = new BlurFilter(blur_x, blur_y, quality);
|
|
43
|
-
/**
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @default 4
|
|
46
|
-
* @private
|
|
47
|
-
*/
|
|
48
|
-
this._$distance = 4;
|
|
49
|
-
/**
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @default 45
|
|
52
|
-
* @private
|
|
53
|
-
*/
|
|
54
|
-
this._$angle = 45;
|
|
55
|
-
/**
|
|
56
|
-
* @type {array}
|
|
57
|
-
* @default null
|
|
58
|
-
* @private
|
|
59
|
-
*/
|
|
60
|
-
this._$colors = null;
|
|
61
|
-
/**
|
|
62
|
-
* @type {array}
|
|
63
|
-
* @default null
|
|
64
|
-
* @private
|
|
65
|
-
*/
|
|
66
|
-
this._$alphas = null;
|
|
67
|
-
/**
|
|
68
|
-
* @type {array}
|
|
69
|
-
* @default null
|
|
70
|
-
* @private
|
|
71
|
-
*/
|
|
72
|
-
this._$ratios = null;
|
|
73
|
-
/**
|
|
74
|
-
* @type {number}
|
|
75
|
-
* @default 1
|
|
76
|
-
* @private
|
|
77
|
-
*/
|
|
78
|
-
this._$strength = 1;
|
|
79
|
-
/**
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @default BitmapFilterType.INNER
|
|
82
|
-
* @private
|
|
83
|
-
*/
|
|
84
|
-
this._$type = "inner";
|
|
85
|
-
/**
|
|
86
|
-
* @type {boolean}
|
|
87
|
-
* @default false
|
|
88
|
-
* @private
|
|
89
|
-
*/
|
|
90
|
-
this._$knockout = false;
|
|
91
|
-
// setup
|
|
92
|
-
this.distance = distance;
|
|
93
|
-
this.angle = angle;
|
|
94
|
-
this.colors = colors;
|
|
95
|
-
this.alphas = alphas;
|
|
96
|
-
this.ratios = ratios;
|
|
97
|
-
this.strength = strength;
|
|
98
|
-
this.type = type;
|
|
99
|
-
this.knockout = knockout;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @description 指定されたクラスのストリングを返します。
|
|
103
|
-
* Returns the string representation of the specified class.
|
|
104
|
-
*
|
|
105
|
-
* @return {string}
|
|
106
|
-
* @default [class GradientBevelFilter]
|
|
107
|
-
* @method
|
|
108
|
-
* @static
|
|
109
|
-
*/
|
|
110
|
-
static toString() {
|
|
111
|
-
return "[class GradientBevelFilter]";
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* @description 指定されたクラスの空間名を返します。
|
|
115
|
-
* Returns the space name of the specified class.
|
|
116
|
-
*
|
|
117
|
-
* @return {string}
|
|
118
|
-
* @default next2d.filters.GradientBevelFilter
|
|
119
|
-
* @const
|
|
120
|
-
* @static
|
|
121
|
-
*/
|
|
122
|
-
static get namespace() {
|
|
123
|
-
return "next2d.filters.GradientBevelFilter";
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @description 指定されたオブジェクトのストリングを返します。
|
|
127
|
-
* Returns the string representation of the specified object.
|
|
128
|
-
*
|
|
129
|
-
* @return {string}
|
|
130
|
-
* @default [object GradientBevelFilter]
|
|
131
|
-
* @method
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
|
-
toString() {
|
|
135
|
-
return "[object GradientBevelFilter]";
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* @description 指定されたオブジェクトの空間名を返します。
|
|
139
|
-
* Returns the space name of the specified object.
|
|
140
|
-
*
|
|
141
|
-
* @return {string}
|
|
142
|
-
* @default next2d.filters.GradientBevelFilter
|
|
143
|
-
* @const
|
|
144
|
-
* @public
|
|
145
|
-
*/
|
|
146
|
-
get namespace() {
|
|
147
|
-
return "next2d.filters.GradientBevelFilter";
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* @description カラー配列内の各色に対応するアルファ透明度の値の配列です。
|
|
151
|
-
* An array of alpha transparency values
|
|
152
|
-
* for the corresponding colors in the colors array.
|
|
153
|
-
*
|
|
154
|
-
* @member {array}
|
|
155
|
-
* @default null
|
|
156
|
-
* @public
|
|
157
|
-
*/
|
|
158
|
-
get alphas() {
|
|
159
|
-
return this._$alphas;
|
|
160
|
-
}
|
|
161
|
-
set alphas(alphas) {
|
|
162
|
-
if (alphas !== this._$alphas) {
|
|
163
|
-
this._$alphas = alphas;
|
|
164
|
-
if ($Array.isArray(alphas)) {
|
|
165
|
-
for (let idx = 0; idx < alphas.length; ++idx) {
|
|
166
|
-
const alpha = alphas[idx];
|
|
167
|
-
alphas[idx] = $clamp(+alpha, 0, 1, 0);
|
|
168
|
-
}
|
|
169
|
-
this._$alphas = alphas;
|
|
170
|
-
}
|
|
171
|
-
this._$doChanged();
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* @description シャドウの角度
|
|
176
|
-
* The angle of the shadow.
|
|
177
|
-
*
|
|
178
|
-
* @member {number}
|
|
179
|
-
* @default 45
|
|
180
|
-
* @public
|
|
181
|
-
*/
|
|
182
|
-
get angle() {
|
|
183
|
-
return this._$angle;
|
|
184
|
-
}
|
|
185
|
-
set angle(angle) {
|
|
186
|
-
angle = $clamp(angle % 360, -360, 360, 45);
|
|
187
|
-
if (angle !== this._$angle) {
|
|
188
|
-
this._$angle = angle;
|
|
189
|
-
this._$doChanged();
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* @description 水平方向のぼかし量。
|
|
194
|
-
* The amount of horizontal blur.
|
|
195
|
-
*
|
|
196
|
-
* @member {number}
|
|
197
|
-
* @default 4
|
|
198
|
-
* @public
|
|
199
|
-
*/
|
|
200
|
-
get blurX() {
|
|
201
|
-
return this._$blurFilter.blurX;
|
|
202
|
-
}
|
|
203
|
-
set blurX(blur_x) {
|
|
204
|
-
this._$blurFilter.blurX = blur_x;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* @description 垂直方向のぼかし量。
|
|
208
|
-
* The amount of vertical blur.
|
|
209
|
-
*
|
|
210
|
-
* @member {number}
|
|
211
|
-
* @default 4
|
|
212
|
-
* @public
|
|
213
|
-
*/
|
|
214
|
-
get blurY() {
|
|
215
|
-
return this._$blurFilter.blurY;
|
|
216
|
-
}
|
|
217
|
-
set blurY(blur_y) {
|
|
218
|
-
this._$blurFilter.blurY = blur_y;
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* @description グラデーションで使用する RGB 16 進数カラー値の配列です。
|
|
222
|
-
* An array of RGB hexadecimal color values to use in the gradient.
|
|
223
|
-
*
|
|
224
|
-
* @member {array}
|
|
225
|
-
* @default null
|
|
226
|
-
* @public
|
|
227
|
-
*/
|
|
228
|
-
get colors() {
|
|
229
|
-
return this._$colors;
|
|
230
|
-
}
|
|
231
|
-
set colors(colors) {
|
|
232
|
-
if (this._$colors !== colors) {
|
|
233
|
-
this._$colors = colors;
|
|
234
|
-
if ($Array.isArray(colors)) {
|
|
235
|
-
for (let idx = 0; idx < colors.length; ++idx) {
|
|
236
|
-
colors[idx] = $clamp($toColorInt(colors[idx]), 0, 0xffffff, 0);
|
|
237
|
-
}
|
|
238
|
-
this._$colors = colors;
|
|
239
|
-
}
|
|
240
|
-
this._$doChanged();
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* @description シャドウのオフセット距離です。
|
|
245
|
-
* The offset distance for the shadow, in pixels.
|
|
246
|
-
*
|
|
247
|
-
* @member {number}
|
|
248
|
-
* @default 4
|
|
249
|
-
* @public
|
|
250
|
-
*/
|
|
251
|
-
get distance() {
|
|
252
|
-
return this._$distance;
|
|
253
|
-
}
|
|
254
|
-
set distance(distance) {
|
|
255
|
-
distance = $clamp(+distance, -255, 255, 4);
|
|
256
|
-
if (distance !== this._$distance) {
|
|
257
|
-
this._$distance = distance;
|
|
258
|
-
this._$doChanged();
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* @description オブジェクトにノックアウト効果を適用するかどうか
|
|
263
|
-
* Specifies whether the object has a knockout effect.
|
|
264
|
-
*
|
|
265
|
-
* @member {boolean}
|
|
266
|
-
* @default false
|
|
267
|
-
* @public
|
|
268
|
-
*/
|
|
269
|
-
get knockout() {
|
|
270
|
-
return this._$knockout;
|
|
271
|
-
}
|
|
272
|
-
set knockout(knockout) {
|
|
273
|
-
if (knockout !== this._$knockout) {
|
|
274
|
-
this._$knockout = !!knockout;
|
|
275
|
-
this._$doChanged();
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* @description ぼかしの実行回数です。
|
|
280
|
-
* The number of times to perform the blur.
|
|
281
|
-
*
|
|
282
|
-
* @member {number}
|
|
283
|
-
* @default 1
|
|
284
|
-
* @public
|
|
285
|
-
*/
|
|
286
|
-
get quality() {
|
|
287
|
-
return this._$blurFilter.quality;
|
|
288
|
-
}
|
|
289
|
-
set quality(quality) {
|
|
290
|
-
this._$blurFilter.quality = quality;
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* @description カラー配列内の対応するカラーの色分布比率の配列です。
|
|
294
|
-
* An array of color distribution ratios
|
|
295
|
-
* for the corresponding colors in the colors array.
|
|
296
|
-
*
|
|
297
|
-
* @member {array}
|
|
298
|
-
* @default null
|
|
299
|
-
* @public
|
|
300
|
-
*/
|
|
301
|
-
get ratios() {
|
|
302
|
-
return this._$ratios;
|
|
303
|
-
}
|
|
304
|
-
set ratios(ratios) {
|
|
305
|
-
if (this._$ratios !== ratios) {
|
|
306
|
-
this._$ratios = ratios;
|
|
307
|
-
if ($Array.isArray(ratios)) {
|
|
308
|
-
for (let idx = 0; idx < ratios.length; ++idx) {
|
|
309
|
-
ratios[idx] = $clamp(+ratios[idx], 0, 255, 0);
|
|
310
|
-
}
|
|
311
|
-
this._$ratios = ratios;
|
|
312
|
-
}
|
|
313
|
-
this._$doChanged();
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* @description インプリントの強さまたは広がりです。
|
|
318
|
-
* The strength of the imprint or spread.
|
|
319
|
-
*
|
|
320
|
-
* @member {number}
|
|
321
|
-
* @default 1
|
|
322
|
-
* @public
|
|
323
|
-
*/
|
|
324
|
-
get strength() {
|
|
325
|
-
return this._$strength;
|
|
326
|
-
}
|
|
327
|
-
set strength(strength) {
|
|
328
|
-
strength = $clamp(strength | 0, 0, 255, 0);
|
|
329
|
-
if (strength !== this._$strength) {
|
|
330
|
-
this._$strength = strength;
|
|
331
|
-
this._$doChanged();
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* @description オブジェクトでのベベルの配置
|
|
336
|
-
* The placement of the bevel on the object.
|
|
337
|
-
*
|
|
338
|
-
* @member {string}
|
|
339
|
-
* @default BitmapFilterType.INNER
|
|
340
|
-
* @public
|
|
341
|
-
*/
|
|
342
|
-
get type() {
|
|
343
|
-
return this._$type;
|
|
344
|
-
}
|
|
345
|
-
set type(type) {
|
|
346
|
-
if (type !== this._$type) {
|
|
347
|
-
this._$type = type;
|
|
348
|
-
this._$doChanged();
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* @description オブジェクトのコピーを返します。
|
|
353
|
-
* Returns a copy of this filter object.
|
|
354
|
-
*
|
|
355
|
-
* @return {GradientBevelFilter}
|
|
356
|
-
* @method
|
|
357
|
-
* @public
|
|
358
|
-
*/
|
|
359
|
-
clone() {
|
|
360
|
-
return new GradientBevelFilter(this._$distance, this._$angle, this._$colors ? this._$colors.slice() : null, this._$alphas ? this._$alphas.slice() : null, this._$ratios ? this._$ratios.slice() : null, this._$blurFilter.blurX, this._$blurFilter.blurY, this._$strength, this._$blurFilter.quality, this._$type, this._$knockout);
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* @return {array}
|
|
364
|
-
* @method
|
|
365
|
-
* @public
|
|
366
|
-
*/
|
|
367
|
-
_$toArray() {
|
|
368
|
-
return $getArray(7, this._$distance, this._$angle, this._$colors, this._$alphas, this._$ratios, this._$blurFilter.blurX, this._$blurFilter.blurY, this._$strength, this._$blurFilter.quality, this._$type, this._$knockout);
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* @return {boolean}
|
|
372
|
-
* @method
|
|
373
|
-
* @private
|
|
374
|
-
*/
|
|
375
|
-
_$isUpdated() {
|
|
376
|
-
return this._$updated || this._$blurFilter._$isUpdated();
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* @param {Rectangle} rect
|
|
380
|
-
* @param {number} [x_scale=0]
|
|
381
|
-
* @param {number} [y_scale=0]
|
|
382
|
-
* @return {Rectangle}
|
|
383
|
-
* @method
|
|
384
|
-
* @private
|
|
385
|
-
*/
|
|
386
|
-
_$generateFilterRect(rect, x_scale = 0, y_scale = 0) {
|
|
387
|
-
let clone = rect.clone();
|
|
388
|
-
if (!this._$canApply()) {
|
|
389
|
-
return clone;
|
|
390
|
-
}
|
|
391
|
-
clone = this._$blurFilter._$generateFilterRect(clone, x_scale, y_scale);
|
|
392
|
-
const radian = this._$angle * $Deg2Rad;
|
|
393
|
-
const x = $Math.abs($Math.cos(radian) * this._$distance);
|
|
394
|
-
const y = $Math.abs($Math.sin(radian) * this._$distance);
|
|
395
|
-
clone.x += -x;
|
|
396
|
-
clone.width += x;
|
|
397
|
-
clone.y += -y;
|
|
398
|
-
clone.height += y * 2;
|
|
399
|
-
return clone;
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* @return {boolean}
|
|
403
|
-
* @method
|
|
404
|
-
* @private
|
|
405
|
-
*/
|
|
406
|
-
_$canApply() {
|
|
407
|
-
return this._$strength > 0 && this._$distance > 0
|
|
408
|
-
&& this._$alphas !== null && this._$ratios !== null && this._$colors !== null
|
|
409
|
-
&& this._$blurFilter._$canApply();
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* @param {CanvasToWebGLContext} context
|
|
413
|
-
* @param {Float32Array} matrix
|
|
414
|
-
* @return {WebGLTexture}
|
|
415
|
-
* @method
|
|
416
|
-
* @private
|
|
417
|
-
*/
|
|
418
|
-
_$applyFilter(context, matrix) {
|
|
419
|
-
this._$updated = false;
|
|
420
|
-
const manager = context.frameBuffer;
|
|
421
|
-
const currentAttachment = manager.currentAttachment;
|
|
422
|
-
// reset
|
|
423
|
-
context.setTransform(1, 0, 0, 1, 0, 0);
|
|
424
|
-
const baseTexture = manager
|
|
425
|
-
.getTextureFromCurrentAttachment();
|
|
426
|
-
if (!this._$canApply() || !currentAttachment) {
|
|
427
|
-
return baseTexture;
|
|
428
|
-
}
|
|
429
|
-
const baseWidth = currentAttachment.width;
|
|
430
|
-
const baseHeight = currentAttachment.height;
|
|
431
|
-
const baseOffsetX = context._$offsetX;
|
|
432
|
-
const baseOffsetY = context._$offsetY;
|
|
433
|
-
// matrix to scale
|
|
434
|
-
const xScale = $Math.sqrt(matrix[0] * matrix[0] + matrix[1] * matrix[1]);
|
|
435
|
-
const yScale = $Math.sqrt(matrix[2] * matrix[2] + matrix[3] * matrix[3]);
|
|
436
|
-
// pointer
|
|
437
|
-
const radian = +(this._$angle * $Deg2Rad);
|
|
438
|
-
const x = +($Math.cos(radian) * this._$distance * xScale);
|
|
439
|
-
const y = +($Math.sin(radian) * this._$distance * yScale);
|
|
440
|
-
// highlight buffer
|
|
441
|
-
const highlightTextureBaseAttachment = manager
|
|
442
|
-
.createTextureAttachment(baseWidth, baseHeight);
|
|
443
|
-
context._$bind(highlightTextureBaseAttachment);
|
|
444
|
-
context.reset();
|
|
445
|
-
context.drawImage(baseTexture, 0, 0, baseWidth, baseHeight);
|
|
446
|
-
context.globalCompositeOperation = "erase";
|
|
447
|
-
context.drawImage(baseTexture, x * 2, y * 2, baseWidth, baseHeight);
|
|
448
|
-
const highlightTextureBase = this
|
|
449
|
-
._$blurFilter
|
|
450
|
-
._$applyFilter(context, matrix, false);
|
|
451
|
-
const blurWidth = highlightTextureBase.width;
|
|
452
|
-
const blurHeight = highlightTextureBase.height;
|
|
453
|
-
const bevelWidth = $Math.ceil(blurWidth + $Math.abs(x) * 2);
|
|
454
|
-
const bevelHeight = $Math.ceil(blurHeight + $Math.abs(y) * 2);
|
|
455
|
-
// bevel filter buffer
|
|
456
|
-
const isInner = this._$type === "inner";
|
|
457
|
-
const width = isInner ? baseWidth : bevelWidth;
|
|
458
|
-
const height = isInner ? baseHeight : bevelHeight;
|
|
459
|
-
const absX = $Math.abs(x);
|
|
460
|
-
const absY = $Math.abs(y);
|
|
461
|
-
const blurOffsetX = (blurWidth - baseWidth) / 2;
|
|
462
|
-
const blurOffsetY = (blurHeight - baseHeight) / 2;
|
|
463
|
-
const baseTextureX = isInner ? 0 : absX + blurOffsetX;
|
|
464
|
-
const baseTextureY = isInner ? 0 : absY + blurOffsetY;
|
|
465
|
-
const blurTextureX = isInner ? -blurOffsetX - x : absX - x;
|
|
466
|
-
const blurTextureY = isInner ? -blurOffsetY - y : absY - y;
|
|
467
|
-
context._$bind(currentAttachment);
|
|
468
|
-
context._$applyBitmapFilter(highlightTextureBase, width, height, baseWidth, baseHeight, baseTextureX, baseTextureY, blurWidth, blurHeight, blurTextureX, blurTextureY, false, this._$type, this._$knockout, this._$strength, this._$ratios, this._$colors, this._$alphas, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
469
|
-
context._$offsetX = baseOffsetX + baseTextureX;
|
|
470
|
-
context._$offsetY = baseOffsetY + baseTextureY;
|
|
471
|
-
manager.releaseAttachment(highlightTextureBaseAttachment, true);
|
|
472
|
-
return manager.getTextureFromCurrentAttachment();
|
|
473
|
-
}
|
|
474
|
-
}
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { BitmapFilter } from "./BitmapFilter";
|
|
2
|
-
import type { FilterQualityImpl } from "../../interface/FilterQualityImpl";
|
|
3
|
-
import type { BitmapFilterTypeImpl } from "../../interface/BitmapFilterTypeImpl";
|
|
4
|
-
import type { Rectangle } from "../geom/Rectangle";
|
|
5
|
-
import type { CanvasToWebGLContext } from "../../webgl/CanvasToWebGLContext";
|
|
6
|
-
/**
|
|
7
|
-
* GradientGlowFilter クラスを使用すると、表示オブジェクトにグラデーショングロー効果を適用できます。
|
|
8
|
-
* グラデーショングローとは、制御可能なカラーグラデーションによるリアルな輝きです。
|
|
9
|
-
* グラデーショングローは、オブジェクトの内側エッジや外側エッジの周囲、またはオブジェクトの上に適用できます。
|
|
10
|
-
*
|
|
11
|
-
* The GradientGlowFilter class lets you apply a gradient glow effect to display objects.
|
|
12
|
-
* A gradient glow is a realistic-looking glow with a color gradient that you can control.
|
|
13
|
-
* You can apply a gradient glow around the inner or outer edge of an object or on top of an object.
|
|
14
|
-
*
|
|
15
|
-
* @class
|
|
16
|
-
* @memberOf next2d.filters
|
|
17
|
-
* @extends BitmapFilter
|
|
18
|
-
*/
|
|
19
|
-
export declare class GradientGlowFilter extends BitmapFilter {
|
|
20
|
-
private _$blurFilter;
|
|
21
|
-
private _$distance;
|
|
22
|
-
private _$angle;
|
|
23
|
-
private _$colors;
|
|
24
|
-
private _$alphas;
|
|
25
|
-
private _$ratios;
|
|
26
|
-
private _$strength;
|
|
27
|
-
private _$type;
|
|
28
|
-
private _$knockout;
|
|
29
|
-
/**
|
|
30
|
-
* @param {number} [distance=4.0]
|
|
31
|
-
* @param {number} [angle=45]
|
|
32
|
-
* @param {array} [colors=null]
|
|
33
|
-
* @param {array} [alphas=null]
|
|
34
|
-
* @param {array} [ratios=null]
|
|
35
|
-
* @param {number} [blur_x=4.0]
|
|
36
|
-
* @param {number} [blur_y=4.0]
|
|
37
|
-
* @param {number} [strength=1]
|
|
38
|
-
* @param {number} [quality=1]
|
|
39
|
-
* @param {string} [type=BitmapFilterType.INNER]
|
|
40
|
-
* @param {boolean} [knockout=false]
|
|
41
|
-
*
|
|
42
|
-
* @constructor
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
45
|
-
constructor(distance?: number, angle?: number, colors?: number[] | null, alphas?: number[] | null, ratios?: number[] | null, blur_x?: number, blur_y?: number, strength?: number, quality?: FilterQualityImpl, type?: BitmapFilterTypeImpl, knockout?: boolean);
|
|
46
|
-
/**
|
|
47
|
-
* @description 指定されたクラスのストリングを返します。
|
|
48
|
-
* Returns the string representation of the specified class.
|
|
49
|
-
*
|
|
50
|
-
* @return {string}
|
|
51
|
-
* @default [class GradientGlowFilter]
|
|
52
|
-
* @method
|
|
53
|
-
* @static
|
|
54
|
-
*/
|
|
55
|
-
static toString(): string;
|
|
56
|
-
/**
|
|
57
|
-
* @description 指定されたクラスの空間名を返します。
|
|
58
|
-
* Returns the space name of the specified class.
|
|
59
|
-
*
|
|
60
|
-
* @return {string}
|
|
61
|
-
* @default next2d.filters.GradientGlowFilter
|
|
62
|
-
* @const
|
|
63
|
-
* @static
|
|
64
|
-
*/
|
|
65
|
-
static get namespace(): string;
|
|
66
|
-
/**
|
|
67
|
-
* @description 指定されたオブジェクトのストリングを返します。
|
|
68
|
-
* Returns the string representation of the specified object.
|
|
69
|
-
*
|
|
70
|
-
* @return {string}
|
|
71
|
-
* @default [object GradientGlowFilter]
|
|
72
|
-
* @method
|
|
73
|
-
* @public
|
|
74
|
-
*/
|
|
75
|
-
toString(): string;
|
|
76
|
-
/**
|
|
77
|
-
* @description 指定されたオブジェクトの空間名を返します。
|
|
78
|
-
* Returns the space name of the specified object.
|
|
79
|
-
*
|
|
80
|
-
* @return {string}
|
|
81
|
-
* @default next2d.filters.GradientGlowFilter
|
|
82
|
-
* @const
|
|
83
|
-
* @public
|
|
84
|
-
*/
|
|
85
|
-
get namespace(): string;
|
|
86
|
-
/**
|
|
87
|
-
* @description カラー配列内の各色に対応するアルファ透明度の値の配列です。
|
|
88
|
-
* An array of alpha transparency values
|
|
89
|
-
* for the corresponding colors in the colors array.
|
|
90
|
-
*
|
|
91
|
-
* @member {array}
|
|
92
|
-
* @default null
|
|
93
|
-
* @public
|
|
94
|
-
*/
|
|
95
|
-
get alphas(): number[] | null;
|
|
96
|
-
set alphas(alphas: number[] | null);
|
|
97
|
-
/**
|
|
98
|
-
* @description シャドウの角度
|
|
99
|
-
* The angle of the shadow.
|
|
100
|
-
*
|
|
101
|
-
* @member {number}
|
|
102
|
-
* @default 45
|
|
103
|
-
* @public
|
|
104
|
-
*/
|
|
105
|
-
get angle(): number;
|
|
106
|
-
set angle(angle: number);
|
|
107
|
-
/**
|
|
108
|
-
* @description 水平方向のぼかし量。
|
|
109
|
-
* The amount of horizontal blur.
|
|
110
|
-
*
|
|
111
|
-
* @member {number}
|
|
112
|
-
* @default 4
|
|
113
|
-
* @public
|
|
114
|
-
*/
|
|
115
|
-
get blurX(): number;
|
|
116
|
-
set blurX(blur_x: number);
|
|
117
|
-
/**
|
|
118
|
-
* @description 垂直方向のぼかし量。
|
|
119
|
-
* The amount of vertical blur.
|
|
120
|
-
*
|
|
121
|
-
* @member {number}
|
|
122
|
-
* @default 4
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
|
-
get blurY(): number;
|
|
126
|
-
set blurY(blur_y: number);
|
|
127
|
-
/**
|
|
128
|
-
* @description グラデーションで使用する RGB 16 進数カラー値の配列です。
|
|
129
|
-
* An array of RGB hexadecimal color values to use in the gradient.
|
|
130
|
-
*
|
|
131
|
-
* @member {array}
|
|
132
|
-
* @default null
|
|
133
|
-
* @public
|
|
134
|
-
*/
|
|
135
|
-
get colors(): number[] | null;
|
|
136
|
-
set colors(colors: number[] | null);
|
|
137
|
-
/**
|
|
138
|
-
* @description シャドウのオフセット距離です。
|
|
139
|
-
* The offset distance for the shadow, in pixels.
|
|
140
|
-
*
|
|
141
|
-
* @member {number}
|
|
142
|
-
* @default 4
|
|
143
|
-
* @public
|
|
144
|
-
*/
|
|
145
|
-
get distance(): number;
|
|
146
|
-
set distance(distance: number);
|
|
147
|
-
/**
|
|
148
|
-
* @description オブジェクトにノックアウト効果を適用するかどうか
|
|
149
|
-
* Specifies whether the object has a knockout effect.
|
|
150
|
-
*
|
|
151
|
-
* @member {boolean}
|
|
152
|
-
* @default false
|
|
153
|
-
* @public
|
|
154
|
-
*/
|
|
155
|
-
get knockout(): boolean;
|
|
156
|
-
set knockout(knockout: boolean);
|
|
157
|
-
/**
|
|
158
|
-
* @description ぼかしの実行回数です。
|
|
159
|
-
* The number of times to perform the blur.
|
|
160
|
-
*
|
|
161
|
-
* @member {number}
|
|
162
|
-
* @default 1
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
165
|
-
get quality(): FilterQualityImpl;
|
|
166
|
-
set quality(quality: FilterQualityImpl);
|
|
167
|
-
/**
|
|
168
|
-
* @description カラー配列内の対応するカラーの色分布比率の配列です。
|
|
169
|
-
* An array of color distribution ratios
|
|
170
|
-
* for the corresponding colors in the colors array.
|
|
171
|
-
*
|
|
172
|
-
* @member {array}
|
|
173
|
-
* @default null
|
|
174
|
-
* @public
|
|
175
|
-
*/
|
|
176
|
-
get ratios(): number[] | null;
|
|
177
|
-
set ratios(ratios: number[] | null);
|
|
178
|
-
/**
|
|
179
|
-
* @description インプリントの強さまたは広がりです。
|
|
180
|
-
* The strength of the imprint or spread.
|
|
181
|
-
*
|
|
182
|
-
* @member {number}
|
|
183
|
-
* @default 1
|
|
184
|
-
* @public
|
|
185
|
-
*/
|
|
186
|
-
get strength(): number;
|
|
187
|
-
set strength(strength: number);
|
|
188
|
-
/**
|
|
189
|
-
* @description オブジェクトでのベベルの配置
|
|
190
|
-
* The placement of the bevel on the object.
|
|
191
|
-
*
|
|
192
|
-
* @member {string}
|
|
193
|
-
* @default BitmapFilterType.INNER
|
|
194
|
-
* @public
|
|
195
|
-
*/
|
|
196
|
-
get type(): BitmapFilterTypeImpl;
|
|
197
|
-
set type(type: BitmapFilterTypeImpl);
|
|
198
|
-
/**
|
|
199
|
-
* @description オブジェクトのコピーを返します。
|
|
200
|
-
* Returns a copy of this filter object.
|
|
201
|
-
*
|
|
202
|
-
* @return {GradientGlowFilter}
|
|
203
|
-
* @method
|
|
204
|
-
* @public
|
|
205
|
-
*/
|
|
206
|
-
clone(): GradientGlowFilter;
|
|
207
|
-
/**
|
|
208
|
-
* @return {array}
|
|
209
|
-
* @method
|
|
210
|
-
* @public
|
|
211
|
-
*/
|
|
212
|
-
_$toArray(): any[];
|
|
213
|
-
/**
|
|
214
|
-
* @return {boolean}
|
|
215
|
-
* @method
|
|
216
|
-
* @private
|
|
217
|
-
*/
|
|
218
|
-
_$isUpdated(): boolean;
|
|
219
|
-
/**
|
|
220
|
-
* @param {Rectangle} rect
|
|
221
|
-
* @param {number} [x_scale=0]
|
|
222
|
-
* @param {number} [y_scale=0]
|
|
223
|
-
* @return {Rectangle}
|
|
224
|
-
* @method
|
|
225
|
-
* @private
|
|
226
|
-
*/
|
|
227
|
-
_$generateFilterRect(rect: Rectangle, x_scale?: number, y_scale?: number): Rectangle;
|
|
228
|
-
/**
|
|
229
|
-
/**
|
|
230
|
-
* @return {boolean}
|
|
231
|
-
* @method
|
|
232
|
-
* @private
|
|
233
|
-
*/
|
|
234
|
-
_$canApply(): boolean;
|
|
235
|
-
/**
|
|
236
|
-
* @param {CanvasToWebGLContext} context
|
|
237
|
-
* @param {array} matrix
|
|
238
|
-
* @return {WebGLTexture}
|
|
239
|
-
* @method
|
|
240
|
-
* @private
|
|
241
|
-
*/
|
|
242
|
-
_$applyFilter(context: CanvasToWebGLContext, matrix: Float32Array): WebGLTexture;
|
|
243
|
-
}
|