Skip to content
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

Closed
wants to merge 35 commits into from

Conversation

AndreasWBartels
Copy link
Member

No description provided.

Copy link
Member

@jkissel jkissel left a 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 Show resolved Hide resolved
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
Copy link
Member

@jkissel jkissel Feb 9, 2024

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 Show resolved Hide resolved
src/cadenza.js Outdated
/** @type string[] */ values,
) {
this.#log('CadenzaClient#removeSelection', layer, values);
return this.#postRequest('removeSelection', { layer, values });
Copy link
Member

@jkissel jkissel Feb 9, 2024

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 👍)

src/docs.md Show resolved Hide resolved
src/cadenza.js Outdated Show resolved Hide resolved
sandbox.html Outdated Show resolved Hide resolved
jkissel and others added 8 commits February 21, 2024 11:18
* 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]>
@AndreasWBartels AndreasWBartels deleted the slb/ab/map_layer_object_selection branch February 22, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants