Cascade Class #57

Closed
opened 2021-12-02 14:04:16 +00:00 by raphaelbastide · 3 comments
raphaelbastide commented 2021-12-02 14:04:16 +00:00 (Migrated from gitlab.com)

Cascade should be initiated through a class. This would allow :

  • Better access to options, events, API in general
  • Having multiple Cascade instances on the same page

E.g:

new Cascade( '.cascade' ).init();

or, with options

new Cascade '.cascade', {
  debug : false,
  broadcast : true,
  defaultStyle : "width:100px; height:100px;"
} );

As an inspiration, the splidejs structure and documentation is clear and concise: https://splidejs.com/guides/getting-started/

Cascade should be initiated through a class. This would allow : - Better access to options, events, API in general - Having multiple Cascade instances on the same page E.g: ``` new Cascade( '.cascade' ).init(); ``` or, with options ``` new Cascade '.cascade', { debug : false, broadcast : true, defaultStyle : "width:100px; height:100px;" } ); ``` As an inspiration, the splidejs structure and documentation is clear and concise: https://splidejs.com/guides/getting-started/
raphaelbastide commented 2021-12-02 14:04:16 +00:00 (Migrated from gitlab.com)

assigned to @alicericci

assigned to @alicericci
raphaelbastide commented 2021-12-07 14:28:54 +00:00 (Migrated from gitlab.com)

Options to consider:

  • Parent element
  • selector for elements to interpret
  • BPM range : a array with 2 numbers e.g.: [0, 100]. In this case BPM = 0 at the viewport min, BPM = 100 at the viewport max
  • extra instruments : an optional JSON object that can be added to the instrument.js instruments list
  • elements default style : a CSS string
  • debug : boolean with js file check
  • broadcast / multiplayer : boolean with js file check
  • start button required : boolean (#64)
  • mute
Options to consider: - Parent element - selector for elements to interpret - BPM range : a array with 2 numbers e.g.: [0, 100]. In this case BPM = 0 at the viewport min, BPM = 100 at the viewport max - extra instruments : an optional JSON object that can be added to the instrument.js instruments list - elements default style : a CSS string - debug : boolean with js file check - ~broadcast / multiplayer : boolean with js file check~ - start button required : boolean (#64) - mute - …
raphaelbastide commented 2021-12-16 23:38:34 +00:00 (Migrated from gitlab.com)

mentioned in issue #64

mentioned in issue #64
raphaelbastide (Migrated from gitlab.com) closed this issue 2022-03-28 18:02:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tarball/cascade#57
No description provided.