mathquill-desmos
v1.0.0
Published
TypeScript type definitions for Desmos' fork of MathQuill
Maintainers
Readme
@types/mathquill-desmos
TypeScript type definitions for Desmos' fork of MathQuill.
Installation
npm install @types/mathquill-desmos
# or
yarn add @types/mathquill-desmosUsage
import MathQuill from '@types/mathquill-desmos';
// Get MathQuill interface
const MQ = window.MathQuill.getInterface(3);
// Create a math field
const mathField = MQ.MathField(element, {
spaceBehavesLikeTab: true,
handlers: {
edit: (mathField) => {
console.log(mathField.latex());
}
}
});Features
- Complete type definitions for Desmos' fork of MathQuill
- Includes all configuration options
- Type-safe API usage
- Global Window augmentation
Development
- Clone the repository
- Install dependencies:
yarn install - Build the package:
yarn build
License
MIT
