Skip to content

Commit

Permalink
export plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 27, 2024
1 parent c836c4f commit ee30fde
Show file tree
Hide file tree
Showing 45 changed files with 1,745 additions and 518 deletions.
73 changes: 69 additions & 4 deletions dist/rexcolorcomponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -29706,7 +29706,13 @@
this.addChildrenMap('thumb', thumb);

this.setEnable(GetValue$i(config, 'enable', undefined));
this.setGap(GetValue$i(config, 'gap', undefined));

var gap = GetValue$i(config, 'tick', undefined);
if (gap === undefined) {
gap = GetValue$i(config, 'gap', undefined);
}
this.setGap(gap);

this.setValue(GetValue$i(config, 'value', 0), GetValue$i(config, 'min', undefined), GetValue$i(config, 'max', undefined));

}
Expand All @@ -29728,6 +29734,19 @@
return this;
}

setTick(tick, min, max) {
this.setGap(tick, min, max);
return this;
}

get tick() {
return this.gap;
}

set tick(value) {
this.gap = value;
}

setThumbOffset(x, y) {
this.thumbOffsetX = x;
this.thumbOffsetY = y;
Expand Down Expand Up @@ -29962,6 +29981,45 @@
}
return this;
}

setGap(gap, min, max) {
if (this.childrenMap.slider) {
this.childrenMap.slider.setGap(gap, min, max);
}
return this;
}

get gap() {
if (this.childrenMap.slider) {
return this.childrenMap.slider.gap;
}
return undefined;
}

set gap(value) {
if (this.childrenMap.slider) {
this.childrenMap.slider.gap = value;
}
}

setTick(tick, min, max) {
this.setGap(tick, min, max);
return this;
}

get tick() {
if (this.childrenMap.slider) {
return this.childrenMap.slider.tick;
}
return undefined;
}

set tick(value) {
if (this.childrenMap.slider) {
this.childrenMap.slider.tick = value;
}
}

}

var CreateScrollbar = function (scene, config) {
Expand Down Expand Up @@ -30988,6 +31046,8 @@
sliderConfig.orientation = (isAxisY) ? 1 : 0;
slider = CreateScrollbar(topPatent.scene, sliderConfig);

slider.gapLength = GetValue$c(sliderConfig, 'gapLength', undefined);

var column, row, padding;

var sliderPosition = GetValue$c(sliderConfig, 'position', 0);
Expand Down Expand Up @@ -31315,13 +31375,18 @@
slider = this.childrenMap[`slider${axis}`];
}

var scale = (axis === 'Y') ? this.scaleY : this.scaleX;
bound1 *= scale;

if (scroller) {
// Scale will force to 1 during layout, get saved scale value back
var scale = (axis === 'Y') ? this.scaleY : this.scaleX;
scroller.setBounds(bound0, bound1 * scale);
scroller.setBounds(bound0, bound1);
}
if (slider) {
slider.setEnable(bound0 !== bound1);

if (slider.gapLength) {
slider.setGap(slider.gapLength, bound0, bound1);
}
}
};

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

Large diffs are not rendered by default.

73 changes: 69 additions & 4 deletions dist/rexcolorinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -33375,7 +33375,13 @@
this.addChildrenMap('thumb', thumb);

this.setEnable(GetValue$h(config, 'enable', undefined));
this.setGap(GetValue$h(config, 'gap', undefined));

var gap = GetValue$h(config, 'tick', undefined);
if (gap === undefined) {
gap = GetValue$h(config, 'gap', undefined);
}
this.setGap(gap);

this.setValue(GetValue$h(config, 'value', 0), GetValue$h(config, 'min', undefined), GetValue$h(config, 'max', undefined));

}
Expand All @@ -33397,6 +33403,19 @@
return this;
}

setTick(tick, min, max) {
this.setGap(tick, min, max);
return this;
}

get tick() {
return this.gap;
}

set tick(value) {
this.gap = value;
}

setThumbOffset(x, y) {
this.thumbOffsetX = x;
this.thumbOffsetY = y;
Expand Down Expand Up @@ -33631,6 +33650,45 @@
}
return this;
}

setGap(gap, min, max) {
if (this.childrenMap.slider) {
this.childrenMap.slider.setGap(gap, min, max);
}
return this;
}

get gap() {
if (this.childrenMap.slider) {
return this.childrenMap.slider.gap;
}
return undefined;
}

set gap(value) {
if (this.childrenMap.slider) {
this.childrenMap.slider.gap = value;
}
}

setTick(tick, min, max) {
this.setGap(tick, min, max);
return this;
}

get tick() {
if (this.childrenMap.slider) {
return this.childrenMap.slider.tick;
}
return undefined;
}

set tick(value) {
if (this.childrenMap.slider) {
this.childrenMap.slider.tick = value;
}
}

}

var CreateScrollbar = function (scene, config) {
Expand Down Expand Up @@ -34657,6 +34715,8 @@
sliderConfig.orientation = (isAxisY) ? 1 : 0;
slider = CreateScrollbar(topPatent.scene, sliderConfig);

slider.gapLength = GetValue$b(sliderConfig, 'gapLength', undefined);

var column, row, padding;

var sliderPosition = GetValue$b(sliderConfig, 'position', 0);
Expand Down Expand Up @@ -34984,13 +35044,18 @@
slider = this.childrenMap[`slider${axis}`];
}

var scale = (axis === 'Y') ? this.scaleY : this.scaleX;
bound1 *= scale;

if (scroller) {
// Scale will force to 1 during layout, get saved scale value back
var scale = (axis === 'Y') ? this.scaleY : this.scaleX;
scroller.setBounds(bound0, bound1 * scale);
scroller.setBounds(bound0, bound1);
}
if (slider) {
slider.setEnable(bound0 !== bound1);

if (slider.gapLength) {
slider.setGap(slider.gapLength, bound0, bound1);
}
}
};

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

Large diffs are not rendered by default.

73 changes: 69 additions & 4 deletions dist/rexconfirmdialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -32822,7 +32822,13 @@
this.addChildrenMap('thumb', thumb);

this.setEnable(GetValue$e(config, 'enable', undefined));
this.setGap(GetValue$e(config, 'gap', undefined));

var gap = GetValue$e(config, 'tick', undefined);
if (gap === undefined) {
gap = GetValue$e(config, 'gap', undefined);
}
this.setGap(gap);

this.setValue(GetValue$e(config, 'value', 0), GetValue$e(config, 'min', undefined), GetValue$e(config, 'max', undefined));

}
Expand All @@ -32844,6 +32850,19 @@
return this;
}

setTick(tick, min, max) {
this.setGap(tick, min, max);
return this;
}

get tick() {
return this.gap;
}

set tick(value) {
this.gap = value;
}

setThumbOffset(x, y) {
this.thumbOffsetX = x;
this.thumbOffsetY = y;
Expand Down Expand Up @@ -33078,6 +33097,45 @@
}
return this;
}

setGap(gap, min, max) {
if (this.childrenMap.slider) {
this.childrenMap.slider.setGap(gap, min, max);
}
return this;
}

get gap() {
if (this.childrenMap.slider) {
return this.childrenMap.slider.gap;
}
return undefined;
}

set gap(value) {
if (this.childrenMap.slider) {
this.childrenMap.slider.gap = value;
}
}

setTick(tick, min, max) {
this.setGap(tick, min, max);
return this;
}

get tick() {
if (this.childrenMap.slider) {
return this.childrenMap.slider.tick;
}
return undefined;
}

set tick(value) {
if (this.childrenMap.slider) {
this.childrenMap.slider.tick = value;
}
}

}

var CreateScrollbar = function (scene, config) {
Expand Down Expand Up @@ -34104,6 +34162,8 @@
sliderConfig.orientation = (isAxisY) ? 1 : 0;
slider = CreateScrollbar(topPatent.scene, sliderConfig);

slider.gapLength = GetValue$8(sliderConfig, 'gapLength', undefined);

var column, row, padding;

var sliderPosition = GetValue$8(sliderConfig, 'position', 0);
Expand Down Expand Up @@ -34431,13 +34491,18 @@
slider = this.childrenMap[`slider${axis}`];
}

var scale = (axis === 'Y') ? this.scaleY : this.scaleX;
bound1 *= scale;

if (scroller) {
// Scale will force to 1 during layout, get saved scale value back
var scale = (axis === 'Y') ? this.scaleY : this.scaleX;
scroller.setBounds(bound0, bound1 * scale);
scroller.setBounds(bound0, bound1);
}
if (slider) {
slider.setEnable(bound0 !== bound1);

if (slider.gapLength) {
slider.setGap(slider.gapLength, bound0, bound1);
}
}
};

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

Large diffs are not rendered by default.

Loading

0 comments on commit ee30fde

Please sign in to comment.