From 35371cdab849a558ce9c00ea86bb5f11273c9632 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Tue, 8 Oct 2024 12:13:29 +0200 Subject: [PATCH 1/2] [actions] Add new ColorUtil methods to CoreUtil docs Refs https://github.com/openhab/openhab-core/pull/4410. Signed-off-by: Florian Hotze --- src/actions/actions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/actions/actions.js b/src/actions/actions.js index 87ac2321f..debc275c6 100644 --- a/src/actions/actions.js +++ b/src/actions/actions.js @@ -110,6 +110,9 @@ const BusEvent = Java.type('org.openhab.core.model.script.actions.BusEvent'); * CoreUtil.hsbToRgbwPercent(HSBType hsb) -> PercentType[] * CoreUtil.rgbToHsb(int[] rgb) -> HSBType * CoreUtil.rgbToHsb(PercentType[] rgb) -> HSBType + * CoreUtil.xyToDuv(double[] xy) -> double + * CoreUtil.kelvinToXY(double kelvin) -> double[] + * CoreUtil.xyToKelvin(double[] xy) -> double * * @name CoreUtil * @memberof actions From 304ad973bca488e3ca6eb453ca71360e18400b79 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Tue, 8 Oct 2024 12:15:16 +0200 Subject: [PATCH 2/2] Update types Signed-off-by: Florian Hotze --- types/actions/actions.d.ts | 3 +++ types/actions/actions.d.ts.map | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/types/actions/actions.d.ts b/types/actions/actions.d.ts index 1a1f8aa66..08f2f5a16 100644 --- a/types/actions/actions.d.ts +++ b/types/actions/actions.d.ts @@ -58,6 +58,9 @@ export const BusEvent: any; * CoreUtil.hsbToRgbwPercent(HSBType hsb) -> PercentType[] * CoreUtil.rgbToHsb(int[] rgb) -> HSBType * CoreUtil.rgbToHsb(PercentType[] rgb) -> HSBType + * CoreUtil.xyToDuv(double[] xy) -> double + * CoreUtil.kelvinToXY(double kelvin) -> double[] + * CoreUtil.xyToKelvin(double[] xy) -> double * * @name CoreUtil * @memberof actions diff --git a/types/actions/actions.d.ts.map b/types/actions/actions.d.ts.map index 95d012cd7..360909b0c 100644 --- a/types/actions/actions.d.ts.map +++ b/types/actions/actions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/actions/actions.js"],"names":[],"mappings":"AAkDA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAuE;AAEvE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,2BAA6E;AAE7E;;;;;;;;;;;;;;;;;GAiBG;AACH,2BAA8B;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,4BAA+E;AAE/E;;;;;;;;;;;GAWG;AACH,uBAAqE;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,uBAAqE;AAErE;;;;;;;;;;;;;;GAcG;AACH,6BAAyE;AAEzE;;;;;;;;;;GAUG;AACH,uBAAqE;AAErE;;;;;;;;;;;;GAYG;AACH;IACE;;;;OAIG;IACH,8BAFW,MAAM,QAIhB;IAED;;;;;;;;;;;;;OAaG;IACH,+BANW,MAAM,OACN,KAAK,aAAa,gDAe5B;CACF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,4BAA+E;AAE/E;;;;;;;;;;;;GAYG;AACH,gCAA+E;AAE/E;;;;;;;;;;;GAWG;AACH;IACE;;;;;;;OAOG;IACH,uBALW,MAAM,MACN,MAAM,SACN,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;;;;OAQG;IACH,0BANW,MAAM,MACN,MAAM,SACN,MAAM,GACJ,MAAM,CAUlB;CACF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAuE;AAEvE;;;;;;;;;;;GAWG;AACH,mCAAuB;;;yBAtXV,OAAO,eAAe,EAAE,aAAa;;AAsZ3C,sEAA+D;AAStD,+EAA+D"} \ No newline at end of file +{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/actions/actions.js"],"names":[],"mappings":"AAkDA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAuE;AAEvE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,2BAA6E;AAE7E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAA8B;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,4BAA+E;AAE/E;;;;;;;;;;;GAWG;AACH,uBAAqE;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,uBAAqE;AAErE;;;;;;;;;;;;;;GAcG;AACH,6BAAyE;AAEzE;;;;;;;;;;GAUG;AACH,uBAAqE;AAErE;;;;;;;;;;;;GAYG;AACH;IACE;;;;OAIG;IACH,8BAFW,MAAM,QAIhB;IAED;;;;;;;;;;;;;OAaG;IACH,+BANW,MAAM,OACN,KAAK,aAAa,gDAe5B;CACF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,4BAA+E;AAE/E;;;;;;;;;;;;GAYG;AACH,gCAA+E;AAE/E;;;;;;;;;;;GAWG;AACH;IACE;;;;;;;OAOG;IACH,uBALW,MAAM,MACN,MAAM,SACN,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;;;;OAQG;IACH,0BANW,MAAM,MACN,MAAM,SACN,MAAM,GACJ,MAAM,CAUlB;CACF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAuE;AAEvE;;;;;;;;;;;GAWG;AACH,mCAAuB;;;yBAzXV,OAAO,eAAe,EAAE,aAAa;;AAyZ3C,sEAA+D;AAStD,+EAA+D"} \ No newline at end of file