Skip to content

Commit

Permalink
try postMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Oct 25, 2023
1 parent 3914b67 commit a70a378
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/table/src/kepler-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,16 @@ class KeplerTable {
this.filteredIndexForDomain =
filterResult.filteredIndexForDomain || this.filteredIndexForDomain;

try {
const msg = {
dataId,
type: 'highlight',
data: shouldCalDomain ? this.filteredIndexForDomain : this.filteredIndex
};
// @ts-ignore-next-line
window.wx_msg.postMessage(msg);
} catch (e) { console.log(e); }

return this;
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"umd"
],
"dependencies": {
"apache-arrow": "^4.0.0",
"@kepler.gl/constants": "3.0.0-alpha.1",
"@kepler.gl/types": "3.0.0-alpha.1",
"@luma.gl/constants": "^8.5.19",
Expand All @@ -45,6 +44,7 @@
"@types/lodash.isequal": "^4.5.5",
"@types/lodash.memoize": "^4.1.7",
"@types/lodash.throttle": "^4.1.7",
"apache-arrow": "^4.0.0",
"d3-array": "^2.8.0",
"d3-format": "^2.0.0",
"decimal.js": "^10.2.0",
Expand Down

0 comments on commit a70a378

Please sign in to comment.