2.0.0 • Published 3 months ago

witnet-radon-js v2.0.0

Weekly downloads
49
License
GPL-3.0
Repository
github
Last release
3 months ago

Witnet Radon Javascript Library

Utility library that allows transform requests to a format that facilitates create UI that manipulates requests

Installation

You can simply add the witnet-radon-js package as a dependency with npm:

yarn add witnet-radon-js

Usage

witnet-radon-js exports four classes:

  • Radon
  • Source
  • Script
  • Operator

Radon

It has the following methods:

  • getMir(): MirRequest
  • getMarkup(): MarkupRequest
  • updateSource(sourceIndex: number, { kind: string, url: string }): void
  • deleteSource(index: number): void
  • update(id: number, value: any): void
  • addOperator(scriptId: number): void
  • addSource(scriptId: number): void

Source

It has the following methods:

  • update(args: { kind: string, url: string }): void
  • getMir(): MirSource
  • getMarkup(): MarkupSource
  • getOutputType(): OutputType

Script

It has the following methods:

  • getMir(): MirScript
  • getMarkup(): MarkupScript
  • validateScript (): MarkupSource
  • onChildrenEvent(): { emit: Function }
  • getOutputType(): OutputType
  • getLastOperator(): Operator | null
  • push(operator: MirOperator): void
  • addOperator(): void

Operator

It has the following methods:

  • update(value: OperatorName | OperatorCode): void
  • getMir(): MirOperator
  • getMarkup: MarkupOperator

Argument

It has the following methods:

  • getMir(): MirArgument
  • getMarkup(): MarkupOperator
  • update(value: string | number | boolean | Filter): void

License

witnet-radon-js is published under the GPL-3.0.

2.0.0

3 months ago

1.0.0

3 months ago

0.11.0

11 months ago

0.10.0

2 years ago

0.9.3

2 years ago

0.9.0

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.8.5

3 years ago

0.8.4

3 years ago

0.8.3

3 years ago

0.8.2

3 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.4

4 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.0.14

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago