-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slb/ab/map layer object selection #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also mention the new methods in the CHANGELOG and add an example to the docs.ts (after the showMap examples).
Edit: Done
src/cadenza.js
Outdated
* Set Selection in the currently shown map view. | ||
* | ||
* @param {WorkbookLayerPath} layer - The data view layer to set the selection in | ||
* @param {string[]} values - The variable values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string[]
works for the layer selection. But to set the selection of a table view, we'd need unknown[][]
, right? How do would you handle that later? Automatically transform string[]
to unknown[][]
?
src/cadenza.js
Outdated
/** @type string[] */ values, | ||
) { | ||
this.#log('CadenzaClient#removeSelection', layer, values); | ||
return this.#postRequest('removeSelection', { layer, values }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it maybe make our life in Cadenza easier if we used only one event with a mode?: 'add' | 'remove'
? (The API here is fine 👍)
* add getData method to get map image * add getData to changelog * refactor getData method * refactor postRequest method, display image in iframe * remove canvas * make #postRequest generic * fix formatting * fix return types of #setFilter and #setLayerVisibility --------- Co-authored-by: palys <[email protected]> Co-authored-by: kissel <[email protected]> Co-authored-by: Johannes Kissel <[email protected]>
No description provided.