Skip to content

Commit 7c7268b

Browse files
Thibault-Pelletierjourdain
authored andcommitted
feat(events): add event throttle
- Add event throttle and compression to handle unresponsive server during interaction.
1 parent 8082d41 commit 7c7268b

File tree

7 files changed

+2437
-184
lines changed

7 files changed

+2437
-184
lines changed

.github/workflows/test_and_release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,29 @@ jobs:
7979
env:
8080
CI: true
8181

82+
vitest:
83+
name: Vitest (Vue Unit Tests)
84+
runs-on: ubuntu-latest
85+
86+
steps:
87+
- name: Checkout
88+
uses: actions/checkout@v4
89+
90+
- name: Set Up Node
91+
uses: actions/setup-node@v4
92+
with:
93+
node-version: 18
94+
95+
- name: Install Dependencies
96+
run: |
97+
cd vue-components
98+
npm install
99+
100+
- name: Run Vitest
101+
run: |
102+
cd vue-components
103+
npm run test
104+
82105
test-npm-build:
83106
runs-on: ubuntu-latest
84107

@@ -101,6 +124,7 @@ jobs:
101124
needs: [
102125
pre-commit,
103126
pytest,
127+
vitest,
104128
test-npm-build,
105129
]
106130
runs-on: ubuntu-latest

trame_rca/widgets/rca.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def __init__(self, **kwargs):
3636
"display",
3737
("image_style", "imageStyle"),
3838
("send_mouse_move", "sendMouseMove"),
39+
("event_throttle_ms", "eventThrottleMs"),
3940
]
4041
self._handlers = []
4142
self.ctrl.on_server_ready.add(self._on_ready)

0 commit comments

Comments
 (0)