@geastack/compiler 1.0.38 → 1.0.39
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": "@geastack/compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "The geastack TypeScript-to-C++ compiler: one semantic spine, no source-shaped authority, no boxing of statically typed values.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -46908,7 +46908,12 @@ void styleProperty(Node& node, const std::string& prop, const std::string& prope
|
|
|
46908
46908
|
// The embedded stylesheet already consumes numeric lengths and opacity.
|
|
46909
46909
|
// Avoid formatting a fractional double only to parse it back on every
|
|
46910
46910
|
// animation tick. Unsupported properties retain their string semantics.
|
|
46911
|
-
|
|
46911
|
+
// A handle that writes the number itself skips the Style a `style()` call
|
|
46912
|
+
// returns, and with it a second owner of the node's identity per write.
|
|
46913
|
+
if constexpr (requires { node.setStyleNumberProperty(property, static_cast<double>(value)); }) {
|
|
46914
|
+
if (std::isfinite(static_cast<double>(value)) &&
|
|
46915
|
+
node.setStyleNumberProperty(property, static_cast<double>(value))) return;
|
|
46916
|
+
} else if constexpr (requires { node.style().setNumberProperty(property, static_cast<double>(value)); }) {
|
|
46912
46917
|
if (std::isfinite(static_cast<double>(value)) &&
|
|
46913
46918
|
node.style().setNumberProperty(property, static_cast<double>(value))) return;
|
|
46914
46919
|
}
|