UNPKG

@qrvey/formula-lang

Version:

QFormula support for qrvey projects

24 lines 870 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _1 = require("."); const qformula_grammar_1 = require("./grammar/qformula.grammar"); customElements.whenDefined('q-codemirror-test').then(load); window.formulaSetting = { domain: 'https://manualqastg.qrvey.com', apiKey: 'xtwLW2ZLa4rAcZPef9dD3BOQReBnx5klXPqBKGjm', domainTest: 'http://localhost:3000', userId: 'h4iau2f', appId: '4LA4pR_4T', }; function load() { const quiFormulaEditor = document.querySelector('q-codemirror-integrated-test'); if (quiFormulaEditor) { quiFormulaEditor.value = '1 + 1'; quiFormulaEditor.langSupport = { customCalculateAST: _1.calculateAST, customTranspileAST: _1.TranspileAST, langDefinition: qformula_grammar_1.QFormulaLang, }; } } //# sourceMappingURL=main.js.map