Contributing documentation and minor fixes

This commit is contained in:
barsdeveloper
2022-11-12 14:46:26 +01:00
parent cd911b0d0c
commit 054793b7b9
8 changed files with 63 additions and 65 deletions

View File

@@ -159,25 +159,25 @@ export default class ColorPickerWindowTemplate extends WindowTemplate {
this.#rSlider.template.locationChangeCallback =
/** @param {Number} x in the range [0, 1] */
(x, y) => {
this.color.setFromRGBA([x, this.color.G.value, this.color.B.value, this.color.A.value])
this.color.setFromRGBA(x, this.color.G.value, this.color.B.value, this.color.A.value)
this.element.requestUpdate()
}
this.#gSlider.template.locationChangeCallback =
/** @param {Number} x in the range [0, 1] */
(x, y) => {
this.color.setFromRGBA([this.color.R.value, x, this.color.B.value, this.color.A.value])
this.color.setFromRGBA(this.color.R.value, x, this.color.B.value, this.color.A.value)
this.element.requestUpdate()
}
this.#bSlider.template.locationChangeCallback =
/** @param {Number} x in the range [0, 1] */
(x, y) => {
this.color.setFromRGBA([this.color.R.value, this.color.G.value, x, this.color.A.value])
this.color.setFromRGBA(this.color.R.value, this.color.G.value, x, this.color.A.value)
this.element.requestUpdate()
}
this.#aSlider.template.locationChangeCallback =
/** @param {Number} x in the range [0, 1] */
(x, y) => {
this.color.setFromRGBA([this.color.R.value, this.color.G.value, this.color.B.value, x])
this.color.setFromRGBA(this.color.R.value, this.color.G.value, this.color.B.value, x)
this.element.requestUpdate()
}
this.#hSlider.template.locationChangeCallback =