mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
fix put_BrushGradient
removed access to properties whose names were collapsed
This commit is contained in:
@ -660,7 +660,15 @@ CNativeGraphics.prototype =
|
||||
},
|
||||
put_BrushGradient : function(gradFill, points, transparent)
|
||||
{
|
||||
this.Native["put_BrushGradient"](gradFill.colors, transparent, points.x0, points.y0, points.x1, points.y1, points.r0, points.r1);
|
||||
var colors = new Array(gradFill.colors.length * 5);
|
||||
for (var i = 0; i < gradFill.colors.length; i++) {
|
||||
colors[i * 5] = gradFill.colors[i].pos;
|
||||
colors[i * 5 + 1] = gradFill.colors[i].color.RGBA.R;
|
||||
colors[i * 5 + 2] = gradFill.colors[i].color.RGBA.G;
|
||||
colors[i * 5 + 3] = gradFill.colors[i].color.RGBA.B;
|
||||
colors[i * 5 + 4] = gradFill.colors[i].color.RGBA.A;
|
||||
}
|
||||
this.Native["put_BrushGradient"](colors, transparent, points.x0, points.y0, points.x1, points.y1, points.r0, points.r1);
|
||||
},
|
||||
TransformPointX : function(x, y)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user