UNPKG

@wordpress/block-editor

Version:
46 lines (44 loc) 1.56 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // packages/block-editor/src/components/line-height-control/utils.js var utils_exports = {}; __export(utils_exports, { BASE_DEFAULT_VALUE: () => BASE_DEFAULT_VALUE, RESET_VALUE: () => RESET_VALUE, SPIN_FACTOR: () => SPIN_FACTOR, STEP: () => STEP, isLineHeightDefined: () => isLineHeightDefined }); module.exports = __toCommonJS(utils_exports); var BASE_DEFAULT_VALUE = 1.5; var STEP = 0.01; var SPIN_FACTOR = 10; var RESET_VALUE = ""; function isLineHeightDefined(lineHeight) { return lineHeight !== void 0 && lineHeight !== RESET_VALUE; } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { BASE_DEFAULT_VALUE, RESET_VALUE, SPIN_FACTOR, STEP, isLineHeightDefined }); //# sourceMappingURL=utils.js.map