@asdf-overlay/electron 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/surface.js +3 -2
  2. package/package.json +5 -5
package/lib/surface.js CHANGED
@@ -53,13 +53,14 @@ export class ElectronOverlaySurface {
53
53
  * Copy overlay texture in gpu accelerated shared texture mode.
54
54
  */
55
55
  async paintAccelerated(texture) {
56
- if (texture.widgetType !== 'frame') {
56
+ // TODO:: cross platform handle
57
+ if (texture.widgetType !== 'frame' || !texture.handle.ntHandle) {
57
58
  return;
58
59
  }
59
60
  const rect = texture.metadata.captureUpdateRect ?? texture.contentRect;
60
61
  // update only changed part
61
62
  try {
62
- const update = this.surface.updateShtex(texture.codedSize.width, texture.codedSize.height, texture.sharedTextureHandle, {
63
+ const update = this.surface.updateShtex(texture.codedSize.width, texture.codedSize.height, texture.handle.ntHandle, {
63
64
  dstX: rect.x,
64
65
  dstY: rect.y,
65
66
  src: rect,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asdf-overlay/electron",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Asdf overlay Electron integration",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -29,12 +29,12 @@
29
29
  "lib/**/*"
30
30
  ],
31
31
  "devDependencies": {
32
- "@types/node": "^24.1.0",
33
- "typescript": "^5.8.3"
32
+ "@types/node": "^25.0.8",
33
+ "typescript": "^5.9.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "electron": "^37.3.1",
37
- "@asdf-overlay/core": "1.0.3"
36
+ "electron": "^39.2.7",
37
+ "@asdf-overlay/core": "1.1.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build:dist": "tsc",