Skip to content

Component base class to make it easy to integrate Apparatus into Idyll projects

License

Notifications You must be signed in to change notification settings

idyll-lang/idyll-apparatus-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idyll-apparatus-component

Component base class to make it easy to integrate Apparatus into Idyll projects.

See more about this at https://mathisonian.com/writing/apparatus

Installation

First, set up an Idyll project.

Inside your idyll project:

npm install --save idyll-apparatus-component

Usage

[IdyllApparatusComponent
  _url:"path to json spec"
  _regionOfInterest:`{ x: [-1, 1], y: [-1, 1] }`
  _width: 300
  _height: 300  /]

Binding variables

Any property passed to the apparatus component that doesn't start with an underscore will be bound to the apparatus attribute of the same name. For example, to bind an Idyll variable named IdyllN to an Apparatus attribute called N:

[var name:“IdyllN” value:0 /]

[IdyllApparatusComponent
  _url: ...”
  _regionOfInterest: roi
  _width: 300
  _height: 300
  N:IdyllN /]

About

Component base class to make it easy to integrate Apparatus into Idyll projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published