UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

25 lines 916 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toMarkdown = exports.spec = exports.def = void 0; const types_1 = require("../types"); const utils_1 = require("./utils"); exports.def = { tag: 'r-range', name: 'r:range', mystType: 'reactiveRange', attrs: [ (0, utils_1.createAttr)('value'), (0, utils_1.createAttr)('change', 'only'), (0, utils_1.createAttr)('format', false), (0, utils_1.createAttr)('min', true, '0'), (0, utils_1.createAttr)('max', true, '100'), (0, utils_1.createAttr)('step', true, '1'), ], inline: true, group: types_1.NodeGroups.inline, }; exports.spec = (0, utils_1.createSpec)(exports.def); const toMarkdown = (state, node) => (0, utils_1.nodeToMystRole)(state, node, exports.def); exports.toMarkdown = toMarkdown; exports.default = exports.spec; //# sourceMappingURL=range.js.map