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

Function _defineGetter

docs/app/js/sanddance-app.js:28997–29012  ·  view source on GitHub ↗

* Defines a getter for the given class configuration.

(obj, colorName1, suffix, isHover, cssProperty)

Source from the content-addressed store, hash-verified

28995/**
28996 * Defines a getter for the given class configuration.
28997 */ function _defineGetter(obj, colorName1, suffix, isHover, cssProperty) {
28998 Object.defineProperty(obj, colorName1 + suffix, {
28999 get: function() {
29000 var _a;
29001 // eslint-disable-next-line @typescript-eslint/no-explicit-any
29002 var style = (_a = {}, _a[cssProperty] = (0, _index.getTheme)().palette[colorName1], _a);
29003 return (0, _mergeStyles.mergeStyles)(isHover ? {
29004 selectors: {
29005 ":hover": style
29006 }
29007 } : style).toString();
29008 },
29009 enumerable: true,
29010 configurable: true
29011 });
29012}
29013
29014},{"@uifabric/merge-styles":"7c43M","../styles/DefaultPalette":"fgXko","../styles/index":"l8ssX","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"hF3SI":[function(require,module,exports) {
29015var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

sanddance-app.jsFile · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected