@mintplayer/polyglot-target-csharp 0.5.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/polyglot-target-csharp",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "description": "MintPlayer Polyglot C# / .NET target — a pure-JSON language plugin (spec + emission rules + capabilities + std bindings) for the polyglot transpiler.",
5
5
  "keywords": [
6
6
  "polyglot",
@@ -2772,12 +2772,17 @@
2772
2772
  "Math.sinh": "global::System.Math.Sinh($0)",
2773
2773
  "Math.cosh": "global::System.Math.Cosh($0)",
2774
2774
  "Math.tanh": "global::System.Math.Tanh($0)",
2775
+ "Math.asinh": "global::System.Math.Asinh($0)",
2776
+ "Math.acosh": "global::System.Math.Acosh($0)",
2777
+ "Math.atanh": "global::System.Math.Atanh($0)",
2775
2778
  "Math.trunc": "global::System.Math.Truncate($0)",
2776
2779
  "Math.floor": "global::System.Math.Floor($0)",
2777
2780
  "Math.ceil": "global::System.Math.Ceiling($0)",
2778
2781
  "Math.min": "global::System.Math.Min($0, $1)",
2779
2782
  "Math.max": "global::System.Math.Max($0, $1)",
2780
2783
  "Math.abs": "global::System.Math.Abs($0)",
2784
+ "Math.sign": "((global::System.Func<$T, $T>)(a => a > 0 ? ($T)1 : a < 0 ? ($T)(-1) : a - a))($0)",
2785
+ "Math.clamp": "((global::System.Func<$T, $T, $T, $T>)((x, lo, hi) => x < lo ? lo : (x > hi ? hi : x)))($0, $1, $2)",
2781
2786
  "Math.round": "(($T) global::System.Math.Round($0))"
2782
2787
  },
2783
2788
  "std.strings": {