@flighthq/surface 0.5.1-next.4398.ec497e7 → 0.5.1-next.5076.44cab46

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 (45) hide show
  1. package/README.md +2 -2
  2. package/dist/.tsbuildinfo.contract +1 -0
  3. package/dist/.tsbuildinfo.runtime +1 -0
  4. package/dist/canvasSurface.d.ts +1 -1
  5. package/dist/canvasSurface.d.ts.map +1 -1
  6. package/dist/canvasSurface.js.map +1 -1
  7. package/dist/contract.d.ts +2 -0
  8. package/dist/contract.d.ts.map +1 -1
  9. package/dist/contract.js +2 -0
  10. package/dist/contract.js.map +1 -1
  11. package/dist/contract.surface-types.d.ts +2 -0
  12. package/dist/contract.surface-types.d.ts.map +1 -0
  13. package/dist/contract.surface-types.js +2 -0
  14. package/dist/contract.surface-types.js.map +1 -0
  15. package/dist/glSurface.d.ts +6 -4
  16. package/dist/glSurface.d.ts.map +1 -1
  17. package/dist/glSurface.js.map +1 -1
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/surface.d.ts +2 -1
  23. package/dist/surface.d.ts.map +1 -1
  24. package/dist/surface.js +1 -2
  25. package/dist/surface.js.map +1 -1
  26. package/dist/surfaceDisplay.d.ts +1 -1
  27. package/dist/surfaceDisplay.d.ts.map +1 -1
  28. package/dist/types.d.ts +96 -0
  29. package/dist/types.d.ts.map +1 -0
  30. package/dist/types.js +2 -0
  31. package/dist/types.js.map +1 -0
  32. package/dist/wgpuSurface.d.ts +1 -1
  33. package/dist/wgpuSurface.d.ts.map +1 -1
  34. package/dist/wgpuSurface.js.map +1 -1
  35. package/dist/windowRenderState.d.ts +5 -0
  36. package/dist/windowRenderState.d.ts.map +1 -0
  37. package/dist/windowRenderState.js +19 -0
  38. package/dist/windowRenderState.js.map +1 -0
  39. package/package.json +6 -4
  40. package/src/canvasSurface.test.ts +1 -1
  41. package/src/glSurface.test.ts +18 -5
  42. package/src/surface.test.ts +2 -3
  43. package/src/surfaceDisplay.test.ts +2 -7
  44. package/src/wgpuSurface.test.ts +2 -1
  45. package/src/windowRenderState.test.ts +85 -0
package/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/surface`. The `@flig
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/surface@0.5.1-next.4398.ec497e7](https://github.com/flighthq/flight/tree/ec497e7ea3a733590b0d7d6ef085026bf72692ce/packages/surface)
17
- - [License](https://github.com/flighthq/flight/blob/ec497e7ea3a733590b0d7d6ef085026bf72692ce/LICENSE.md)
16
+ - [Source for @flighthq/surface@0.5.1-next.5076.44cab46](https://github.com/flighthq/flight/tree/44cab464341f8ac6e5e9df951cf974739ba9d3b7/packages/surface)
17
+ - [License](https://github.com/flighthq/flight/blob/44cab464341f8ac6e5e9df951cf974739ba9d3b7/LICENSE.md)
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[96,97]],"packageJsons":["../../../node_modules/@standard-schema/spec/package.json","../../../node_modules/@testing-library/jest-dom/package.json","../../../node_modules/@types/aria-query/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@webgpu/types/package.json","../../../node_modules/aria-query/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/tsx/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/yaml/package.json","../../app/package.json","../../entity/package.json","../../menu/package.json","../../signals/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@standard-schema/spec/dist/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/aria-query/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/jest/package.json","../../../node_modules/@testing-library/jest-dom/types/package.json","../../../node_modules/@types/jest/package.json","../../../node_modules/@types/testing-library__jest-dom/package.json","../../../node_modules/@types/vitest/globals/package.json","../../../node_modules/@types/webgpu__types/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/display/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@webgpu/types/dist/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/jest/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/msw/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/globals/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2022.full.d.ts","../../entity/dist/types.d.ts","../../entity/dist/binding.d.ts","../../entity/dist/clone.d.ts","../../entity/dist/enableEntityRuntimeGuards.d.ts","../../entity/dist/entity.d.ts","../../entity/dist/entityUid.d.ts","../../entity/dist/explainEntityRuntimeWrite.d.ts","../../entity/dist/guards.d.ts","../../entity/dist/runtime.d.ts","../../entity/dist/contract.d.ts","../../signals/dist/types.d.ts","../../signals/dist/connection.d.ts","../../signals/dist/emitter.d.ts","../../signals/dist/internal.d.ts","../../signals/dist/safe.d.ts","../../signals/dist/scope.d.ts","../../signals/dist/signal.d.ts","../../signals/dist/slot.d.ts","../../signals/dist/throttle.d.ts","../../signals/dist/signalTypes.d.ts","../../signals/dist/contract.d.ts","../../menu/dist/types.d.ts","../../menu/dist/contract.menu-types.d.ts","../../app/dist/types/App.d.ts","../../app/dist/types/AppWindow.d.ts","../../app/dist/types/AppLoop.d.ts","../../app/dist/types/AppLoopOptions.d.ts","../../app/dist/types/HostAppExit.d.ts","../../app/dist/types/HostAppLoop.d.ts","../../app/dist/types/HostFullscreen.d.ts","../../app/dist/types/Host.d.ts","../../app/dist/contract.app-types.d.ts","../src/types.ts","../src/contract.surface-types.ts","../../../node_modules/@types/aria-query/index.d.ts","../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../node_modules/@testing-library/jest-dom/types/index.d.ts","../../../node_modules/@vitest/pretty-format/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/display.d.ts","../../../node_modules/@vitest/utils/dist/types.d.ts","../../../node_modules/@vitest/utils/dist/helpers.d.ts","../../../node_modules/@vitest/utils/dist/timers.d.ts","../../../node_modules/@vitest/utils/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts","../../../node_modules/@vitest/utils/dist/diff.d.ts","../../../node_modules/@vitest/runner/dist/tasks.d-DEYaIMIu.d.ts","../../../node_modules/@vitest/runner/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/traces.d.D2T_R8rx.d.ts","../../../node_modules/vite/types/hmrPayload.d.ts","../../../node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","../../../node_modules/vite/types/customEvent.d.ts","../../../node_modules/vite/types/hot.d.ts","../../../node_modules/vite/dist/node/module-runner.d.ts","../../../node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts","../../../node_modules/@vitest/snapshot/dist/rawSnapshot.d-D_X3-62x.d.ts","../../../node_modules/@vitest/snapshot/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/config.d.A1h_Y6Jt.d.ts","../../../node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts","../../../node_modules/vitest/dist/chunks/rpc.d.B_8sPU0w.d.ts","../../../node_modules/vitest/dist/chunks/worker.d.ZpHpO4yb.d.ts","../../../node_modules/vitest/dist/chunks/browser.d.BcoexmFG.d.ts","../../../node_modules/@vitest/spy/optional-types.d.ts","../../../node_modules/@vitest/spy/dist/index.d.ts","../../../node_modules/tinyrainbow/dist/index.d.ts","../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../node_modules/@types/deep-eql/index.d.ts","../../../node_modules/assertion-error/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@vitest/expect/dist/index.d.ts","../../../node_modules/@vitest/runner/dist/utils.d.ts","../../../node_modules/tinybench/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts","../../../node_modules/vitest/dist/chunks/global.d.DVsSRdQ5.d.ts","../../../node_modules/vitest/optional-runtime-types.d.ts","../../../node_modules/@vitest/mocker/dist/types.d-BjI5eAwu.d.ts","../../../node_modules/@vitest/mocker/dist/index.d-B41z0AuW.d.ts","../../../node_modules/@vitest/mocker/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/suite.d.udJtyAgw.d.ts","../../../node_modules/vitest/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts","../../../node_modules/vitest/dist/runners.d.ts","../../../node_modules/expect-type/dist/utils.d.ts","../../../node_modules/expect-type/dist/overloads.d.ts","../../../node_modules/expect-type/dist/branding.d.ts","../../../node_modules/expect-type/dist/messages.d.ts","../../../node_modules/expect-type/dist/index.d.ts","../../../node_modules/vitest/dist/index.d.ts","../../../node_modules/vitest/globals.d.ts","../../../node_modules/@webgpu/types/dist/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237","abad6dd56cc8caf095c165df8124d237",{"version":"2a9941db0809c9ad0e8837ed629b1dcc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d051b93324f36bcc68d152a5ca0988cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"0eb5b8b97bde45c8fde5cd07c33f6631","22772bc49abb63e5c9ba66ac5fb78a3d","daf7ba9e176366b3caf843bd266d163a","1cd6ad8dcb5625d764e0d55a82295469","76aca40ee07d543a14c24ba839109332","57acc14d50c93cde3cdf32bfa3cb7c09","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","6316695f8d39118af37f2074045bcf4e","921f8c08344aa1539405420fcf952a20","21a1b4607cb18ab00b1254cb35a77c57","d80705d2e260aba56aa54c416f471fbd","a821537667385a2906566c8bc69a21ed","387cee0627331c24f641f87fc905bff1","859418c3a3f1b2e9500476d829fc6093","32e33ec68ba1aa1147aab680de3b7c90","67c59d76f923f64e85a373fb5a2bbb13","5676a2feb7e6b36f973571c4a4500566","dd2bc19aa76d59fe40aa6c6fb9a33365","7ef4fc8b5166fc742b557034c24ec46b","f5e26d78b1b772156b3e8949fc39a19d","422a57575128dae8eae1d40a703217a8","59568097a4f40b06e4f21a98859b4841","854d9a4169ebeaed2551075c541b546d","5483bbafa634b2a706cedfa0440048cc","62cfe75057cf220573f90957a2550df4","5723933c75577a983fe43efcd4181695","94af0dd094db9ff76195403339d8562b","35b742c7a57429ed631d2cd751246205","04f42cad4de1869e924b73908bb664c5","11a2f83a6ed65542d1ebe4e354a019c3",{"version":"7d12f71b65d605802369ff0c767ec557","signature":"ebc7f8356d003fe7e51b96d5fe29b5ec","impliedNodeFormat":1},{"version":"c344844438be6c50878c4fa255c3d3e0","signature":"e133dc8d53238172b5e3533cf90aad9d","impliedNodeFormat":1},"56d080dfccb3c53a2d6c74c4f24252e3","75ebd62d9641cc8b34ba9b09be8283a9",{"version":"753f71e16f2994f332390bb1c997b0e3","affectsGlobalScope":true,"impliedNodeFormat":1},"8def0ea0e249f49397d74a4f5bdd45a5",{"version":"ed63d99e1e5c371dc120bef1b84057fc","impliedNodeFormat":99},{"version":"4d3fb552bfc7fb53c9195b2fafb512c0","impliedNodeFormat":99},{"version":"fbf7ba69043f86dc506ba28263e2e783","impliedNodeFormat":99},{"version":"a611eb6935df7737a77b34b01c631a4a","impliedNodeFormat":99},{"version":"6d08f6f1d0ee294c119d0e66f826331a","impliedNodeFormat":99},{"version":"d0abb8fa314728650d85450ff59db909","impliedNodeFormat":99},{"version":"abe007be89c2ad52c4d67fc2b0f6da6b","impliedNodeFormat":99},{"version":"ae1fe3925f3a2c8dfbb269ac2a50f5a6","impliedNodeFormat":99},{"version":"ee8ce731ff781ae7011350481a1af176","impliedNodeFormat":99},{"version":"08dcd98985ae16732a9be03d2b56aea6","impliedNodeFormat":99},{"version":"47f7401876f3c0a5b80bd01fbdfaed2b","impliedNodeFormat":99},"ab8e1ea59f16bc290a0451d09dc5a52e",{"version":"e9d43fb880595ac4ee66a56a364fd5fb","impliedNodeFormat":99},"24367c4ec7d778084b3a83bbdc5a23d4","edbf4843929ee5fe6521503f424e4464",{"version":"5e0eecd60ec8ccc15c22c507248ef1aa","impliedNodeFormat":99},{"version":"0221e2868d1f0d6df8321d945764aadb","impliedNodeFormat":99},{"version":"d2f6ad6f161f0a522886f64842c96a0e","impliedNodeFormat":99},{"version":"618ace1500cc84e42bc2e47c64f8c407","impliedNodeFormat":99},{"version":"9dd3c481cc870c4bf19e59d34f030a27","impliedNodeFormat":99},{"version":"b5c81396e966d59acab5a45f66b70866","impliedNodeFormat":99},{"version":"f94aa434ddb9e71f6e80395de85f6850","impliedNodeFormat":99},{"version":"3486e8f7f01b9874a793ddd451eb62a5","impliedNodeFormat":99},{"version":"cb0e7222aae349c2fb4f89b26efa81bd","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"0d7bbad7f82c886c5f36730065aec119","impliedNodeFormat":99},{"version":"369460c2755240ac2d3d006f09adb5ca","impliedNodeFormat":99},{"version":"4509fca76e721cdf9edb2d028395a117","impliedNodeFormat":99},"548472bfd4ebe2f1c8f494b960a27836",{"version":"fa98b0905a86da0a95fa8fd3e974e038","impliedNodeFormat":99},{"version":"5ede871fecbb2b6f672a99d3c3c6bee7","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"2c51637edf65b89d39356deff680ed36","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"0bf0efdacfd4bfadb631a4376097e382","impliedNodeFormat":99},{"version":"bd01f3bcdc72c9256e5cd5093d132df3","impliedNodeFormat":99},{"version":"b01bdc9acbaf3eb24eef464959e8e627","impliedNodeFormat":99},{"version":"2a75a1a065e5d0439fa1514d9c89b0eb","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"c01d22bc96b89eedc0ed1f11d8c270ab","impliedNodeFormat":99},{"version":"c15bc5b81c64386efb6f85fb596c4349","impliedNodeFormat":99},{"version":"5794a694c1f75a9cc38cb5e9c757224e","impliedNodeFormat":99},{"version":"4040d5640775a803b2ca1aa914f7a1d4","impliedNodeFormat":99},{"version":"5ed96746ee2e7eb084ad54f0e0e518bc","impliedNodeFormat":99},{"version":"eba7786b00a4e551c36bafa71bfb1876","impliedNodeFormat":99},"8d8a98bf45979ce5401d9ca4027940cd","7d98e95d38525423bbe0f05e0a508a41","96920299d013de56061cbc74a1d658b2","439adabdf29be1212ec7acc292679f21","3eb46d20ed056dcbfa5e75bad9014661",{"version":"b46aa1886055db890de9be52a97b301e","impliedNodeFormat":99},{"version":"23cbcf6109a45b21e5b22d5f36f59db4","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"851c83981c28a32944597c743f666820","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[100],[99],[98],[130,131],[103,109,127,128,129,132],[139],[139,140],[107,109,110],[107,109],[107],[102,107,118,119],[102,107,118],[126],[102,108],[102],[104],[102,103,104,105,106],[145,146],[145,146,147,148],[145,147],[145],[113],[113,114,115,116],[115],[111,134,135,137],[111,112,124,137],[102,109,111,112,120,137],[117],[102,111,112,120,133,136],[111,112,117,120,137],[111,134,135,136,137],[111,117,121,122,123,137],[102,107,109,111,112,117,120,121,122,123,124,125,127,133,134,135,136,137,138,141,142,143,144,149],[102,109,111,112,120,121,134,135,136,137,142],[150],[87,88,89,90,91,92,93,94],[73,84,86],[73,84,88],[73,84],[87,88,91,92,93],[73],[64],[64,65,66,67,68,69,70,71,72],[85],[74],[74,75,76,77,78,79,80,81,82,83],[96],[73,95]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo.contract","useDefineForClassFields":true},"referencedMap":[[101,1],[100,2],[99,3],[132,4],[133,5],[140,6],[141,7],[111,8],[110,9],[134,8],[118,10],[120,11],[119,12],[127,13],[109,14],[103,15],[105,16],[107,17],[108,15],[147,18],[149,19],[148,20],[146,21],[114,22],[117,23],[115,22],[116,24],[136,25],[125,26],[121,27],[122,10],[143,28],[137,29],[123,30],[142,31],[124,32],[150,33],[144,34],[151,35],[95,36],[87,37],[89,38],[88,39],[94,40],[93,41],[65,42],[66,42],[73,43],[67,42],[68,42],[69,42],[70,42],[71,42],[72,42],[86,44],[85,39],[75,45],[84,46],[76,45],[78,45],[79,45],[80,45],[83,45],[81,45],[82,45],[74,41],[97,47],[96,48]],"latestChangedDtsFile":"./contract.surface-types.d.ts"}
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[187,200]],"packageJsons":["../../../node_modules/@standard-schema/spec/package.json","../../../node_modules/@testing-library/jest-dom/package.json","../../../node_modules/@types/aria-query/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@webgpu/types/package.json","../../../node_modules/aria-query/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/tsx/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/yaml/package.json","../../accessibility/package.json","../../app/package.json","../../bitmap/package.json","../../compression/package.json","../../connectivity/package.json","../../dialog/package.json","../../entity/package.json","../../filesystem/package.json","../../font/package.json","../../geolocation/package.json","../../geometry/package.json","../../host/package.json","../../image-codec/package.json","../../image/package.json","../../input/package.json","../../keyboard/package.json","../../lifecycle/package.json","../../menu/package.json","../../midi/package.json","../../notification/package.json","../../path/package.json","../../permissions/package.json","../../protocol/package.json","../../resource/package.json","../../screen/package.json","../../share/package.json","../../signals/package.json","../package.json","../../textsegment/package.json","../../texture-formats/package.json","../../texture/package.json","../../updater/package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@standard-schema/spec/dist/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/aria-query/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/jest/package.json","../../../node_modules/@testing-library/jest-dom/types/package.json","../../../node_modules/@types/jest/package.json","../../../node_modules/@types/testing-library__jest-dom/package.json","../../../node_modules/@types/vitest/globals/package.json","../../../node_modules/@types/webgpu__types/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/display/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@webgpu/types/dist/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/jest/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/msw/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/globals/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2022.full.d.ts","../../entity/dist/types.d.ts","../../entity/dist/binding.d.ts","../../entity/dist/clone.d.ts","../../entity/dist/enableEntityRuntimeGuards.d.ts","../../entity/dist/entity.d.ts","../../entity/dist/entityUid.d.ts","../../entity/dist/explainEntityRuntimeWrite.d.ts","../../entity/dist/guards.d.ts","../../entity/dist/runtime.d.ts","../../entity/dist/contract.d.ts","../../signals/dist/types.d.ts","../../signals/dist/connection.d.ts","../../signals/dist/emitter.d.ts","../../signals/dist/internal.d.ts","../../signals/dist/safe.d.ts","../../signals/dist/scope.d.ts","../../signals/dist/signal.d.ts","../../signals/dist/slot.d.ts","../../signals/dist/throttle.d.ts","../../signals/dist/signalTypes.d.ts","../../signals/dist/contract.d.ts","../../menu/dist/types.d.ts","../../menu/dist/contract.menu-types.d.ts","../../app/dist/types/App.d.ts","../../app/dist/types/AppWindow.d.ts","../../app/dist/types/AppLoop.d.ts","../../app/dist/types/AppLoopOptions.d.ts","../../app/dist/types/HostAppExit.d.ts","../../app/dist/types/HostAppLoop.d.ts","../../app/dist/types/HostFullscreen.d.ts","../../app/dist/types/Host.d.ts","../../app/dist/contract.app-types.d.ts","../../lifecycle/dist/types.d.ts","../../lifecycle/dist/contract.lifecycle-types.d.ts","../../app/dist/types/contract.d.ts","../../app/dist/app.d.ts","../../app/dist/appLoop.d.ts","../../geometry/dist/types.d.ts","../../geometry/dist/contract.geometry-types.d.ts","../../host/dist/backendExplanation.d.ts","../../host/dist/backendOperationExplanation.d.ts","../../accessibility/dist/types.d.ts","../../accessibility/dist/contract.accessibility-types.d.ts","../../texture/dist/types.d.ts","../../texture/dist/contract.texture-types.d.ts","../../bitmap/dist/types.d.ts","../../bitmap/dist/contract.bitmap-types.d.ts","../../compression/dist/types.d.ts","../../compression/dist/compress.d.ts","../../compression/dist/deflate.d.ts","../../compression/dist/deflateFormat.d.ts","../../compression/dist/lzma.d.ts","../../compression/dist/lzmaCompress.d.ts","../../compression/dist/contract.d.ts","../../connectivity/dist/types.d.ts","../../connectivity/dist/contract.connectivity-types.d.ts","../../dialog/dist/types.d.ts","../../dialog/dist/dialog.d.ts","../../dialog/dist/fileDialog.d.ts","../../dialog/dist/mediaDialog.d.ts","../../dialog/dist/contract.d.ts","../../filesystem/dist/types.d.ts","../../filesystem/dist/filesystem.d.ts","../../filesystem/dist/contract.d.ts","../../path/dist/path.d.ts","../../path/dist/pathCompat.d.ts","../../path/dist/contract.path-types.d.ts","../../font/dist/types.d.ts","../../font/dist/contract.font-types.d.ts","../../geolocation/dist/types.d.ts","../../geolocation/dist/geolocation.d.ts","../../geolocation/dist/geolocationAccess.d.ts","../../geolocation/dist/contract.d.ts","../../image-codec/dist/types.d.ts","../../image-codec/dist/decodeImage.d.ts","../../image-codec/dist/detectImageMimeType.d.ts","../../image-codec/dist/encodeImage.d.ts","../../image-codec/dist/contract.d.ts","../../resource/dist/resourceResolutionState.d.ts","../../resource/dist/contract.d.ts","./types.d.ts","./contract.surface-types.d.ts","../../texture-formats/dist/types.d.ts","../../texture-formats/dist/contract.texture-formats-types.d.ts","../../image/dist/types.d.ts","../../image/dist/contract.image-types.d.ts","../../keyboard/dist/types.d.ts","../../keyboard/dist/contract.keyboard-types.d.ts","../../notification/dist/types.d.ts","../../notification/dist/contract.notification-types.d.ts","../../permissions/dist/types.d.ts","../../permissions/dist/contract.permissions-types.d.ts","../../midi/dist/types.d.ts","../../midi/dist/contract.midi-types.d.ts","../../protocol/dist/types.d.ts","../../protocol/dist/contract.protocol-types.d.ts","../../screen/dist/types.d.ts","../../screen/dist/contract.screen-types.d.ts","../../share/dist/types.d.ts","../../share/dist/share.d.ts","../../share/dist/contract.d.ts","../../textsegment/dist/types.d.ts","../../textsegment/dist/contract.textsegment-types.d.ts","../../updater/dist/types.d.ts","../../updater/dist/contract.updater-types.d.ts","../../host/dist/hostCapabilities.d.ts","../../host/dist/hostExplanation.d.ts","../../host/dist/providerRef.d.ts","../../host/dist/inputIngressSource.d.ts","../../host/dist/contract.host-types.d.ts","../../input/dist/types.d.ts","../../input/dist/inputBinding.d.ts","../../input/dist/inputGamepad.d.ts","../../input/dist/inputSignals.d.ts","../../input/dist/inputState.d.ts","../../input/dist/inputTarget.d.ts","../../input/dist/inputTimer.d.ts","../../input/dist/keyCode.d.ts","../../input/dist/keyModifier.d.ts","../../input/dist/contract.d.ts","../../app/dist/appWindow.d.ts","../../app/dist/runtime.d.ts","../../app/dist/contract.d.ts","../src/surface.ts","../src/canvasSurface.ts","../src/canvasSurface.test.ts","../src/glSurface.ts","../src/surfaceDisplay.ts","../src/wgpuSurface.ts","../src/windowRenderState.ts","../src/contract.ts","../src/glSurface.test.ts","../src/index.ts","../src/surface.test.ts","../src/surfaceDisplay.test.ts","../src/wgpuSurface.test.ts","../src/windowRenderState.test.ts","../../../node_modules/@types/aria-query/index.d.ts","../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../node_modules/@testing-library/jest-dom/types/index.d.ts","../../../node_modules/@vitest/pretty-format/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/display.d.ts","../../../node_modules/@vitest/utils/dist/types.d.ts","../../../node_modules/@vitest/utils/dist/helpers.d.ts","../../../node_modules/@vitest/utils/dist/timers.d.ts","../../../node_modules/@vitest/utils/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts","../../../node_modules/@vitest/utils/dist/diff.d.ts","../../../node_modules/@vitest/runner/dist/tasks.d-DEYaIMIu.d.ts","../../../node_modules/@vitest/runner/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/traces.d.D2T_R8rx.d.ts","../../../node_modules/vite/types/hmrPayload.d.ts","../../../node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","../../../node_modules/vite/types/customEvent.d.ts","../../../node_modules/vite/types/hot.d.ts","../../../node_modules/vite/dist/node/module-runner.d.ts","../../../node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts","../../../node_modules/@vitest/snapshot/dist/rawSnapshot.d-D_X3-62x.d.ts","../../../node_modules/@vitest/snapshot/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/config.d.A1h_Y6Jt.d.ts","../../../node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts","../../../node_modules/vitest/dist/chunks/rpc.d.B_8sPU0w.d.ts","../../../node_modules/vitest/dist/chunks/worker.d.ZpHpO4yb.d.ts","../../../node_modules/vitest/dist/chunks/browser.d.BcoexmFG.d.ts","../../../node_modules/@vitest/spy/optional-types.d.ts","../../../node_modules/@vitest/spy/dist/index.d.ts","../../../node_modules/tinyrainbow/dist/index.d.ts","../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../node_modules/@types/deep-eql/index.d.ts","../../../node_modules/assertion-error/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@vitest/expect/dist/index.d.ts","../../../node_modules/@vitest/runner/dist/utils.d.ts","../../../node_modules/tinybench/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts","../../../node_modules/vitest/dist/chunks/global.d.DVsSRdQ5.d.ts","../../../node_modules/vitest/optional-runtime-types.d.ts","../../../node_modules/@vitest/mocker/dist/types.d-BjI5eAwu.d.ts","../../../node_modules/@vitest/mocker/dist/index.d-B41z0AuW.d.ts","../../../node_modules/@vitest/mocker/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/suite.d.udJtyAgw.d.ts","../../../node_modules/vitest/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts","../../../node_modules/vitest/dist/runners.d.ts","../../../node_modules/expect-type/dist/utils.d.ts","../../../node_modules/expect-type/dist/overloads.d.ts","../../../node_modules/expect-type/dist/branding.d.ts","../../../node_modules/expect-type/dist/messages.d.ts","../../../node_modules/expect-type/dist/index.d.ts","../../../node_modules/vitest/dist/index.d.ts","../../../node_modules/vitest/globals.d.ts","../../../node_modules/@webgpu/types/dist/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237","abad6dd56cc8caf095c165df8124d237",{"version":"2a9941db0809c9ad0e8837ed629b1dcc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d051b93324f36bcc68d152a5ca0988cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"0eb5b8b97bde45c8fde5cd07c33f6631","22772bc49abb63e5c9ba66ac5fb78a3d","daf7ba9e176366b3caf843bd266d163a","1cd6ad8dcb5625d764e0d55a82295469","76aca40ee07d543a14c24ba839109332","57acc14d50c93cde3cdf32bfa3cb7c09","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","6316695f8d39118af37f2074045bcf4e","921f8c08344aa1539405420fcf952a20","21a1b4607cb18ab00b1254cb35a77c57","d80705d2e260aba56aa54c416f471fbd","a821537667385a2906566c8bc69a21ed","387cee0627331c24f641f87fc905bff1","859418c3a3f1b2e9500476d829fc6093","32e33ec68ba1aa1147aab680de3b7c90","67c59d76f923f64e85a373fb5a2bbb13","5676a2feb7e6b36f973571c4a4500566","dd2bc19aa76d59fe40aa6c6fb9a33365","7ef4fc8b5166fc742b557034c24ec46b","f5e26d78b1b772156b3e8949fc39a19d","422a57575128dae8eae1d40a703217a8","59568097a4f40b06e4f21a98859b4841","854d9a4169ebeaed2551075c541b546d","5483bbafa634b2a706cedfa0440048cc","62cfe75057cf220573f90957a2550df4","5723933c75577a983fe43efcd4181695","94af0dd094db9ff76195403339d8562b","35b742c7a57429ed631d2cd751246205","04f42cad4de1869e924b73908bb664c5","11a2f83a6ed65542d1ebe4e354a019c3","6351fc7d38ccd851045ef5b66798386f","86993dce7ca1ae4aa9a01e307cbfb6f5","bfd30bfa5fd39585d064cc2ce1dee3dd","439137784754b4e751ecda5a4fb038f8","b579ffe9eddd10029183a5968537f1c2","80b0c9bbf376ed1b113072527632e26e","a4ee1cdad7cd96b44a7089562cef2d6f","cc97afb0b52f3e617e91964336e74c82","320be3ae9a0215b17b991276501a119e","4eb5ef6232a98159dc013de2001b5a52","0d3c3ce54ce6f9f758369992b543b2e2","455524b2b2414758ec49dc02316eef40","9fec423b81bb7413d87b0c3d00a46b27","3db83131956e2536c673bf65979ae566","29edd5065e81ccf164a64f056564acc3","19f0a6be1602677e8f46fbe10c285526","aee87c8f343d09f410b72de9d7d9b672","377b96b230ff671a043438d02f72f30f","2fff90b5ebe519b2c9fae0188aafafdb","7822f01bbb0df14899310769caca100f","3a392e5fc96e3812d3ad155f801d7b37","2fac5c418576f8edd538d7b5e4bc9f19","fc9f13093dae07bce0729be1ad8b035f","e2d18513c814fe9fb8812243a1b87b9d","58ebaa6b5ab069526d52915696ea7932","c1712aab452bd54b9a7eac5d0e848157","92bb42ee724d07141f47738670209781","21caa6109660646aa280964c4570a072","f43fd4c6111ddd4e45a9d0cbc2bb4acb","3fbf0db9a0760dcac8426e0e7b17292c","9ee833258f3539bd2512ff7ffa5d2557","949b5381d6e921a2e33efc25e0e5f5cc","3704b193249f3c65879149dbd28eeab4","6f5dfe9f0c52d74a2a09535b96a36c6e","87e0e1408f1c61e956e140ef8a3fe417","159a106fc9eccd6c6a86cb10b0cd78b4","ac4d61d696a89bf6807b643594e36e00","e081db08ce16695e8eec1d1562302d6b","a8244e65b6d5ffe3e745e9048ef58bb0","68a5ec66f6c246c622516daa8d3c3aa7","5422373ed32e3720c99093ada817da83","96fa95e75c62b00ef4fe3e834d63ce71","1bfc291d6d9d36c2dc89872c16ea9f11","57d276c0d9a4c9e00c33e5ee6731a487","2fc9e840a6c510223bd894a3089da3c2","1018e93cd2d51489a03f11c947f1e32f","ed201fae78f95b520457750fd5197905","7b3471dfd17f2e9b6d502674c32a7180","55e7103e10212531ec14c729f3396b4a","c1fc7d6d56a6f9071ce19bb5314f567f","9c553e4a122bdb21b9441e11a75881a5","5e91f24aa7d5084ee8efdf984517d99c","c6d223df2c5c7a7af0c54bcf5d80249c","4b7bfdfabeb9bad4610465b22722511f","fedf9ab104a48ec547e2b5176373e0b8","3fbe0256f0d8cab8d4b21eaba9908028","e473212fdae31481e93d3e5cb51e8614","2e0a695d18e7d8367a64c917eff7f815","94f77d6a6b060e953335d2aa3fb2220a","0c999ae13189ae8bee9d9629433c6e3b","1e2466af6182be2013034a916f4c95f7","b85784c9a2b49853f561ada8e945ff37","3d66a0b88212e863b0515053da82efde","82ebb6a43fa8ddc015f64671323066b4","3b10475c8a6da0711a75b428ceae43c9","847d343b4fba3f86234de2b670e54dea","7bb19856477367cd24e0896c1812f921","650c189c6347b57245b40f54c9ebdd2a","8c439c4e929565d1c43c22ca39834a68","bd282c363b3193d2f9eca72f18a31ff0","4c60ecd4109f1420e1ffa3c2d04c2099","6f9f4b793a6d2a34b9578aa9243c2bae","54487cbf371f589b8835082ae7e09dab","1e026e14cfd1fd12c9084f8e72011704","43720cb870a133ea7b37e70b09aaff82","c6a9ead21b6b363cfb2a22227a78840d","785167fb3468dded2d5b27d69210b7a7","21d97522dd414fa1512a4a3a13c4c198","434b2260d99d0d4d6b0f9cb547661403","986d4fb18293619bd3bc21a4507caeba","b60e43a2a8019c191c2fe894b3a952d6","67d8e41178bb102351104bf62cb0e493","b8c3635a7bf032d5dbf8492af81f9986","ddf3496eb7d6c142d2a7ffaee6f71526","f04835102934b4f6da70811cd24dddb8","38cbcdc61b8260948145f696b246c052","f079e9e9043cc694df241385a028f487","805690051995bb757b26a02dfb9d1a8f","d067e8e797e741d6b03e55f18b95d483","bae4db9e291fbad7d5a63e5529f34183","f68b24ac51383031349c0d6ab2b48334",{"version":"507c43f00c8c17152c7810609fc9031c","signature":"da94d9a69ad18754ace41f423afdccef","impliedNodeFormat":1},{"version":"b5c0ced979219b2757a498c685bef029","signature":"9ab103e691b6da78a1f15cef9e393418","impliedNodeFormat":1},{"version":"bad56c785d9cc398e5af93ae0c4e3486","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"5ecf1fc330ec72a108d3b5bac0691fdb","signature":"6df2225f96f445c8a2ecb96fa3e3914f","impliedNodeFormat":1},{"version":"7b395695d3f97d7eed8047194360439c","signature":"d001e859e01ad7c995d3e657872e29fa","impliedNodeFormat":1},{"version":"713be3521bb34e34901a1a07c06f42f0","signature":"7824017fe0a13a21f8ed1b0fddd62386","impliedNodeFormat":1},{"version":"1342f08c6b439ebf6c42053eb50900f8","signature":"deb55c2ee41acf5baa408d6dba4b8c97","impliedNodeFormat":1},"c21b7119030da02e36819c77df3945d5",{"version":"7d07eec5ea3b874b868390a7400b0a7a","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"c73908aea55554bd39de78b839ec17b3","signature":"99676dfefb7df27ab030f4e550373ef9","impliedNodeFormat":1},{"version":"02e4086b17e391e8b4f499aa4ff440ee","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"8d388cef1a2a598f1dd2074f5a6579fc","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"a2689347a135d6062f90c2458010fca6","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"7208a2f70a875eb391214b27cbcf1f30","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},"56d080dfccb3c53a2d6c74c4f24252e3","75ebd62d9641cc8b34ba9b09be8283a9",{"version":"753f71e16f2994f332390bb1c997b0e3","affectsGlobalScope":true,"impliedNodeFormat":1},"8def0ea0e249f49397d74a4f5bdd45a5",{"version":"ed63d99e1e5c371dc120bef1b84057fc","impliedNodeFormat":99},{"version":"4d3fb552bfc7fb53c9195b2fafb512c0","impliedNodeFormat":99},{"version":"fbf7ba69043f86dc506ba28263e2e783","impliedNodeFormat":99},{"version":"a611eb6935df7737a77b34b01c631a4a","impliedNodeFormat":99},{"version":"6d08f6f1d0ee294c119d0e66f826331a","impliedNodeFormat":99},{"version":"d0abb8fa314728650d85450ff59db909","impliedNodeFormat":99},{"version":"abe007be89c2ad52c4d67fc2b0f6da6b","impliedNodeFormat":99},{"version":"ae1fe3925f3a2c8dfbb269ac2a50f5a6","impliedNodeFormat":99},{"version":"ee8ce731ff781ae7011350481a1af176","impliedNodeFormat":99},{"version":"08dcd98985ae16732a9be03d2b56aea6","impliedNodeFormat":99},{"version":"47f7401876f3c0a5b80bd01fbdfaed2b","impliedNodeFormat":99},"ab8e1ea59f16bc290a0451d09dc5a52e",{"version":"e9d43fb880595ac4ee66a56a364fd5fb","impliedNodeFormat":99},"24367c4ec7d778084b3a83bbdc5a23d4","edbf4843929ee5fe6521503f424e4464",{"version":"5e0eecd60ec8ccc15c22c507248ef1aa","impliedNodeFormat":99},{"version":"0221e2868d1f0d6df8321d945764aadb","impliedNodeFormat":99},{"version":"d2f6ad6f161f0a522886f64842c96a0e","impliedNodeFormat":99},{"version":"618ace1500cc84e42bc2e47c64f8c407","impliedNodeFormat":99},{"version":"9dd3c481cc870c4bf19e59d34f030a27","impliedNodeFormat":99},{"version":"b5c81396e966d59acab5a45f66b70866","impliedNodeFormat":99},{"version":"f94aa434ddb9e71f6e80395de85f6850","impliedNodeFormat":99},{"version":"3486e8f7f01b9874a793ddd451eb62a5","impliedNodeFormat":99},{"version":"cb0e7222aae349c2fb4f89b26efa81bd","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"0d7bbad7f82c886c5f36730065aec119","impliedNodeFormat":99},{"version":"369460c2755240ac2d3d006f09adb5ca","impliedNodeFormat":99},{"version":"4509fca76e721cdf9edb2d028395a117","impliedNodeFormat":99},"548472bfd4ebe2f1c8f494b960a27836",{"version":"fa98b0905a86da0a95fa8fd3e974e038","impliedNodeFormat":99},{"version":"5ede871fecbb2b6f672a99d3c3c6bee7","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"2c51637edf65b89d39356deff680ed36","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"0bf0efdacfd4bfadb631a4376097e382","impliedNodeFormat":99},{"version":"bd01f3bcdc72c9256e5cd5093d132df3","impliedNodeFormat":99},{"version":"b01bdc9acbaf3eb24eef464959e8e627","impliedNodeFormat":99},{"version":"2a75a1a065e5d0439fa1514d9c89b0eb","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"c01d22bc96b89eedc0ed1f11d8c270ab","impliedNodeFormat":99},{"version":"c15bc5b81c64386efb6f85fb596c4349","impliedNodeFormat":99},{"version":"5794a694c1f75a9cc38cb5e9c757224e","impliedNodeFormat":99},{"version":"4040d5640775a803b2ca1aa914f7a1d4","impliedNodeFormat":99},{"version":"5ed96746ee2e7eb084ad54f0e0e518bc","impliedNodeFormat":99},{"version":"eba7786b00a4e551c36bafa71bfb1876","impliedNodeFormat":99},"8d8a98bf45979ce5401d9ca4027940cd","7d98e95d38525423bbe0f05e0a508a41","96920299d013de56061cbc74a1d658b2","439adabdf29be1212ec7acc292679f21","3eb46d20ed056dcbfa5e75bad9014661",{"version":"b46aa1886055db890de9be52a97b301e","impliedNodeFormat":99},{"version":"23cbcf6109a45b21e5b22d5f36f59db4","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"851c83981c28a32944597c743f666820","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[203],[202],[201],[233,234],[206,212,230,231,232,235],[242],[242,243],[210,212,213],[210,212],[210],[205,210,221,222],[205,210,221],[229],[205,211],[205],[207],[205,206,207,208,209],[248,249],[248,249,250,251],[248,250],[248],[216],[216,217,218,219],[218],[214,237,238,240],[214,215,227,240],[205,212,214,215,223,240],[220],[205,214,215,223,236,239],[214,215,220,223,240],[214,237,238,239,240],[214,220,224,225,226,240],[205,210,212,214,215,220,223,224,225,226,227,228,230,236,237,238,239,240,241,244,245,246,247,252],[205,212,214,215,223,224,237,238,239,240,245],[253],[105],[102],[73,86,97,98],[73,97,98],[73,98,102,161,183],[87,88,89,90,91,92,93,94],[95,185],[99,100,184],[73,84,86],[73,84,88],[73,84],[87,88,91,92,93],[73],[109],[73,108],[111],[111,112,113,114,115,116],[118],[120,121,122,123],[120],[73,120],[73,95],[64],[64,65,66,67,68,69,70,71,72],[125,126],[124,125],[131],[73,130],[133,134,135],[73,133],[133],[101],[103,104,169,170,171,172],[106,110,117,119,124,127,132,136,149,151,153,155,157,159,161,164,166,168],[171],[137,138,139,140],[137],[148],[73,108,110,141,143,145,147],[174,175,176,177,178,179,180,181,182],[173,174],[174],[73,84,173,175],[150],[96],[85],[156],[73,84,155],[152],[128,129],[128],[154],[153],[158],[142],[160],[162,163],[73,162],[74],[74,75,76,77,78,79,80,81,82,83],[144],[73,144,186,187,188],[73,144,186,187],[145,187,188,190,191,192,193],[73,144,186,187,190],[194],[73,144,187],[73,144],[73,144,187,191],[73,144,186,187,192],[73,84,144,186,193],[84,144,186],[165],[146],[107],[73,102],[167]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo.runtime","useDefineForClassFields":true},"referencedMap":[[204,1],[203,2],[202,3],[235,4],[236,5],[243,6],[244,7],[214,8],[213,9],[237,8],[221,10],[223,11],[222,12],[230,13],[212,14],[206,15],[208,16],[210,17],[211,15],[250,18],[252,19],[251,20],[249,21],[217,22],[220,23],[218,22],[219,24],[239,25],[228,26],[224,27],[225,10],[246,28],[240,29],[226,30],[245,31],[227,32],[253,33],[247,34],[254,35],[106,36],[105,37],[99,38],[100,39],[184,40],[95,41],[186,42],[185,43],[87,44],[89,45],[88,46],[94,47],[93,48],[98,41],[110,49],[109,50],[112,51],[117,52],[113,51],[115,51],[116,51],[119,53],[118,46],[124,54],[121,55],[122,56],[123,55],[120,57],[65,58],[66,58],[73,59],[67,58],[68,58],[69,58],[70,58],[71,58],[72,58],[127,60],[126,61],[132,62],[131,63],[136,64],[134,65],[135,66],[133,48],[102,67],[101,48],[173,68],[169,69],[172,70],[141,71],[138,72],[140,72],[149,73],[148,74],[183,75],[175,76],[176,77],[177,77],[178,77],[179,77],[180,77],[174,78],[151,79],[150,46],[97,80],[96,46],[86,81],[85,46],[157,82],[156,83],[153,84],[152,46],[130,85],[128,48],[129,86],[155,87],[154,88],[159,89],[158,46],[143,90],[161,91],[160,46],[164,92],[163,93],[162,46],[75,94],[84,95],[76,94],[78,94],[79,94],[80,94],[83,94],[81,94],[82,94],[74,48],[145,96],[144,57],[189,97],[188,98],[194,99],[195,100],[190,98],[196,101],[197,102],[187,103],[198,104],[191,96],[199,105],[192,98],[200,106],[193,107],[166,108],[147,109],[108,110],[107,111],[168,112],[167,48]],"latestChangedDtsFile":"./windowRenderState.test.d.ts"}
@@ -1,5 +1,5 @@
1
1
  import type { AppWindow } from '@flighthq/app/contract';
2
- import type { CanvasSurface, HostCanvasCapability, NativeSurfaceHandle } from '@flighthq/types/contract';
2
+ import type { CanvasSurface, HostCanvasCapability, NativeSurfaceHandle } from './types.ts';
3
3
  export declare function createCanvasSurface(capability: Readonly<HostCanvasCapability>, window: Readonly<AppWindow>, width: number, height: number, options?: Readonly<CanvasRenderingContext2DSettings>): CanvasSurface | null;
4
4
  export declare function createCanvasSurfaceFromNativeHandle(capability: Readonly<HostCanvasCapability>, handle: NativeSurfaceHandle, options?: Readonly<CanvasRenderingContext2DSettings>): CanvasSurface | null;
5
5
  export declare function destroyCanvasSurface(capability: Readonly<HostCanvasCapability>, surface: Readonly<CanvasSurface>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"canvasSurface.d.ts","sourceRoot":"","sources":["../src/canvasSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EACV,aAAa,EAEb,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAMlC,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC1C,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,QAAQ,CAAC,gCAAgC,CAAC,GACnD,aAAa,GAAG,IAAI,CAItB;AAGD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC1C,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,QAAQ,CAAC,gCAAgC,CAAC,GACnD,aAAa,GAAG,IAAI,CAOtB;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC1C,OAAO,EAAE,QAAQ,CAAC,aAAa,CAAC,GAC/B,IAAI,CAEN"}
1
+ {"version":3,"file":"canvasSurface.d.ts","sourceRoot":"","sources":["../src/canvasSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKxD,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAI3F,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC1C,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC3B,KAAK,EAAE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U,oBAAoB,CAClC,UAA0C,EAC1C,OAAgC;IAEhC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC"}
@@ -1,6 +1,8 @@
1
+ export * from './contract.surface-types.ts';
1
2
  export * from './canvasSurface.ts';
2
3
  export * from './glSurface.ts';
3
4
  export * from './surface.ts';
4
5
  export * from './surfaceDisplay.ts';
5
6
  export * from './wgpuSurface.ts';
7
+ export * from './windowRenderState.ts';
6
8
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
package/dist/contract.js CHANGED
@@ -1,6 +1,8 @@
1
+ export * from './contract.surface-types.js';
1
2
  export * from './canvasSurface.js';
2
3
  export * from './glSurface.js';
3
4
  export * from './surface.js';
4
5
  export * from './surfaceDisplay.js';
5
6
  export * from './wgpuSurface.js';
7
+ export * from './windowRenderState.js';
6
8
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { CanvasSurface, HostCanvasCapabilities, HostCanvasCapability, HostSurfaceCapabilities, HostSurfaceContextCapability, HostSurfaceDisplayCapability, HostSurfaceResizeCapability, HostWgpuCapability, NativeSurfaceHandle, Surface, SurfaceWithContext, SurfaceRuntime, WgpuHostAcquisition, WgpuHostAcquisitionOptions, WgpuPresentationSurface, WgpuSurface, WgpuSurfaceAttachResult, WgpuSurfaceAttachment, } from './types.ts';
2
+ //# sourceMappingURL=contract.surface-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.surface-types.d.ts","sourceRoot":"","sources":["../src/contract.surface-types.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACvB,WAAW,EACX,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contract.surface-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.surface-types.js","sourceRoot":"","sources":["../src/contract.surface-types.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
1
  import type { AppWindow } from '@flighthq/app/contract';
2
- import type { GlContextOptions, GlSurface, HostGlCapability, NativeSurfaceHandle } from '@flighthq/types/contract';
3
- export declare function createGlSurface(capability: Readonly<HostGlCapability>, window: Readonly<AppWindow>, width: number, height: number, options?: Readonly<GlContextOptions>): GlSurface | null;
4
- export declare function createGlSurfaceFromNativeHandle(capability: Readonly<HostGlCapability>, handle: NativeSurfaceHandle, options?: Readonly<GlContextOptions>): GlSurface | null;
5
- export declare function destroyGlSurface(capability: Readonly<HostGlCapability>, surface: Readonly<GlSurface>): void;
2
+ import type { HostSurfaceContextCapability, NativeSurfaceHandle, SurfaceWithContext } from './types.ts';
3
+ type GenericGlSurface<Context> = SurfaceWithContext<Context, 'GlSurface'>;
4
+ export declare function createGlSurface<Context, Options>(capability: Readonly<HostSurfaceContextCapability<Context, Options>>, window: Readonly<AppWindow>, width: number, height: number, options?: Readonly<Options>): GenericGlSurface<Context> | null;
5
+ export declare function createGlSurfaceFromNativeHandle<Context, Options>(capability: Readonly<HostSurfaceContextCapability<Context, Options>>, handle: NativeSurfaceHandle, options?: Readonly<Options>): GenericGlSurface<Context> | null;
6
+ export declare function destroyGlSurface<Context, Options>(capability: Readonly<HostSurfaceContextCapability<Context, Options>>, surface: Readonly<GenericGlSurface<Context>>): void;
7
+ export {};
6
8
  //# sourceMappingURL=glSurface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"glSurface.d.ts","sourceRoot":"","sources":["../src/glSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAEV,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAQlC,wBAAgB,eAAe,CAC7B,UAAU,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EACtC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GACnC,SAAS,GAAG,IAAI,CAIlB;AAID,wB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CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"file":"glSurface.js","sourceRoot":"","sources":["../src/glSurface.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,yGAAyG;AACzG,yGAAyG;AACzG,0GAA0G;AAC1G,6FAA6F;AAC7F,MAAM,UAAU,eAAe,CAC7B,UAAoE,EACpE,MAA2B,EAC3B,KAAa,EACb,MAAc,EACd,OAA2B;IAE3B,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACjE,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACjC,OAAO,+BAA+B,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACtE,CAAC;AAED,wGAAwG;AACxG,qGAAqG;AACrG,MAAM,UAAU,+BAA+B,CAC7C,UAAoE,EACpE,MAA2B,EAC3B,OAA2B;IAE3B,MAAM,OAAO,GAAG,eAAe,CAA4B,MAAM,CAAC,CAAC;IACnE,OAAO,CAAC,OAAO,GAAG,WAAoB,CAAC;IACvC,oGAAoG;IACpG,gDAAgD;IAChD,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,OAAoC,EAAE,OAAO,CAAC,CAAC;IAClF,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACjC,OAAyD,CAAC,OAAO,GAAG,OAAO,CAAC;IAC7E,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,UAAoE,EACpE,OAA4C;IAE5C,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,4 +2,6 @@ export { createCanvasSurface, createCanvasSurfaceFromNativeHandle, destroyCanvas
2
2
  export { createGlSurface, createGlSurfaceFromNativeHandle, destroyGlSurface } from './contract.ts';
3
3
  export { createWgpuSurface, createWgpuSurfaceFromNativeHandle, destroyWgpuSurface } from './contract.ts';
4
4
  export { resizeSurface, setSurfaceDisplaySize } from './contract.ts';
5
+ export type { CanvasSurface, HostCanvasCapabilities, HostCanvasCapability, HostSurfaceCapabilities, HostSurfaceContextCapability, HostSurfaceDisplayCapability, HostSurfaceResizeCapability, HostWgpuCapability, NativeSurfaceHandle, Surface, SurfaceWithContext, SurfaceRuntime, WgpuHostAcquisition, WgpuHostAcquisitionOptions, WgpuPresentationSurface, WgpuSurface, WgpuSurfaceAttachResult, WgpuSurfaceAttachment, } from './contract.ts';
6
+ export { attachWindowRenderState, detachWindowRenderState } from './contract.ts';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACrE,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACvB,WAAW,EACX,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -2,4 +2,5 @@ export { createCanvasSurface, createCanvasSurfaceFromNativeHandle, destroyCanvas
2
2
  export { createGlSurface, createGlSurfaceFromNativeHandle, destroyGlSurface } from './contract.js';
3
3
  export { createWgpuSurface, createWgpuSurfaceFromNativeHandle, destroyWgpuSurface } from './contract.js';
4
4
  export { resizeSurface, setSurfaceDisplaySize } from './contract.js';
5
+ export { attachWindowRenderState, detachWindowRenderState } from './contract.js';
5
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAqBrE,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC"}
package/dist/surface.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type { EntityConstruction, NativeSurfaceHandle, Surface, SurfaceRuntime } from '@flighthq/types/contract';
1
+ import type { EntityConstruction } from '@flighthq/entity/contract';
2
+ import type { NativeSurfaceHandle, Surface, SurfaceRuntime } from './types.ts';
2
3
  export declare function allocateSurface<T extends Surface>(handle: NativeSurfaceHandle): EntityConstruction<T>;
3
4
  export declare function getSurfaceHandle(surface: Readonly<Surface>): NativeSurfaceHandle;
4
5
  export declare function getSurfaceRuntime(surface: Readonly<Surface>): SurfaceRuntime;
@@ -1 +1 @@
1
- {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAOjH,wBAAgB,eAAe,CAAC,CAAC,SAAS,OAAO,EAAE,MAAM,EAAE,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAMrG;AAID,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,mBAAmB,CAEhF;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,cAAc,CAE5E"}
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM/E,wBAAgB,eAAe,CAAC,CAAC,SAAS,OAAO,EAAE,MAAM,EAAE,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAMrG;AAID,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,mBAAmB,CAEhF;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,cAAc,CAE5E"}
package/dist/surface.js CHANGED
@@ -1,5 +1,4 @@
1
- import { allocateEntity, createEntityRuntime } from '@flighthq/entity/contract';
2
- import { EntityRuntimeKey } from '@flighthq/types/contract';
1
+ import { allocateEntity, createEntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
3
2
  // Allocates a surface entity around a drawable the host just created, before any context is acquired on
4
3
  // it. The handle goes on the runtime because it is a platform object that only the allocating host may
5
4
  // narrow; the entity carries no trace of it, which is what keeps the portable layers free of DOM and
@@ -1 +1 @@
1
- {"version":3,"file":"surface.js","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,wGAAwG;AACxG,uGAAuG;AACvG,qGAAqG;AACrG,sFAAsF;AACtF,MAAM,UAAU,eAAe,CAAoB,MAA2B;IAC5E,MAAM,OAAO,GAAG,cAAc,EAAK,CAAC;IACpC,MAAM,OAAO,GAAG,mBAAmB,EAAoB,CAAC;IACxD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC;IACpC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,uGAAuG;AACvG,0DAA0D;AAC1D,MAAM,UAAU,gBAAgB,CAAC,OAA0B;IACzD,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAA0B;IAC1D,OAAO,OAAO,CAAC,gBAAgB,CAAmB,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"surface.js","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAKlG,wGAAwG;AACxG,uGAAuG;AACvG,qGAAqG;AACrG,sFAAsF;AACtF,MAAM,UAAU,eAAe,CAAoB,MAA2B;IAC5E,MAAM,OAAO,GAAG,cAAc,EAAK,CAAC;IACpC,MAAM,OAAO,GAAG,mBAAmB,EAAoB,CAAC;IACxD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC;IACpC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,uGAAuG;AACvG,0DAA0D;AAC1D,MAAM,UAAU,gBAAgB,CAAC,OAA0B;IACzD,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAA0B;IAC1D,OAAO,OAAO,CAAC,gBAAgB,CAAmB,CAAC;AACrD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { HostSurfaceDisplayCapability, HostSurfaceResizeCapability, Surface } from '@flighthq/types/contract';
1
+ import type { HostSurfaceDisplayCapability, HostSurfaceResizeCapability, Surface } from './types.ts';
2
2
  export declare function resizeSurface(capability: Readonly<HostSurfaceResizeCapability>, surface: Readonly<Surface>, width: number, height: number): void;
3
3
  export declare function setSurfaceDisplaySize(capability: Readonly<HostSurfaceDisplayCapability>, surface: Readonly<Surface>, width: number, height: number): void;
4
4
  //# sourceMappingURL=surfaceDisplay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"surfaceDisplay.d.ts","sourceRoot":"","sources":["../src/surfaceDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAInH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,QAAQ,CAAC,2BAA2B,CAAC,EACjD,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CAEN;AAID,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,QAAQ,CAAC,4BAA4B,CAAC,EAClD,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CAEN"}
1
+ {"version":3,"file":"surfaceDisplay.d.ts","sourceRoot":"","sources":["../src/surfaceDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrG,wBAAgB,aAAa,CAC3B,UAAU,EAAE,QAAQ,CAAC,2BAA2B,CAAC,EACjD,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CAEN;AAID,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,QAAQ,CAAC,4BAA4B,CAAC,EAClD,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CAEN"}
@@ -0,0 +1,96 @@
1
+ import type { AppWindow } from '@flighthq/app/contract';
2
+ import type { EntityRaw, EntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
3
+ export type NativeSurfaceHandle = unknown;
4
+ export interface Surface extends EntityRaw {
5
+ [EntityRuntimeKey]: EntityRuntime | undefined;
6
+ }
7
+ export interface SurfaceWithContext<Context, Brand extends string> extends Surface {
8
+ readonly __brand: Brand;
9
+ readonly context: Context;
10
+ }
11
+ export interface HostSurfaceContextCapability<Context, Options> {
12
+ acquire(surface: Readonly<Surface>, options?: Readonly<Options>): Context | null;
13
+ create(window: Readonly<AppWindow>, width: number, height: number, options?: Readonly<Options>): NativeSurfaceHandle | null;
14
+ release(surface: Readonly<Surface>): void;
15
+ }
16
+ export interface SurfaceRuntime extends EntityRuntime {
17
+ handle: NativeSurfaceHandle;
18
+ }
19
+ export interface CanvasSurface extends Surface {
20
+ readonly __brand: 'CanvasSurface';
21
+ readonly context: CanvasRenderingContext2D;
22
+ }
23
+ export interface HostCanvasCapability {
24
+ acquire(surface: Readonly<Surface>, options?: Readonly<CanvasRenderingContext2DSettings>): CanvasRenderingContext2D | null;
25
+ create(window: Readonly<AppWindow>, width: number, height: number, options?: Readonly<CanvasRenderingContext2DSettings>): NativeSurfaceHandle | null;
26
+ createSurface(width: number, height: number): CanvasSurface | null;
27
+ destroySurface(surface: CanvasSurface): void;
28
+ release(surface: Readonly<Surface>): void;
29
+ }
30
+ /** The complete Canvas capability group. An omitted slot is capability absence. */
31
+ export interface HostCanvasCapabilities {
32
+ readonly context?: HostCanvasCapability;
33
+ }
34
+ export interface HostSurfaceDisplayCapability {
35
+ setDisplaySize(surface: Readonly<Surface>, width: number, height: number): void;
36
+ }
37
+ export interface HostSurfaceResizeCapability {
38
+ resize(surface: Readonly<Surface>, width: number, height: number): void;
39
+ }
40
+ /** The complete surface capability group. An omitted slot is capability absence. */
41
+ export interface HostSurfaceCapabilities {
42
+ readonly display?: HostSurfaceDisplayCapability;
43
+ readonly resize?: HostSurfaceResizeCapability;
44
+ }
45
+ /**
46
+ * The presentation surface's current size, which every WGPU consumer reads once per frame.
47
+ *
48
+ * The values are live, never a snapshot. A provider returns the size the surface has now; a native host
49
+ * may back these members with getters over its own swapchain. Keeping this contract to two readonly
50
+ * members avoids coupling portable rendering code to the DOM.
51
+ */
52
+ export interface WgpuPresentationSurface {
53
+ readonly height: number;
54
+ readonly width: number;
55
+ }
56
+ /** The device, presentation context, and ownership state acquired for a WGPU surface. */
57
+ export interface WgpuHostAcquisition extends EntityRaw {
58
+ [EntityRuntimeKey]: EntityRuntime | undefined;
59
+ readonly context: GPUCanvasContext;
60
+ readonly device: GPUDevice;
61
+ readonly format: GPUTextureFormat;
62
+ /** `flight` identifies handles created for Flight; `caller` identifies exact borrowed handles. */
63
+ readonly ownership: 'caller' | 'flight';
64
+ readonly surface: WgpuPresentationSurface;
65
+ }
66
+ export interface WgpuHostAcquisitionOptions {
67
+ readonly format?: GPUTextureFormat;
68
+ readonly powerPreference?: GPUPowerPreference;
69
+ }
70
+ /** A WGPU rendering surface with its host-acquired device and presentation context. */
71
+ export interface WgpuSurface extends Surface {
72
+ readonly __brand: 'WgpuSurface';
73
+ readonly acquisition: WgpuHostAcquisition;
74
+ }
75
+ export interface WgpuSurfaceAttachResult {
76
+ readonly context: GPUCanvasContext;
77
+ readonly surface: WgpuPresentationSurface;
78
+ }
79
+ export interface WgpuSurfaceAttachment {
80
+ readonly alphaMode: GPUCanvasAlphaMode;
81
+ readonly device: GPUDevice;
82
+ readonly format: GPUTextureFormat;
83
+ }
84
+ /**
85
+ * Host lifecycle seam for allocating, acquiring, attaching, and releasing WGPU surfaces. It belongs in
86
+ * the surface contract lane because Surface's factories consume it and render-wgpu already depends on
87
+ * Surface; keeping it in a renderer would force an otherwise type-only dependency cycle.
88
+ */
89
+ export interface HostWgpuCapability {
90
+ acquire(surface: Readonly<Surface>, options: Readonly<WgpuHostAcquisitionOptions>): Promise<WgpuHostAcquisition>;
91
+ create(window: Readonly<AppWindow>, width: number, height: number): NativeSurfaceHandle | null;
92
+ attachSurface(surface: Readonly<Surface>, attachment: Readonly<WgpuSurfaceAttachment>): WgpuSurfaceAttachResult | null;
93
+ isSupported(): boolean;
94
+ release(acqu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AM,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CAAC;IAC/F,aAAa,CACX,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC1B,UAAU,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAC1C,uBAAuB,GAAG,IAAI,CAAC;IAClC,WAAW,IAAI,OAAO,CAAC;IACvB,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC;CAC3D"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import type { AppWindow } from '@flighthq/app/contract';
2
- import type { HostWgpuCapability, NativeSurfaceHandle, WgpuHostAcquisitionOptions, WgpuSurface } from '@flighthq/types/contract';
2
+ import type { HostWgpuCapability, NativeSurfaceHandle, WgpuHostAcquisitionOptions, WgpuSurface } from './types.ts';
3
3
  export declare function createWgpuSurface(capability: Readonly<HostWgpuCapability>, window: Readonly<AppWindow>, width: number, height: number, options?: Readonly<WgpuHostAcquisitionOptions>): Promise<WgpuSurface | null>;
4
4
  export declare function createWgpuSurfaceFromNativeHandle(capability: Readonly<HostWgpuCapability>, handle: NativeSurfaceHandle, options?: Readonly<WgpuHostAcquisitionOptions>): Promise<WgpuSurface | null>;
5
5
  export declare function destroyWgpuSurface(capability: Readonly<HostWgpuCapability>, surface: Readonly<WgpuSurface>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"wgpuSurface.d.ts","sourceRoot":"","sources":["../src/wgpuSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAEV,kBAAkB,EAClB,mBAAm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AAC;AAC/B,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,UAAwC,EAAE,OAA8B;IACzG,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { AppWindow } from '@flighthq/app/contract';
2
+ import type { HostSurfaceResizeCapability, Surface } from './types.ts';
3
+ export declare function attachWindowRenderState(hostSurfaceResize: Readonly<HostSurfaceResizeCapability>, win: AppWindow, surface: Readonly<Surface>): void;
4
+ export declare function detachWindowRenderState(win: AppWindow): void;
5
+ //# sourceMappingURL=windowRenderState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windowRenderState.d.ts","sourceRoot":"","sources":["../src/windowRenderState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMvE,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,QAAQ,CAAC,2BAA2B,CAAC,EACxD,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GACzB,IAAI,CAYN;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAE5D"}
@@ -0,0 +1,19 @@
1
+ import { attachAppWindowRenderStateObserver, detachAppWindowRenderStateObserver } from '@flighthq/app/contract';
2
+ import { connectSignal, disconnectSignal } from '@flighthq/signals/contract';
3
+ // Binds a surface's backing store to the window's size and devicePixelRatio: sizes it now and on every
4
+ // onResize, so moving the window between displays or zooming is handled. Pair with attachWindowResize,
5
+ // the source of the size/DPI updates this reacts to. DOM render states need no surface resize (the
6
+ // browser rasterizes DOM at device resolution), so this is for canvas and GPU surfaces.
7
+ export function attachWindowRenderState(hostSurfaceResize, win, surface) {
8
+ detachAppWindowRenderStateObserver(win);
9
+ const apply = () => {
10
+ hostSurfaceResize.resize(surface, Math.round(win.width * win.devicePixelRatio), Math.round(win.height * win.devicePixelRatio));
11
+ };
12
+ apply();
13
+ const resizeSlot = connectSignal(win.onResize, apply);
14
+ attachAppWindowRenderStateObserver(win, () => disconnectSignal(win.onResize, resizeSlot));
15
+ }
16
+ export function detachWindowRenderState(win) {
17
+ detachAppWindowRenderStateObserver(win);
18
+ }
19
+ //# sourceMappingURL=windowRenderState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windowRenderState.js","sourceRoot":"","sources":["../src/windowRenderState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kCAAkC,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAChH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAI7E,uGAAuG;AACvG,uGAAuG;AACvG,mGAAmG;AACnG,wFAAwF;AACxF,MAAM,UAAU,uBAAuB,CACrC,iBAAwD,EACxD,GAAc,EACd,OAA0B;IAE1B,kCAAkC,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,GAAS,EAAE;QACvB,iBAAiB,CAAC,MAAM,CACtB,OAAO,EACP,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,gBAAgB,CAAC,EAC5C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,gBAAgB,CAAC,CAC9C,CAAC;IACJ,CAAC,CAAC;IACF,KAAK,EAAE,CAAC;IACR,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACtD,kCAAkC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;AAC5F,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,GAAc;IACpD,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC1C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/surface",
3
- "version": "0.5.1-next.4398.ec497e7",
3
+ "version": "0.5.1-next.5076.44cab46",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,15 +32,17 @@
32
32
  "scripts": {
33
33
  "build": "tsc -b",
34
34
  "clean": "tsc -b --clean",
35
+ "generate": "tsx ../../scripts/generate-rust-package.ts --crate flight-surface --package surface",
36
+ "generate:check": "tsx ../../scripts/generate-rust-package.ts --crate flight-surface --package surface --check",
35
37
  "test": "vitest run --config vitest.config.ts",
36
38
  "test:watch": "vitest --watch --config vitest.config.ts",
37
39
  "prepack": "npm run clean && npm run clean:dist && npm run build",
38
40
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
41
  },
40
42
  "dependencies": {
41
- "@flighthq/app": "0.5.1-next.4398.ec497e7",
42
- "@flighthq/entity": "0.5.1-next.4398.ec497e7",
43
- "@flighthq/types": "0.5.1-next.4398.ec497e7"
43
+ "@flighthq/app": "0.5.1-next.5076.44cab46",
44
+ "@flighthq/entity": "0.5.1-next.5076.44cab46",
45
+ "@flighthq/signals": "0.5.1-next.5076.44cab46"
44
46
  },
45
47
  "devDependencies": {
46
48
  "typescript": "^7.0.2"
@@ -1,9 +1,9 @@
1
1
  import type { AppWindow } from '@flighthq/app/contract';
2
2
  import { finishEntity } from '@flighthq/entity/contract';
3
- import type { CanvasSurface, Entity, HostCanvasCapability } from '@flighthq/types/contract';
4
3
 
5
4
  import { createCanvasSurface, createCanvasSurfaceFromNativeHandle, destroyCanvasSurface } from './canvasSurface.ts';
6
5
  import { allocateSurface, getSurfaceHandle } from './surface.ts';
6
+ import type { CanvasSurface, HostCanvasCapability } from './types.ts';
7
7
 
8
8
  function canvasCapability(fields: HostCanvasCapability): HostCanvasCapability {
9
9
  return finishEntity(Object.assign(allocateSurface(null), fields) as never) as unknown as HostCanvasCapability;
@@ -1,16 +1,29 @@
1
1
  import type { AppWindow } from '@flighthq/app/contract';
2
2
  import { finishEntity } from '@flighthq/entity/contract';
3
- import type { Entity, GlContext, GlSurface, HostGlCapability } from '@flighthq/types/contract';
4
3
 
5
4
  import { createGlSurface, createGlSurfaceFromNativeHandle, destroyGlSurface } from './glSurface.ts';
6
5
  import { allocateSurface, getSurfaceHandle } from './surface.ts';
6
+ import type { HostSurfaceContextCapability, SurfaceWithContext } from './types.ts';
7
7
 
8
- function glCapability(fields: HostGlCapability): HostGlCapability {
9
- return finishEntity(Object.assign(allocateSurface(null), fields) as never) as unknown as HostGlCapability;
8
+ interface TestGlContext {
9
+ readonly marker: 'gl';
10
+ }
11
+
12
+ interface TestGlOptions {
13
+ readonly antialias?: boolean;
14
+ }
15
+
16
+ type TestGlSurface = SurfaceWithContext<TestGlContext, 'GlSurface'>;
17
+ type TestGlCapability = HostSurfaceContextCapability<TestGlContext, TestGlOptions> & {
18
+ subscribe(): () => void;
19
+ };
20
+
21
+ function glCapability(fields: TestGlCapability): TestGlCapability {
22
+ return finishEntity(Object.assign(allocateSurface(null), fields) as never) as unknown as TestGlCapability;
10
23
  }
11
24
 
12
25
  const appWindow = {} as AppWindow;
13
- const context = {} as GlContext;
26
+ const context: TestGlContext = { marker: 'gl' };
14
27
  const defaults = { release() {}, subscribe: () => () => {} };
15
28
 
16
29
  describe('createGlSurface', () => {
@@ -92,7 +105,7 @@ describe('destroyGlSurface', () => {
92
105
  release,
93
106
  subscribe: () => () => {},
94
107
  });
95
- const surface = createGlSurface(capability, appWindow, 8, 8) as GlSurface;
108
+ const surface = createGlSurface(capability, appWindow, 8, 8) as TestGlSurface;
96
109
  destroyGlSurface(capability, surface);
97
110
 
98
111
  expect(release).toHaveBeenCalledExactlyOnceWith(surface);
@@ -1,8 +1,7 @@
1
- import { finishEntity } from '@flighthq/entity/contract';
2
- import type { Surface } from '@flighthq/types/contract';
3
- import { EntityRuntimeKey } from '@flighthq/types/contract';
1
+ import { EntityRuntimeKey, finishEntity } from '@flighthq/entity/contract';
4
2
 
5
3
  import { allocateSurface, getSurfaceHandle, getSurfaceRuntime } from './surface.ts';
4
+ import type { Surface } from './types.ts';
6
5
 
7
6
  describe('allocateSurface', () => {
8
7
  it('puts the drawable on the runtime and nothing on the entity', () => {
@@ -1,15 +1,10 @@
1
1
  import { finishEntity } from '@flighthq/entity/contract';
2
- import type {
3
- Entity,
4
- HostSurfaceDisplayCapability,
5
- HostSurfaceResizeCapability,
6
- Surface,
7
- } from '@flighthq/types/contract';
8
2
 
9
3
  import { allocateSurface } from './surface.ts';
10
4
  import { resizeSurface, setSurfaceDisplaySize } from './surfaceDisplay.ts';
5
+ import type { HostSurfaceDisplayCapability, HostSurfaceResizeCapability, Surface } from './types.ts';
11
6
 
12
- function capabilityOf<T>(fields: Omit<T, keyof Entity>): T {
7
+ function capabilityOf<T>(fields: T): T {
13
8
  return finishEntity(Object.assign(allocateSurface<Surface>(null), fields) as never) as T;
14
9
  }
15
10
 
@@ -1,8 +1,9 @@
1
1
  import type { AppWindow } from '@flighthq/app/contract';
2
+ import type { EntityRaw as Entity } from '@flighthq/entity/contract';
2
3
  import { finishEntity } from '@flighthq/entity/contract';
3
- import type { Entity, HostWgpuCapability, WgpuHostAcquisition, WgpuSurface } from '@flighthq/types/contract';
4
4
 
5
5
  import { allocateSurface, getSurfaceHandle } from './surface.ts';
6
+ import type { HostWgpuCapability, WgpuHostAcquisition, WgpuSurface } from './types.ts';
6
7
  import { createWgpuSurface, createWgpuSurfaceFromNativeHandle, destroyWgpuSurface } from './wgpuSurface.ts';
7
8
 
8
9
  function wgpuCapability(fields: HostWgpuCapability): HostWgpuCapability {
@@ -0,0 +1,85 @@
1
+ import { createAppWindow } from '@flighthq/app/contract';
2
+ import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
3
+ import { emitSignal } from '@flighthq/signals/contract';
4
+
5
+ import type { HostSurfaceResizeCapability, Surface } from './types.ts';
6
+ import { attachWindowRenderState, detachWindowRenderState } from './windowRenderState.ts';
7
+
8
+ describe('attachWindowRenderState', () => {
9
+ it('sizes the surface from the window', () => {
10
+ const resize = recordingResize();
11
+ const win = createAppWindow();
12
+ win.width = 800;
13
+ win.height = 600;
14
+ win.devicePixelRatio = 2;
15
+ attachWindowRenderState(resize, win, createSurface());
16
+ expect(resize.calls).toEqual(['resize:1600,1200']);
17
+ });
18
+
19
+ it('keeps onResize core-owned while reapplying the backing size', () => {
20
+ const resize = recordingResize();
21
+ const win = createAppWindow();
22
+ win.width = 800;
23
+ win.height = 600;
24
+ win.devicePixelRatio = 1;
25
+ attachWindowRenderState(resize, win, createSurface());
26
+ win.width = 400;
27
+ win.devicePixelRatio = 2;
28
+ emitSignal(win.onResize, undefined);
29
+ expect(resize.calls).toEqual(['resize:800,600', 'resize:800,1200']);
30
+ });
31
+
32
+ it('pins resize commands to the provider captured at attachment', () => {
33
+ const origin = recordingResize();
34
+ const win = createAppWindow();
35
+ win.width = 320;
36
+ win.height = 200;
37
+ attachWindowRenderState(origin, win, createSurface());
38
+ win.width = 640;
39
+ emitSignal(win.onResize, undefined);
40
+ expect(origin.calls).toEqual(['resize:320,200', 'resize:640,200']);
41
+ });
42
+
43
+ it('replaces a previous attachment on the same window', () => {
44
+ const origin = recordingResize();
45
+ const replacement = recordingResize();
46
+ const win = createAppWindow();
47
+ win.width = 10;
48
+ win.height = 10;
49
+ attachWindowRenderState(origin, win, createSurface());
50
+ attachWindowRenderState(replacement, win, createSurface());
51
+ win.width = 20;
52
+ emitSignal(win.onResize, undefined);
53
+ expect(origin.calls).toEqual(['resize:10,10']);
54
+ expect(replacement.calls).toEqual(['resize:10,10', 'resize:20,10']);
55
+ });
56
+ });
57
+
58
+ describe('detachWindowRenderState', () => {
59
+ it('stops reacting to window resize', () => {
60
+ const resize = recordingResize();
61
+ const win = createAppWindow();
62
+ win.width = 800;
63
+ win.height = 600;
64
+ win.devicePixelRatio = 1;
65
+ attachWindowRenderState(resize, win, createSurface());
66
+ detachWindowRenderState(win);
67
+ win.width = 400;
68
+ emitSignal(win.onResize, undefined);
69
+ expect(resize.calls).toEqual(['resize:800,600']);
70
+ });
71
+ });
72
+
73
+ function createSurface(): Surface {
74
+ return finishEntity(allocateEntity<Surface>());
75
+ }
76
+
77
+ function recordingResize(): HostSurfaceResizeCapability & { calls: string[] } {
78
+ const calls: string[] = [];
79
+ return {
80
+ calls,
81
+ resize: (_surface: Readonly<Surface>, width: number, height: number) => {
82
+ calls.push(`resize:${width},${height}`);
83
+ },
84
+ };
85
+ }