UNPKG

@qrvey/formula-lang

Version:

QFormula support for qrvey projects

25 lines 828 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 = { domainTest: 'http://localhost:3000', // Set information to test. NO Commit! domain: '', apiKey: '', userId: '', appId: '', }; 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