|
@@ -488,13 +488,8 @@ export class SCanvasPaintEngine extends SPaintEngine {
|
|
|
* 设置融合
|
|
|
*/
|
|
|
private setComposite(): void {
|
|
|
- if (
|
|
|
- this.state._composite >= 0 &&
|
|
|
- this.state._composite < SCanvasPaintEngine.gcoList.length
|
|
|
- ) {
|
|
|
- this._canvas.globalCompositeOperation =
|
|
|
- SCanvasPaintEngine.gcoList[this.state._composite];
|
|
|
- }
|
|
|
+ this._canvas.globalCompositeOperation =
|
|
|
+ SCanvasPaintEngine.gcoList[this.state._composite];
|
|
|
} // Function setComposite()
|
|
|
|
|
|
/**
|
|
@@ -510,6 +505,11 @@ export class SCanvasPaintEngine extends SPaintEngine {
|
|
|
}, ${this.state.shadow.shadowColor.alpha / 255.0})`;
|
|
|
this._canvas.shadowOffsetX = this.state.shadow.shadowOffsetX;
|
|
|
this._canvas.shadowOffsetY = this.state.shadow.shadowOffsetY;
|
|
|
+ } else {
|
|
|
+ this._canvas.shadowBlur = 0;
|
|
|
+ this._canvas.shadowColor = "";
|
|
|
+ this._canvas.shadowOffsetX = 0;
|
|
|
+ this._canvas.shadowOffsetY = 0;
|
|
|
}
|
|
|
} // Function setShadow()
|
|
|
|