Skip to content

Commit

Permalink
export plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 3, 2024
1 parent f88a028 commit 341ff83
Show file tree
Hide file tree
Showing 55 changed files with 4,098 additions and 573 deletions.
56 changes: 32 additions & 24 deletions dist/rexcolorcomponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -19052,6 +19052,10 @@
Render$2
);

var IsArcCorner = function (radius) {
return ((radius.x > 0) && (radius.y > 0));
};

var LineTo = function (x, y, pathData) {
var cnt = pathData.length;
if (cnt >= 2) {
Expand Down Expand Up @@ -19133,8 +19137,7 @@
geom.setTo(0, 0, width, height, radius);
}

var iteration = GetValue$D(radiusConfig, 'iteration', undefined);
this.setIteration(iteration);
this.setIteration(GetValue$D(radiusConfig, 'iteration', undefined));
this.setPosition(x, y);

this.setFillStyle(fillColor, fillAlpha);
Expand Down Expand Up @@ -19387,10 +19390,6 @@

}

var IsArcCorner = function (radius) {
return ((radius.x > 0) && (radius.y > 0));
};

const ShapeTypeMap = {
rectangle: 0,
circle: 1
Expand Down Expand Up @@ -20904,6 +20903,7 @@
var skewX = this.skewX;
var width = this.width - Math.abs(skewX);
var height = this.height;

var trackFill = this.getShape('trackFill');
trackFill.fillStyle(this.trackColor);
if (trackFill.isFilled) {
Expand All @@ -20912,8 +20912,7 @@
0, 0, // x0, y0
width, height, // x1, y1
skewX // skewX
)
.close();
);
}

var bar = this.getShape('bar');
Expand All @@ -20933,8 +20932,7 @@
barX0, 0, // x0, y0
barX1, height, // x1, y1
skewX // skew
)
.close();
);
}

var trackStroke = this.getShape('trackStroke');
Expand All @@ -20945,8 +20943,7 @@
0, 0, // x0, y0
width, height, // x1, y1
skewX // skewX
)
.end();
);
}
};

Expand All @@ -20966,6 +20963,8 @@
.lineTo(x0, y0).lineTo(startX, y0);
}

lines.close();

return lines;
};

Expand All @@ -20976,24 +20975,33 @@
constructor(scene, x, y, width, height, barColor, value, config) {
if (IsPlainObject$9(x)) {
config = x;
x = GetValue$A(config, 'x', 0);
y = GetValue$A(config, 'y', 0);
width = GetValue$A(config, 'width', 2);
height = GetValue$A(config, 'height', 2);
barColor = GetValue$A(config, 'barColor', undefined);
value = GetValue$A(config, 'value', 0);

x = config.x;
y = config.y;
width = config.width;
height = config.height;
barColor = config.barColor;
value = config.value;
} else if (IsPlainObject$9(width)) {
config = width;
width = GetValue$A(config, 'width', 2);
height = GetValue$A(config, 'height', 2);
barColor = GetValue$A(config, 'barColor', undefined);
value = GetValue$A(config, 'value', 0);

width = config.width;
height = config.height;
barColor = config.barColor;
value = config.value;
} else if (IsPlainObject$9(barColor)) {
config = barColor;
barColor = GetValue$A(config, 'barColor', undefined);
value = GetValue$A(config, 'value', 0);

barColor = config.barColor;
value = config.value;
}

if (x === undefined) { x = 0; }
if (y === undefined) { y = 0; }
if (width === undefined) { width = 2; }
if (height === undefined) { height = width; }
if (value === undefined) { value = 0; }

super(scene, x, y, width, height, config);
this.type = 'rexLineProgress';

Expand Down
4 changes: 2 additions & 2 deletions dist/rexcolorcomponents.min.js

Large diffs are not rendered by default.

56 changes: 32 additions & 24 deletions dist/rexcolorinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -13430,6 +13430,10 @@
radius.y = Math.abs(radius.y);
};

var IsArcCorner$1 = function (radius) {
return ((radius.x > 0) && (radius.y > 0));
};

var LineTo = function (x, y, pathData) {
var cnt = pathData.length;
if (cnt >= 2) {
Expand Down Expand Up @@ -13511,8 +13515,7 @@
geom.setTo(0, 0, width, height, radius);
}

var iteration = GetValue$V(radiusConfig, 'iteration', undefined);
this.setIteration(iteration);
this.setIteration(GetValue$V(radiusConfig, 'iteration', undefined));
this.setPosition(x, y);

this.setFillStyle(fillColor, fillAlpha);
Expand Down Expand Up @@ -13765,10 +13768,6 @@

}

var IsArcCorner$1 = function (radius) {
return ((radius.x > 0) && (radius.y > 0));
};

const ShapeTypeMap = {
rectangle: 0,
circle: 1
Expand Down Expand Up @@ -24565,6 +24564,7 @@
var skewX = this.skewX;
var width = this.width - Math.abs(skewX);
var height = this.height;

var trackFill = this.getShape('trackFill');
trackFill.fillStyle(this.trackColor);
if (trackFill.isFilled) {
Expand All @@ -24573,8 +24573,7 @@
0, 0, // x0, y0
width, height, // x1, y1
skewX // skewX
)
.close();
);
}

var bar = this.getShape('bar');
Expand All @@ -24594,8 +24593,7 @@
barX0, 0, // x0, y0
barX1, height, // x1, y1
skewX // skew
)
.close();
);
}

var trackStroke = this.getShape('trackStroke');
Expand All @@ -24606,8 +24604,7 @@
0, 0, // x0, y0
width, height, // x1, y1
skewX // skewX
)
.end();
);
}
};

Expand All @@ -24627,6 +24624,8 @@
.lineTo(x0, y0).lineTo(startX, y0);
}

lines.close();

return lines;
};

Expand All @@ -24637,24 +24636,33 @@
constructor(scene, x, y, width, height, barColor, value, config) {
if (IsPlainObject$8(x)) {
config = x;
x = GetValue$z(config, 'x', 0);
y = GetValue$z(config, 'y', 0);
width = GetValue$z(config, 'width', 2);
height = GetValue$z(config, 'height', 2);
barColor = GetValue$z(config, 'barColor', undefined);
value = GetValue$z(config, 'value', 0);

x = config.x;
y = config.y;
width = config.width;
height = config.height;
barColor = config.barColor;
value = config.value;
} else if (IsPlainObject$8(width)) {
config = width;
width = GetValue$z(config, 'width', 2);
height = GetValue$z(config, 'height', 2);
barColor = GetValue$z(config, 'barColor', undefined);
value = GetValue$z(config, 'value', 0);

width = config.width;
height = config.height;
barColor = config.barColor;
value = config.value;
} else if (IsPlainObject$8(barColor)) {
config = barColor;
barColor = GetValue$z(config, 'barColor', undefined);
value = GetValue$z(config, 'value', 0);

barColor = config.barColor;
value = config.value;
}

if (x === undefined) { x = 0; }
if (y === undefined) { y = 0; }
if (width === undefined) { width = 2; }
if (height === undefined) { height = width; }
if (value === undefined) { value = 0; }

super(scene, x, y, width, height, config);
this.type = 'rexLineProgress';

Expand Down
2 changes: 1 addition & 1 deletion dist/rexcolorinput.min.js

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/rexcolorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14575,6 +14575,10 @@
radius.y = Math.abs(radius.y);
};

var IsArcCorner = function (radius) {
return ((radius.x > 0) && (radius.y > 0));
};

var LineTo = function (x, y, pathData) {
var cnt = pathData.length;
if (cnt >= 2) {
Expand Down Expand Up @@ -14656,8 +14660,7 @@
geom.setTo(0, 0, width, height, radius);
}

var iteration = GetValue$1(radiusConfig, 'iteration', undefined);
this.setIteration(iteration);
this.setIteration(GetValue$1(radiusConfig, 'iteration', undefined));
this.setPosition(x, y);

this.setFillStyle(fillColor, fillAlpha);
Expand Down Expand Up @@ -14910,10 +14913,6 @@

}

var IsArcCorner = function (radius) {
return ((radius.x > 0) && (radius.y > 0));
};

const ShapeTypeMap = {
rectangle: 0,
circle: 1
Expand Down
2 changes: 1 addition & 1 deletion dist/rexcolorpicker.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 341ff83

Please sign in to comment.