@iterable/react-native-sdk
Version:
Iterable SDK for React Native.
41 lines (39 loc) • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.IterableEdgeInsets = void 0;
/**
* Space around the html content
*/
class IterableEdgeInsets {
/**
* Creates an instance of IterableEdgeInsets.
*
* @param top - The top edge inset.
* @param left - The left edge inset.
* @param bottom - The bottom edge inset.
* @param right - The right edge inset.
*/
constructor(top, left, bottom, right) {
this.top = top;
this.left = left;
this.bottom = bottom;
this.right = right;
}
/**
* Creates an instance of `IterableEdgeInsets` from a dictionary object.
*
* @param dict - An object containing the edge inset details with properties:
* - `top`: The top edge inset.
* - `left`: The left edge inset.
* - `bottom`: The bottom edge inset.
* - `right`: The right edge inset.
* @returns A new instance of `IterableEdgeInsets` initialized with the provided edge inset values.
*/
static fromDict(dict) {
return new IterableEdgeInsets(dict.top, dict.left, dict.bottom, dict.right);
}
}
exports.IterableEdgeInsets = IterableEdgeInsets;
//# sourceMappingURL=IterableEdgeInsets.js.map