From 2e33d9abd03baba0616f958407c407aefd67962b Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Thu, 24 May 2018 11:15:45 -0700 Subject: [PATCH] Fix icons and radio --- libs/core/_locales/core-jsdoc-strings.json | 3 +++ libs/core/icons.ts | 2 +- sim/state/radio.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/core/_locales/core-jsdoc-strings.json b/libs/core/_locales/core-jsdoc-strings.json index dc42873f..75286358 100644 --- a/libs/core/_locales/core-jsdoc-strings.json +++ b/libs/core/_locales/core-jsdoc-strings.json @@ -133,6 +133,9 @@ "Math.randomRange|param|max": "the upper inclusive bound, eg: 10", "Math.randomRange|param|min": "the lower inclusive bound, eg: 0", "Math.round": "Returns a supplied numeric expression rounded to the nearest number.", + "Math.roundWithPrecision": "Rounds ``x`` to a number with the given number of ``digits``", + "Math.roundWithPrecision|param|digits": "the number of resulting digits", + "Math.roundWithPrecision|param|x": "the number to round", "Math.round|param|x": "The value to be rounded to the nearest number.", "Math.sign": "Returns the sign of the x, indicating whether x is positive, negative or zero.", "Math.sign|param|x": "The numeric expression to test", diff --git a/libs/core/icons.ts b/libs/core/icons.ts index 39f447ba..27760a58 100644 --- a/libs/core/icons.ts +++ b/libs/core/icons.ts @@ -181,7 +181,7 @@ namespace basic { //% help=basic/show-icon //% icon.fieldEditor="imagedropdown" //% icon.fieldOptions.columns="5" - //% icon.fieldOptions.width="400" + //% icon.fieldOptions.width="380" export function showIcon(icon: IconNames, interval = 600) { let res = images.iconImage(icon) res.showImage(0, interval) diff --git a/sim/state/radio.ts b/sim/state/radio.ts index 659e82d4..c027a583 100644 --- a/sim/state/radio.ts +++ b/sim/state/radio.ts @@ -67,7 +67,7 @@ namespace pxsim { broadcast(msg: number, groupId: number) { Runtime.postMessage({ - type: "eventbus", + type: "event", id: DAL.MES_BROADCAST_GENERAL_ID, eventid: msg, power: this.power,