文件名称:mathematical-node:数学的 Node.js 端口
文件大小:999KB
文件格式:ZIP
更新时间:2024-07-03 11:23:18
HTML
数学节点 快速将数学方程转换为漂亮的 SVG(或 PNG/MathML)。 Node.js端口。 安装 npm install mathematical 用法 最简单的方法是 Mathematical = require 'mathematical' new Mathematical . render ( string_with_math ) string_with_math应该只是一串数学 TeX 内联 ( $..$ ) 或显示 ( $$..$$ ) 样式数学。 输出将是一个散列,其键取决于您想要的格式: 如果你要求一个 SVG,你会得到: width : 生成图像的宽度 height : 生成图像的高度 svg : SVG 的实际字符串 如果您要求 PNG,您将得到: width : 生成图像的宽度 height : 生成图像的高度 png : PNG 数据 如果你要求