diff --git a/src/renderview.js b/src/renderview.js index c90e18e..ee21f26 100644 --- a/src/renderview.js +++ b/src/renderview.js @@ -177,6 +177,11 @@ class BaseRenderView { this.wrapperElement.innerHTML = '' this.wrapperElement = null } + const event = { + type: 'close', + timestamp: getTimestamp() + } + this.onEvent(event) } /** @@ -395,7 +400,7 @@ class BaseRenderView { this._isVisible = isVisible const event = { type: isVisible ? 'show' : 'hide', - t: getTimestamp() + timestamp: getTimestamp() } this.onEvent(event) } @@ -461,7 +466,7 @@ class BaseRenderView { height: logicalHeight, pwidth: physicalWidth, pheight: physicalHeight, - pixelratio: ratio, + ratio, timestamp: getTimestamp() } this.onEvent(event) diff --git a/src/spec.md b/src/spec.md index 52ad3ef..c26f7d3 100644 --- a/src/spec.md +++ b/src/spec.md @@ -3,7 +3,7 @@ A protocol for interactive rendering surfaces. -*Last update: 18-03-2026* +*Last update: 19-03-2026* *This spec was previously known as the jupyter_rfb event spec, but was rolled into a separate project.* @@ -70,7 +70,7 @@ Fields: * `height`: The height in logical pixels. * `pwidth`: The width in physical pixels. * `pheight`: The height in physical pixels. -* `pixelratio`: The pixel ratio between logical and physical pixels. +* `ratio`: The pixel ratio between logical and physical pixels. * `timestamp`: A timestamp in seconds.