Skip to content

giving access to mathjs.import #480

Description

@Cube707

Please fill out these Check-boxes

  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature

Is your Feature Request related to a Problem or Annoyance?

It would be helpfull to define custom functions for mathjs, now I have some really long math-views that could benefit from defining custom functions

could use be clamp():
VIEW[min(max(0,{num}),10)][math]
manual formatting that should really be its own function:
VIEW[ concat(isPositive({memory^STR_mod})?'+':'', string({memory^STR_mod})) ][math]

Describe the Feature you'd like

I would like some way to get access to mathjs.import() (see docs). Either as a config or vie the js-api (similar to how itertools is exposed in js-engin or maybe as a API function?)

Alternatives

I can write JS-View and import my own js there, but they are always block element and not inline, which comes with its own set of annoyances.

Another alternative would be to make VIEW's back-referenceable, similar to how inline-buttons can be created from an invisible block button.

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions