spriteflexjs icon indicating copy to clipboard operation
spriteflexjs copied to clipboard

position of filters

Open matrix3d opened this issue 5 years ago • 1 comments

@kennylerma pls look at.the positon is 100px,but get 200px.

package  
{
	import flash.display.Sprite;
	import flash.filters.BlurFilter;
	import flash.filters.DropShadowFilter;
	/**
	 * ...
	 * @author lizhi
	 */
	public class TestFilter extends Sprite
	{
		
		public function TestFilter() 
		{
			SpriteFlexjs.debug = true;
			
			var b:Sprite = new Sprite;
			addChild(b);
			b.x = 100;
			
			var a:Sprite = new Sprite;
			a.graphics.beginFill(0);
			a.graphics.drawRect(0, 0, 100, 100);
			b.addChild(a);
			//a.cacheAsBitmap = true;
			
			//a.x = 100;
			
			a.filters = [new DropShadowFilter(2, 45, 0xff0000, 1, 2, 2, .3, 1,true)];
		}
		
	}

}

matrix3d avatar Dec 13 '20 11:12 matrix3d

I'll have a look. I have several fixes coming soon for caching, drawing and masking.

kennylerma avatar Dec 14 '20 15:12 kennylerma