Socket
Socket
Sign inDemoInstall

mathlive

Package Overview
Dependencies
3
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
57
17Next

0.89.4

Diff

Changelog

Source

0.89.4 2023-02-27

Issues Resolved

  • Fix an issue where the virtual keyboard would not activate when not using a shared virtual keyboard.
arnog
published 0.89.3 •

Changelog

Source

0.89.3 2023-02-27

Issues Resolved

  • #1723 The Ctrl-X/C/V keyboard shortcuts did not trigger when using a touch-capable device with a physical keyboard connected.
  • #1834 On Windows, using Firefox with the Swedish keyboard layout, pressing the "¨" or "`" key resulted in a runtime error.
  • #1684 The visual state of the Undo button in the virtual keyboard is now correct

Improvements

  • Improved layout for the virtual keyboard: automatically increase the size of the keycaps when possible, better adapt to various device layouts.
  • When selecting an expression on iPadOS, do not display the OS selection UI
  • On iPadOS, account for the safe area at the bottom of the screen when displaying the virtual keyboard.
  • Added Cut and Copy commands in the virtual keyboard default action toolbar
  • Changed the implementation of the physical keyboard event handling. The same implementation is now used for touch-enabled and non-touch-enabled devices. Instead of an invisible <textarea>, the keyboard events are now captured by a content editable <span>.
  • More accurately position the accessory windows of IMEs during composition
  • #1843 Work around a WebKit/Safari bug by replicating the inputType property as the data property of "input" and "beforeinput" events. WebKit/Safari erroneously strip the inputType property.
arnog
published 0.89.2 •

Changelog

Source

0.89.2 2023-02-17

Improvements

  • #1833 MathLive 0.87.0 dropped support for UMD. It turns out, there are some use cases that still require it, sadly. This release should restore the UMD support.
    • As background for this, there are many ways to package a JavaScript library so it can be used in different contexts. The modern packaging supported by both the browsers and Node ecosystem is the JavaScript module. Files in the /dist directory with a .mjs extension are packaged as modules and can be used with a JavaScript import statement or a <script type=module> tag.
    • The files with a .js extension are packaged to be used with a regular <script> tag (no type=module). This format is called IIFE and declares a MathLive global variable from which the MathLive API can be accessed.
    • Another convention was in use before the universal support for JavaScript modules, which used a require() API. This was implemented in Node, but also supported by some toolchains, such as WebPack. Unfortunately, some of those older toolchains are still in use and difficult to move away from. In order to support require() the library needs to be packaged using the UMD format. The UMD format is not supported by modern bundling tools, such as esbuild, which is what MathLive uses since 0.87.0. In this release, the support for UMD is re-introduced by implementing it manually in MathLive, rather than relying on the bundler.
arnog
published 0.89.1 •

arnog
published 0.89.0 •

Changelog

Source

0.89.0 2023-02-12

Improvements

  • #1150 Deleting the empty numerator or denominator of a fraction now behaves more intuitively. The behavior now matches the Desmos graphing calculator.
  • #1806 Support for speaking matrices and other LaTeX environments. Contribution from @androettop. Thanks, Pablo!

Issues Resolved

  • #1802 MathML markup for expressions like a(b)^2 was invalid.
arnog
published 0.87.1 •

Changelog

Source

0.87.1 2023-01-26

Improvements

  • Better MathML serialization of \operatorname{} and \mathrm{}

Issues Resolved

  • #1772 Typing / after f(x) will now consider f(x) as the numerator, instead of (x)
  • #1797 The result type of makeSharedVirtualKeyboard() was incorrectly specified as a private type.
  • #1798 Using a keyboard shortcut with the control or command key would not reset the inline keystroke buffer. As a result, typing s + i + ctrl-6 + n would yield \sin instead of \si^n.
  • #1799 Better fix for #1795. Deleting numerator or denominator of a fraction would no longer collapse the fraction.
  • #1800 More closely matches the behavior of the textarea element. Only dispatch an "input" event with an inputType of "insertLineBreak" when the user pressed the RETURN or ENTER key. Also dispatch a focusin and focusout event when applicable.
arnog
published 0.87.0 •

Changelog

Source

0.87.0 2023-01-20

Improvements

  • Removed dependency on jsdom for server-side rendering.
  • Switched bundler from rollup to esbuild

Issues Resolved

  • #1795 Deleting forward when there is nothing to delete was throwing an exception (introduced in 0.86.1)
  • #1763 The "plonk" sound and other accessibility announcements were not dispatched. Also, sounds were not audible the first time they were played.
  • #1762 The \smallint command was erroneously displayed as an extensible symbol
  • The MathML serialization for superscripts and subscripts was invalid in some cases.
arnog
published 0.86.1 •

Changelog

Source

0.86.1 2023-01-18

Issues Resolved

  • #1773, #1542: better handling of interaction with the virtual keyboard on touch-based devices (always use PointerEvents to handle interaction with keycaps)
  • #1035 Removing the last mathfield element from a page could result in math content rendered with renderMathInElement() to no longer be rendered correctly (the necessary stylesheet was erroneously removed).
  • #1791 The "aside" labels in the virtual keyboard were barely visible in dark mode.
  • #1726 Deleting the last element of a fraction also deletes the fraction
  • #1764 The MathML serialization for superscripts and subscripts was invalid.
  • #1790 Annotations from the \enclose command could not be displayed in some cases if the z-index of the expression they decorated had certain values.
arnog
published 0.86.0 •

Changelog

Source

0.86.0 2022-12-02

Breaking Changes

  • The Compute Engine has been split from MathLive to reduce the package size and improve the TTI (Time To Interactive) metric. The Compute Engine now needs to be loaded separately:
import 'https://unpkg.com/@cortex-js/compute-engine@latest/dist/compute-engine.min.esm.js';

or

import { ComputeEngine } from 'https://unpkg.com/@cortex-js/compute-engine@latest/dist/compute-engine.min.esm.js';

to create custom Compute Engine instances, which can then be associated with a mathfield using mf.setOptions({computeEngine: ce}) or mf.computeEngine = ce.

If the Compute Engine library is not loaded, some functionality of the mathfield will not be available: mf.expression will always return null and cannot be used to change the content of the mathfield, and math-json is not available as a format on the clipboard,

Issues Resolved

  • The vertical placement of the superscript after a \left...\right command was incorrect.
  • Extensible arrows with superscript or subscript would not serialize the superscript/subscript.
  • The fraction line and surd line would not be visible when printing with the "Don't show image background" option in the print dialog.
  • The "placeholder-change" event was not dispatched.

Improvements

  • Tweaked the layout of the symbols virtual keyboard to make regular arrows the default, rather than extensible arrows.
  • Fill-in-the-blank (placeholder) nested mathfields now line up with the baseline. They also inherit the font-size of their parent container.
arnog
published 0.85.1 •

Changelog

Source

0.85.1 2022-11-18

  • Updated to Compute Engine 0.11.0
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc