Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mathlive-tera

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathlive-tera - npm Package Versions

1
45

0.96.3

Diff

mauhieu12
published 0.96.2 •

Changelog

Source

0.96.2 2023-11-16

Issues Resolved

  • The vertical alignment of formulas containing some fractions was incorrect in some cases.
  • #2168 Changing the MathfieldELement.locale or MathfieldElement.strings would not affect existing mathfields.
  • Incorrectly accessing static properties (for example using mf.locale instead of MathfieldElement.locale) will now throw an error.
  • #2160 The keycap tooltips were not displayed.
  • #2144 When smartFence was on, an inline shortcut that conflicted with a delimiter was ignored.

Improvements

  • #2141: Added St Mary's Road symbols for theoretical computer science, including \mapsfrom.
  • #2158 Support the German keyboard layout on Linux.
  • #2102 The mathfield element now respects the user-select CSS property. If it is set to none, the mathfield will not be selectable.
mauhieu12
published 0.96.1 •

Changelog

Source

0.96.1 2023-11-15

Improvements

  • Simplified the syntax to modify registers. Use mf.registers.arraystretch = 1.5 instead of mf.registers = {...mf.registers, arraystretch: 1.5}`
  • Allow changing registers using \renewcommand, for example \renewcommand{\arraystretch}{1.5}
  • Added keycap shortcuts [up] and [down] to move the selection up or down in a matrix.
  • Display the environment popover when the selection is inside a matrix, even when the virtual keyboard is not visible.

Issues Resolved

  • #2159 Runtime error in sandboxed mode when in an iframe from different origin
  • #2175 Addressed some rendering issues with Safar where a fraction inside a \left...\right was vertically offset.
  • #2176 Using the [hide-keyboard] virtual keycap would cause a runtime error.
  • #2161 When the virtual keyboard is hidden, a geometrychange event is dispatched.
mauhieu12
published 0.96.0 •

Changelog

Source

0.96.0 2023-11-14

Breaking Changes

  • The function serializeMathJsonToLatex() has been renamed to convertMathJsonToLatex() for consistency.

Issues Resolved

  • A closing parenthesis following a function application would be ignored, i.e. (f(x)) would be parsed as (f(x).
  • #2116 Pressing the "/" key after an expression ending with a superscript would not recognize the left argument as a numerator.
  • #2124 In text mode, some characters were incorrectly interpreted as a math command, for example ( was interpreted as \lparen`. This could cause some interoperability issues.
  • #2110 If using the keyboard to enter several macros mapping to an \operatorname command, some of the commands could fail to render. For example, typing "1mm + 2mm" in a mathfield would result in "1 + 2mm" to be displayed.
  • When inserting an mchem atom, preserve the verbatimLatex associated with the atom, so that the value property of the atom is correctly serialized.
  • When invoking the moveToMathfieldEnd command, the selection was not changed if it was not collapsed and already at the end of the mathfield. Similarly for moveToMathfieldStart.

Improvements

  • Added support for additional commands from the mathtools, actuarialangle, colonequals, statmath and amsopn packages
  • Added support for longdiv enclosure (\mathenclose{longdiv}{...})
  • The decimal separator key (.) in the virtual keyboard was displayed as a blank key.
  • #2109 In the virtual keyboard, some placeholders could be hard to see when a keycap was in a pressed state.
  • #2105 The keycap shift + in the numeric keyboard was inserting a sum with limits contrary to what the keycap label indicated.
  • In the alphabetic virtual keyboard, the , key now produces a semicolon when shifted and has a variant panel with additional punctuation.
  • Improved virtual keyboard for integrals with more explicit template
  • When removing the limit of an integral or a sum, do not delete the operator itself.
  • #2122 On the Virtual Keyboard, the multiplication key now produces \cdot instead of \times. Use shift to produce \times.
  • Improved serialization to ASCIIMath and MathML (#2130 and others)
  • #2121 For ASCIIMath and MathML serialization, including phantom closing delimiter in the output.
  • Pressing the Action keycap on the virtual keyboard with the shift key pressed now inserts a new line (similar to what shift+enter does on a physical keyboard).
  • Render \displaystyle and \textstyle to MathML
  • Avoid runtime error if the mathfield gets deleted during a selection change event.
mauhieu12
published 0.95.9 •

mauhieu12
published 0.95.8 •

mauhieu12
published 0.95.7 •

mauhieu12
published 0.95.6 •

mauhieu12
published 0.95.5 •

Changelog

Source

0.95.5 (2023-10-31)

Breaking Changes

  • The properties mathVirtualKeyboard.actionKeycap, mathVirtualKeyboard.shiftKeycap, mathVirtualKeyboard.backspaceKeycap, and mathVirtualKeyboard.tabKeycap have been removed. Use the more general mathVirtualKeyboard.setKeycap() method to customize these keycaps, that is mathVirtualKeyboard.setKeycap('[action]', {...}) etc...

Improvements and New Features

  • Macros can now be specified with renderMathInElement() and renderMathInDocument() using the macros option. For example:

    renderMathInElement(element, {macros: {RR: '\\mathbb{R}'}})
    
  • Performance improvements for pages with many mathfields. The initial rendering can be up to 2x as fast.

  • Some keycaps in the virtual keyboard can be customized without having to define an entire virtual keyboard layout.

    The mathVirtualKeyboard.getKeycap() give access to the definition of special keycaps and mathVirtualKeyboard.setKeycap() can be used to change that definition.

    The keycaps are one of these special shortcuts:

    • [left], [right], [up], [down], [return], [action],
    • [space], [tab], [backspace], [shift],
    • [undo], [redo], [foreground-color], [background-color],
    • [hide-keyboard],
    • [.], [,],
    • [0], [1], [2], [3], [4],
    • [5], [6], [7], [8], [9],
    • [+], [-], [*], [/], [^], [_], [=], [.],
    • [(], [)]

    For example, to change the LaTeX inserted when the multiplication key is pressed use:

    mathVirtualKeyboard.setKeycap('[*]', {latex: '\\times'});
    

Issues Resolved

  • #2415 A content change event is now dispatched when the value of the mathfield is changed as a result of switch from LaTeX mode to math mode by changing the selection.
  • Dispatch a contextmenu event any time the context menu is about to be displayed. This allows the event to be canceled.
  • #2413 When setting the alphabeticLayout, the current keyboard would not be updated in some cases.
  • #2412 The serialization of some expressions to LaTeX could result in some spaces being omitted. For example, \lnot p would serialize as \lnotp.
  • #2403 The virtual keyboard Keycap Variants panel was positioned incorrectly when the page used a RTL layout direction.
  • In the virtual keyboard, the background of the variant panel was sometimes displayed transparently.
  • #2402 Characters inserted after a \mathbb{} command were not styled correctly.
  • The math-virtual-keyboard-command event was not dispatched when a mathfield was focused and a keycap was pressed.
  • There are now CSS selectors to customize the size of glyphs in the virtual keyboard (shift, enter, etc...):
    • --keycap-glyph-size
    • --keycap-glyph-size-lg
    • --keycap-glyph-size-xl
  • #2397 When a beforeinput event was canceled, the text would still be inserted when using the physical keyboard.
  • #2398 When a placeholder was the only element in a group, i.e. {\placeholder{}}, the placeholder was not automatically selected.
1
45
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc