MCPcopy Create free account
hub / github.com/microsoft/SandDance / getDefaultValue

Function getDefaultValue

docs/app/js/sanddance-app.js:28942–28945  ·  view source on GitHub ↗

* Helper function to get the default values for parameters of main function. * * @param style - Which style to get the default value for. * @param direction - What direction to take into consideration.

(style, direction)

Source from the content-addressed store, hash-verified

28940 * @param style - Which style to get the default value for.
28941 * @param direction - What direction to take into consideration.
28942 */ function getDefaultValue(style, direction) {
28943 if (style === "width") return direction === "horizontal" ? DEFAULT_WIDTH : "100%";
28944 else return direction === "vertical" ? DEFAULT_HEIGHT : "100%";
28945}
28946
28947},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"6xeB3":[function(require,module,exports) {
28948var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

getFadedOverflowStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected