@flighthq/image 0.5.1-next.920.da8f530 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/contract.d.ts +6 -6
  5. package/dist/contract.d.ts.map +1 -1
  6. package/dist/contract.image-types.d.ts +2 -0
  7. package/dist/contract.image-types.d.ts.map +1 -0
  8. package/dist/contract.image-types.js +5 -0
  9. package/dist/contract.image-types.js.map +1 -0
  10. package/dist/contract.js +6 -6
  11. package/dist/contract.js.map +1 -1
  12. package/dist/imageResource.d.ts +3 -1
  13. package/dist/imageResource.d.ts.map +1 -1
  14. package/dist/imageResource.js +21 -17
  15. package/dist/imageResource.js.map +1 -1
  16. package/dist/imageResourceFrom.d.ts +7 -12
  17. package/dist/imageResourceFrom.d.ts.map +1 -1
  18. package/dist/imageResourceFrom.js +10 -56
  19. package/dist/imageResourceFrom.js.map +1 -1
  20. package/dist/imageResourceReference.d.ts +6 -4
  21. package/dist/imageResourceReference.d.ts.map +1 -1
  22. package/dist/imageResourceReference.js +32 -45
  23. package/dist/imageResourceReference.js.map +1 -1
  24. package/dist/imageSourceDimensions.d.ts +6 -0
  25. package/dist/imageSourceDimensions.d.ts.map +1 -0
  26. package/dist/imageSourceDimensions.js +24 -0
  27. package/dist/imageSourceDimensions.js.map +1 -0
  28. package/dist/imageTestHelper.d.ts +5 -0
  29. package/dist/imageTestHelper.d.ts.map +1 -0
  30. package/dist/imageTestHelper.js +29 -0
  31. package/dist/imageTestHelper.js.map +1 -0
  32. package/dist/index.d.ts +5 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +4 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/types.d.ts +93 -0
  37. package/dist/types.d.ts.map +1 -0
  38. package/dist/types.js +9 -0
  39. package/dist/types.js.map +1 -0
  40. package/package.json +11 -5
  41. package/src/imageResource.test.ts +16 -3
  42. package/src/imageResourceFrom.test.ts +52 -130
  43. package/src/imageResourceReference.test.ts +62 -114
  44. package/src/imageSourceDimensions.test.ts +86 -0
  45. package/src/imageTestHelper.test.ts +48 -0
package/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/image`. The `@flight
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/image@0.5.1-next.920.da8f530](https://github.com/flighthq/flight/tree/da8f530894916f9baa6a9f6822b4f393b9e70a85/packages/image)
17
- - [License](https://github.com/flighthq/flight/blob/da8f530894916f9baa6a9f6822b4f393b9e70a85/LICENSE.md)
16
+ - [Source for @flighthq/image@0.6.0](https://github.com/flighthq/flight/tree/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/packages/image)
17
+ - [License](https://github.com/flighthq/flight/blob/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/LICENSE.md)
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[113,114]],"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","../../bitmap/package.json","../../entity/package.json","../../geometry/package.json","../../image-codec/package.json","../package.json","../../menu/package.json","../../resource/package.json","../../signals/package.json","../../surface/package.json","../../texture-formats/package.json","../../texture/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","../../geometry/dist/types.d.ts","../../geometry/dist/contract.geometry-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","../../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","../../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","../../surface/dist/types.d.ts","../../surface/dist/contract.surface-types.d.ts","../../texture-formats/dist/types.d.ts","../../texture-formats/dist/contract.texture-formats-types.d.ts","../src/types.ts","../src/contract.image-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","6f54f49ea7e96bdd7a9078f6c94e88fd","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","9ff787c1324b2d4c07a342936293f47a","80b0c9bbf376ed1b113072527632e26e","a4ee1cdad7cd96b44a7089562cef2d6f","455524b2b2414758ec49dc02316eef40","9fec423b81bb7413d87b0c3d00a46b27","3db83131956e2536c673bf65979ae566","29edd5065e81ccf164a64f056564acc3","96fa95e75c62b00ef4fe3e834d63ce71","1bfc291d6d9d36c2dc89872c16ea9f11","57d276c0d9a4c9e00c33e5ee6731a487","2fc9e840a6c510223bd894a3089da3c2","1018e93cd2d51489a03f11c947f1e32f","ed201fae78f95b520457750fd5197905","7b3471dfd17f2e9b6d502674c32a7180","921f8c08344aa1539405420fcf952a20","21a1b4607cb18ab00b1254cb35a77c57","d80705d2e260aba56aa54c416f471fbd","a821537667385a2906566c8bc69a21ed","387cee0627331c24f641f87fc905bff1","859418c3a3f1b2e9500476d829fc6093","32e33ec68ba1aa1147aab680de3b7c90","67c59d76f923f64e85a373fb5a2bbb13","5676a2feb7e6b36f973571c4a4500566","dd2bc19aa76d59fe40aa6c6fb9a33365","7ef4fc8b5166fc742b557034c24ec46b","f5e26d78b1b772156b3e8949fc39a19d","422a57575128dae8eae1d40a703217a8","59568097a4f40b06e4f21a98859b4841","854d9a4169ebeaed2551075c541b546d","5483bbafa634b2a706cedfa0440048cc","62cfe75057cf220573f90957a2550df4","5723933c75577a983fe43efcd4181695","94af0dd094db9ff76195403339d8562b","35b742c7a57429ed631d2cd751246205","04f42cad4de1869e924b73908bb664c5","11a2f83a6ed65542d1ebe4e354a019c3","4334ffe12a87378bf8ca159ececbfd5c","c32867a5672eabcaf128cd9eb633ed1b","9c553e4a122bdb21b9441e11a75881a5","5e91f24aa7d5084ee8efdf984517d99c",{"version":"795abdb2359a1bc43c8bbaeaf817e5a7","signature":"99cbbf78bf691f1ea8e0cc5026219ebe","impliedNodeFormat":1},{"version":"8a32a1da08f6f18d4ed4cf6c0d476fc6","signature":"7d6e428c4ce3a5fa7d2271e504502c6d","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":[[117],[116],[115],[147,148],[120,126,144,145,146,149],[156],[156,157],[124,126,127],[124,126],[124],[119,124,135,136],[119,124,135],[143],[119,125],[119],[121],[119,120,121,122,123],[162,163],[162,163,164,165],[162,164],[162],[130],[130,131,132,133],[132],[128,151,152,154],[128,129,141,154],[119,126,128,129,137,154],[134],[119,128,129,137,150,153],[128,129,134,137,154],[128,151,152,153,154],[128,134,138,139,140,154],[119,124,126,128,129,134,137,138,139,140,141,142,144,150,151,152,153,154,155,158,159,160,161,166],[119,126,128,129,137,138,151,152,153,154,159],[167],[100,101,102,103,104,105,106,107],[73,97,99],[73,97,101],[73,97],[100,101,104,105,106],[73],[78],[73,77],[64],[64,65,66,67,68,69,70,71,72],[74],[80,81,82,83],[80],[113],[73,77,79,84,86,110,112],[98],[85],[87],[87,88,89,90,91,92,93,94,95,96],[109],[73,108],[111],[76],[73,75]],"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":[[118,1],[117,2],[116,3],[149,4],[150,5],[157,6],[158,7],[128,8],[127,9],[151,8],[135,10],[137,11],[136,12],[144,13],[126,14],[120,15],[122,16],[124,17],[125,15],[164,18],[166,19],[165,20],[163,21],[131,22],[134,23],[132,22],[133,24],[153,25],[142,26],[138,27],[139,10],[160,28],[154,29],[140,30],[159,31],[141,32],[167,33],[161,34],[168,35],[108,36],[100,37],[102,38],[101,39],[107,40],[106,41],[79,42],[78,43],[65,44],[66,44],[73,45],[67,44],[68,44],[69,44],[70,44],[71,44],[72,44],[75,46],[74,41],[84,47],[81,48],[83,48],[114,49],[113,50],[99,51],[98,39],[86,52],[88,53],[97,54],[89,53],[91,53],[92,53],[93,53],[96,53],[94,53],[95,53],[87,41],[110,55],[109,56],[112,57],[77,58],[76,59]],"latestChangedDtsFile":"./contract.image-types.d.ts"}
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[114,125]],"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","../../bitmap/package.json","../../entity/package.json","../../geometry/package.json","../../image-codec/package.json","../package.json","../../menu/package.json","../../resource/package.json","../../signals/package.json","../../surface/package.json","../../texture-formats/package.json","../../texture/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","../../geometry/dist/types.d.ts","../../geometry/dist/contract.geometry-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","../../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","../../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","../../surface/dist/types.d.ts","../../surface/dist/contract.surface-types.d.ts","../../texture-formats/dist/types.d.ts","../../texture-formats/dist/contract.texture-formats-types.d.ts","./types.d.ts","../src/imageSourceDimensions.ts","../src/imageResource.ts","../src/imageResourceFrom.ts","../src/imageResourceReference.ts","../src/imageTestHelper.ts","../src/contract.ts","../src/imageResource.test.ts","../src/imageResourceFrom.test.ts","../src/imageResourceReference.test.ts","../src/imageSourceDimensions.test.ts","../src/imageTestHelper.test.ts","../src/index.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","6f54f49ea7e96bdd7a9078f6c94e88fd","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","9ff787c1324b2d4c07a342936293f47a","80b0c9bbf376ed1b113072527632e26e","a4ee1cdad7cd96b44a7089562cef2d6f","455524b2b2414758ec49dc02316eef40","9fec423b81bb7413d87b0c3d00a46b27","3db83131956e2536c673bf65979ae566","29edd5065e81ccf164a64f056564acc3","96fa95e75c62b00ef4fe3e834d63ce71","1bfc291d6d9d36c2dc89872c16ea9f11","57d276c0d9a4c9e00c33e5ee6731a487","2fc9e840a6c510223bd894a3089da3c2","1018e93cd2d51489a03f11c947f1e32f","ed201fae78f95b520457750fd5197905","7b3471dfd17f2e9b6d502674c32a7180","921f8c08344aa1539405420fcf952a20","21a1b4607cb18ab00b1254cb35a77c57","d80705d2e260aba56aa54c416f471fbd","a821537667385a2906566c8bc69a21ed","387cee0627331c24f641f87fc905bff1","859418c3a3f1b2e9500476d829fc6093","32e33ec68ba1aa1147aab680de3b7c90","67c59d76f923f64e85a373fb5a2bbb13","5676a2feb7e6b36f973571c4a4500566","dd2bc19aa76d59fe40aa6c6fb9a33365","7ef4fc8b5166fc742b557034c24ec46b","f5e26d78b1b772156b3e8949fc39a19d","422a57575128dae8eae1d40a703217a8","59568097a4f40b06e4f21a98859b4841","854d9a4169ebeaed2551075c541b546d","5483bbafa634b2a706cedfa0440048cc","62cfe75057cf220573f90957a2550df4","5723933c75577a983fe43efcd4181695","94af0dd094db9ff76195403339d8562b","35b742c7a57429ed631d2cd751246205","04f42cad4de1869e924b73908bb664c5","11a2f83a6ed65542d1ebe4e354a019c3","4334ffe12a87378bf8ca159ececbfd5c","c32867a5672eabcaf128cd9eb633ed1b","9c553e4a122bdb21b9441e11a75881a5","5e91f24aa7d5084ee8efdf984517d99c","c6d223df2c5c7a7af0c54bcf5d80249c",{"version":"092236378fce13ab48b128989e84bc7a","signature":"2bd4de179030b783485d6e69448518c6","impliedNodeFormat":1},{"version":"60255876354035cef7f48c7fe65098d0","signature":"82539086506073e4e4a4336c0cd80373","impliedNodeFormat":1},{"version":"e5856b7eabb9099017cb8855de32a9ad","signature":"21309a7b7afd50be10bd0de1a72d3afb","impliedNodeFormat":1},{"version":"8d48d4378308203fe8d09a3a3c15fc18","signature":"0cdaa73cc76ea67a9a194e3797542f20","impliedNodeFormat":1},{"version":"6c6cd45908a0247136cd74598a78ccc5","signature":"0a4c737635b397663a6e82eb06ec543c","impliedNodeFormat":1},"d152b2f50e7bafd780619f0cd84ca5f5",{"version":"79774dc1c7940b79532b938faf73b49d","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"59fa279384fa969129076bc3e4fc7946","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"5aa739623f35f19611dd325c5f32bed5","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"282858828fcec137d551b0f1dd4a7e4b","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"f58fec0a7161c16f564036f71da14514","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"0a06aa8712948804a07f7d8189324ac1","signature":"d3a2fecacfc235167b66b09ff85dfd62","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":[[128],[127],[126],[158,159],[131,137,155,156,157,160],[167],[167,168],[135,137,138],[135,137],[135],[130,135,146,147],[130,135,146],[154],[130,136],[130],[132],[130,131,132,133,134],[173,174],[173,174,175,176],[173,175],[173],[141],[141,142,143,144],[143],[139,162,163,165],[139,140,152,165],[130,137,139,140,148,165],[145],[130,139,140,148,161,164],[139,140,145,148,165],[139,162,163,164,165],[139,145,149,150,151,165],[130,135,137,139,140,145,148,149,150,151,152,153,155,161,162,163,164,165,166,169,170,171,172,177],[130,137,139,140,148,149,162,163,164,165,170],[178],[100,101,102,103,104,105,106,107],[73,97,99],[73,97,101],[73,97],[100,101,104,105,106],[73],[78],[73,77],[64],[64,65,66,67,68,69,70,71,72],[74],[80,81,82,83],[80],[73,77,79,84,86,110,112],[113,114,115,116,117,118],[77,113,115,118],[73,77,113,114],[73,77,79,113,115,116,118],[79,84,113],[73,77,79,84,86,113,117],[73,77,79,84,86,113],[114],[113],[114,118],[113,114],[113,115,116,117],[98],[85],[87],[87,88,89,90,91,92,93,94,95,96],[109],[73,108],[111],[76],[73,75]],"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":[[129,1],[128,2],[127,3],[160,4],[161,5],[168,6],[169,7],[139,8],[138,9],[162,8],[146,10],[148,11],[147,12],[155,13],[137,14],[131,15],[133,16],[135,17],[136,15],[175,18],[177,19],[176,20],[174,21],[142,22],[145,23],[143,22],[144,24],[164,25],[153,26],[149,27],[150,10],[171,28],[165,29],[151,30],[170,31],[152,32],[178,33],[172,34],[179,35],[108,36],[100,37],[102,38],[101,39],[107,40],[106,41],[79,42],[78,43],[65,44],[66,44],[73,45],[67,44],[68,44],[69,44],[70,44],[71,44],[72,44],[75,46],[74,41],[84,47],[81,48],[83,48],[113,49],[119,50],[120,51],[115,52],[121,53],[116,54],[122,55],[117,56],[123,57],[114,58],[124,59],[118,60],[125,61],[99,62],[98,39],[86,63],[88,64],[97,65],[89,64],[91,64],[92,64],[93,64],[96,64],[94,64],[95,64],[87,41],[110,66],[109,67],[112,68],[77,69],[76,70]],"latestChangedDtsFile":"./index.d.ts"}
@@ -1,7 +1,7 @@
1
- export * from './imageResource';
2
- export * from './imageResourceFrom';
3
- export * from './imageResourceReference';
4
- export { initializeCompressedImageResource } from './imageResource';
5
- export { initializeEmbeddedImageResourceReference, initializeExternalImageResourceReference, } from './imageResourceReference';
6
- export { initializeImageResourceFromCanvas, initializeImageResourceFromImageBitmap, initializeImageResourceFromImageElement, } from './imageResourceFrom';
1
+ export * from './imageResource.ts';
2
+ export * from './imageResourceFrom.ts';
3
+ export * from './imageResourceReference.ts';
4
+ export * from './imageSourceDimensions.ts';
5
+ export * from './imageTestHelper.ts';
6
+ export * from './types.ts';
7
7
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EACL,wCAAwC,EACxC,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iCAAiC,EACjC,sCAAsC,EACtC,uCAAuC,GACxC,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './types.ts';
2
+ //# sourceMappingURL=contract.image-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.image-types.d.ts","sourceRoot":"","sources":["../src/contract.image-types.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Acyclic build entry selected by contract-only projects through the `.image-types` module suffix: the
2
+ // image-owned contracts. The published @flighthq/image/contract entry remains contract.ts, which adds the
3
+ // runtime barrel.
4
+ export * from './types.js';
5
+ //# sourceMappingURL=contract.image-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.image-types.js","sourceRoot":"","sources":["../src/contract.image-types.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,0GAA0G;AAC1G,kBAAkB;AAClB,cAAc,YAAY,CAAC"}
package/dist/contract.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from './imageResource';
2
- export * from './imageResourceFrom';
3
- export * from './imageResourceReference';
4
- export { initializeCompressedImageResource } from './imageResource';
5
- export { initializeEmbeddedImageResourceReference, initializeExternalImageResourceReference, } from './imageResourceReference';
6
- export { initializeImageResourceFromCanvas, initializeImageResourceFromImageBitmap, initializeImageResourceFromImageElement, } from './imageResourceFrom';
1
+ export * from './imageResource.js';
2
+ export * from './imageResourceFrom.js';
3
+ export * from './imageResourceReference.js';
4
+ export * from './imageSourceDimensions.js';
5
+ export * from './imageTestHelper.js';
6
+ export * from './types.js';
7
7
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EACL,wCAAwC,EACxC,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iCAAiC,EACjC,sCAAsC,EACtC,uCAAuC,GACxC,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC"}
@@ -1,4 +1,6 @@
1
- import type { CompressedImageData, CompressedImageResource, EntityConstruction, ImageResource } from '@flighthq/types/contract';
1
+ import type { EntityConstruction } from '@flighthq/entity/contract';
2
+ import type { CompressedImageData, CompressedImageResource } from './types.ts';
3
+ import type { ImageResource } from './types.ts';
2
4
  export declare function cloneImageResource(resource: Readonly<ImageResource>): ImageResource;
3
5
  export declare function createCompressedImageResource(compressed: Readonly<CompressedImageData>): CompressedImageResource;
4
6
  export declare function createImageResource(image: CanvasImageSource): ImageResource;
@@ -1 +1 @@
1
- {"version":3,"file":"imageResource.d.ts","sourceRoot":"","sources":["../src/imageResource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACd,MAAM,0BAA0B,CAAC;AAKlC,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,aAAa,CAUnF;AAED,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,uBAAuB,CAIhH;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,aAAa,CAW3E;AAID,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,EAChD,UAAU,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GACxC,IAAI,CAQN;AAGD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAGrE;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,OAAO,CAE/E"}
1
+ {"version":3,"file":"imageResource.d.ts","sourceRoot":"","sources":["../src/imageResource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKhD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,aAAa,CAUnF;AAED,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,uBAAuB,CAIhH;AAKD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,aAAa,CAW3E;AAID,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,EAChD,UAAU,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GACxC,IAAI,CAQN;AAGD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAGrE;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,OAAO,CAE/E"}
@@ -1,5 +1,6 @@
1
- import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
2
- import { CompressedImageTextureSourceKind, ImageTextureSourceKind } from '@flighthq/types/contract';
1
+ import { allocateEntity } from '@flighthq/entity/contract';
2
+ import { CompressedImageTextureSourceKind, ImageTextureSourceKind } from '@flighthq/texture/contract';
3
+ import { getHostImageSourceDimensions } from './imageSourceDimensions.js';
3
4
  // Allocates a new resource identity over the same borrowed host image. The host handle is shared by
4
5
  // reference; the clone owns an independent version counter for renderer cache invalidation.
5
6
  export function cloneImageResource(resource) {
@@ -11,13 +12,16 @@ export function cloneImageResource(resource) {
11
12
  out.source = resource.source;
12
13
  out.version = resource.version;
13
14
  out.width = resource.width;
14
- return finishEntity(out);
15
+ return out;
15
16
  }
16
17
  export function createCompressedImageResource(compressed) {
17
18
  const out = allocateEntity();
18
19
  initializeCompressedImageResource(out, compressed);
19
- return finishEntity(out);
20
+ return out;
20
21
  }
22
+ // Wraps a borrowed host handle whose size is read through the registered host dimension resolver. A
23
+ // caller that already holds the size — a host factory building from its own canvas or decoded bitmap —
24
+ // sets width and height directly instead and needs no resolver.
21
25
  export function createImageResource(image) {
22
26
  const resource = allocateEntity();
23
27
  resource.alphaType = DECODED_ALPHA_TYPE;
@@ -49,21 +53,19 @@ export function invalidateImageResource(resource) {
49
53
  export function isImageResourceEmpty(resource) {
50
54
  return resource.width <= 0 || resource.height <= 0;
51
55
  }
52
- // Reads pixel dimensions from the current host element. Video sources carry their size on
53
- // videoWidth/videoHeight; every other CanvasImageSource exposes width/height directly.
56
+ // Re-reads pixel dimensions from the borrowed handle through the host resolver. With no resolver
57
+ // registered the resource keeps the dimensions it already carries, which is what a host factory that
58
+ // measured its own source at construction wants.
54
59
  function updateImageResourceSize(resource) {
55
- const element = resource.source;
56
- if (element === null)
60
+ const source = resource.source;
61
+ if (source === null)
57
62
  return;
58
- if (element instanceof HTMLVideoElement) {
59
- resource.width = element.videoWidth;
60
- resource.height = element.videoHeight;
61
- }
62
- else {
63
- const sized = element;
64
- resource.width = sized.width;
65
- resource.height = sized.height;
66
- }
63
+ _measured.height = resource.height;
64
+ _measured.width = resource.width;
65
+ if (!getHostImageSourceDimensions(source, _measured))
66
+ return;
67
+ resource.height = _measured.height;
68
+ resource.width = _measured.width;
67
69
  }
68
70
  // What a HOST decode yields, and the only honest default for a source whose pixels we never touch.
69
71
  // Every browser image/canvas/ImageBitmap decode is straight-alpha sRGB, so declaring it is a statement
@@ -72,4 +74,6 @@ function updateImageResourceSize(resource) {
72
74
  // `alphaType !== 'premultiplied'` guard starts protecting ImageResource the way it already protects Bitmap.
73
75
  const DECODED_ALPHA_TYPE = 'straight';
74
76
  const DECODED_GAMUT = 'srgb';
77
+ // Scratch pair reused by the size re-read; measuring a resource never allocates.
78
+ const _measured = { height: 0, width: 0 };
75
79
  //# sourceMappingURL=imageResource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageResource.js","sourceRoot":"","sources":["../src/imageResource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,EAAE,gCAAgC,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEpG,oGAAoG;AACpG,4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AACjD,SAAS,uBAAuB,CAAC,QAAuB;IACtD,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC/B,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO;IAC5B,SAAS,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IACnC,SAAS,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IACjC,IAAI,CAAC,4BAA4B,CAAC,MAAM,EAAE,SAAS,CAAC;QAAE,OAAO;IAC7D,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;AACnC,CAAC;AAED,mGAAmG;AACnG,uGAAuG;AACvG,oGAAoG;AACpG,sGAAsG;AACtG,4GAA4G;AAC5G,MAAM,kBAAkB,GAAG,UAAU,CAAC;AACtC,MAAM,aAAa,GAAG,MAAM,CAAC;AAE7B,iFAAiF;AACjF,MAAM,SAAS,GAAwB,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC"}
@@ -1,14 +1,9 @@
1
- import type { Bitmap, EntityConstruction, HasGraphicsImage, ImageResource } from '@flighthq/types/contract';
2
- export declare function createImageResourceFromBitmap(host: Readonly<HasGraphicsImage>, bitmap: Readonly<Bitmap>): ImageResource | null;
3
- export declare function createImageResourceFromCanvas(canvas: HTMLCanvasElement): ImageResource;
4
- export declare function createImageResourceFromImageBitmap(bitmap: ImageBitmap): ImageResource;
5
- export declare function createImageResourceFromImageElement(img: HTMLImageElement): ImageResource;
6
- export declare function initializeImageResourceFromCanvas(out: EntityConstruction<ImageResource>, canvas: HTMLCanvasElement): void;
7
- export declare function initializeImageResourceFromImageBitmap(out: EntityConstruction<ImageResource>, bitmap: ImageBitmap): void;
8
- export declare function initializeImageResourceFromImageElement(out: EntityConstruction<ImageResource>, img: HTMLImageElement): void;
1
+ import type { Bitmap } from '@flighthq/bitmap/contract';
2
+ import type { HostImageCapability, ImageResource } from './types.ts';
3
+ export declare function createImageResourceFromBitmap(hostImage: Readonly<HostImageCapability>, bitmap: Readonly<Bitmap>): ImageResource | null;
9
4
  export declare function isImageUrlSameOrigin(url: string): boolean;
10
- export declare function loadImageResourceFromBase64(host: Readonly<HasGraphicsImage>, base64: string, mimeType: string, signal?: AbortSignal): Promise<ImageResource>;
11
- export declare function loadImageResourceFromBlob(host: Readonly<HasGraphicsImage>, blob: Blob, signal?: AbortSignal): Promise<ImageResource>;
12
- export declare function loadImageResourceFromBytes(host: Readonly<HasGraphicsImage>, bytes: Uint8Array, mimeType?: string, signal?: AbortSignal): Promise<ImageResource>;
13
- export declare function loadImageResourceFromUrl(host: Readonly<HasGraphicsImage>, url: string, crossOrigin?: 'anonymous' | 'use-credentials', signal?: AbortSignal): Promise<ImageResource>;
5
+ export declare function loadImageResourceFromBase64(hostImage: Readonly<HostImageCapability>, base64: string, mimeType: string, signal?: AbortSignal): Promise<ImageResource>;
6
+ export declare function loadImageResourceFromBlob(hostImage: Readonly<HostImageCapability>, blob: Blob, signal?: AbortSignal): Promise<ImageResource>;
7
+ export declare function loadImageResourceFromBytes(hostImage: Readonly<HostImageCapability>, bytes: Uint8Array, mimeType?: string, signal?: AbortSignal): Promise<ImageResource>;
8
+ export declare function loadImageResourceFromUrl(hostImage: Readonly<HostImageCapability>, url: string, crossOrigin?: 'anonymous' | 'use-credentials', signal?: AbortSignal): Promise<ImageResource>;
14
9
  //# sourceMappingURL=imageResourceFrom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageResourceFrom.d.ts","sourceRoot":"","sources":["../src/imageResourceFrom.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG5G,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAChC,MAAM,EAAE,QAAQ,CAAC,MA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,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,aAAa,CAAC,CAExB"}
@@ -1,54 +1,10 @@
1
- import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
2
1
  import { detectImageMimeType } from '@flighthq/image-codec/contract';
3
- import { ImageTextureSourceKind } from '@flighthq/types/contract';
4
- export function createImageResourceFromBitmap(host, bitmap) {
5
- const backend = host.graphics.image;
2
+ export function createImageResourceFromBitmap(hostImage, bitmap) {
3
+ const backend = hostImage;
6
4
  if (backend.createImageFromBitmap === undefined)
7
5
  return null;
8
6
  return backend.createImageFromBitmap(bitmap);
9
7
  }
10
- export function createImageResourceFromCanvas(canvas) {
11
- const out = allocateEntity();
12
- initializeImageResourceFromCanvas(out, canvas);
13
- return finishEntity(out);
14
- }
15
- export function createImageResourceFromImageBitmap(bitmap) {
16
- const out = allocateEntity();
17
- initializeImageResourceFromImageBitmap(out, bitmap);
18
- return finishEntity(out);
19
- }
20
- export function createImageResourceFromImageElement(img) {
21
- const out = allocateEntity();
22
- initializeImageResourceFromImageElement(out, img);
23
- return finishEntity(out);
24
- }
25
- export function initializeImageResourceFromCanvas(out, canvas) {
26
- out.alphaType = DECODED_ALPHA_TYPE;
27
- out.gamut = DECODED_GAMUT;
28
- out.height = canvas.height;
29
- out.kind = ImageTextureSourceKind;
30
- out.source = canvas;
31
- out.version = 0;
32
- out.width = canvas.width;
33
- }
34
- export function initializeImageResourceFromImageBitmap(out, bitmap) {
35
- out.alphaType = DECODED_ALPHA_TYPE;
36
- out.gamut = DECODED_GAMUT;
37
- out.height = bitmap.height;
38
- out.kind = ImageTextureSourceKind;
39
- out.source = bitmap;
40
- out.version = 0;
41
- out.width = bitmap.width;
42
- }
43
- export function initializeImageResourceFromImageElement(out, img) {
44
- out.alphaType = DECODED_ALPHA_TYPE;
45
- out.gamut = DECODED_GAMUT;
46
- out.height = img.height;
47
- out.kind = ImageTextureSourceKind;
48
- out.source = img;
49
- out.version = 0;
50
- out.width = img.width;
51
- }
52
8
  export function isImageUrlSameOrigin(url) {
53
9
  if (url.startsWith('data:') || url.startsWith('blob:'))
54
10
  return true;
@@ -59,29 +15,27 @@ export function isImageUrlSameOrigin(url) {
59
15
  return true;
60
16
  }
61
17
  }
62
- export async function loadImageResourceFromBase64(host, base64, mimeType, signal) {
63
- return loadImageResourceFromUrl(host, `data:${mimeType};base64,${base64}`, undefined, signal);
18
+ export async function loadImageResourceFromBase64(hostImage, base64, mimeType, signal) {
19
+ return loadImageResourceFromUrl(hostImage, `data:${mimeType};base64,${base64}`, undefined, signal);
64
20
  }
65
- export async function loadImageResourceFromBlob(host, blob, signal) {
21
+ export async function loadImageResourceFromBlob(hostImage, blob, signal) {
66
22
  const url = URL.createObjectURL(blob);
67
23
  try {
68
- return await loadImageResourceFromUrl(host, url, undefined, signal);
24
+ return await loadImageResourceFromUrl(hostImage, url, undefined, signal);
69
25
  }
70
26
  finally {
71
27
  URL.revokeObjectURL(url);
72
28
  }
73
29
  }
74
- export async function loadImageResourceFromBytes(host, bytes, mimeType, signal) {
30
+ export async function loadImageResourceFromBytes(hostImage, bytes, mimeType, signal) {
75
31
  const type = mimeType ?? detectImageMimeType(bytes);
76
32
  if (type === null) {
77
33
  throw new Error('Unable to determine image type from bytes');
78
34
  }
79
35
  const buf = bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength);
80
- return loadImageResourceFromBlob(host, new Blob([buf], { type }), signal);
36
+ return loadImageResourceFromBlob(hostImage, new Blob([buf], { type }), signal);
81
37
  }
82
- export async function loadImageResourceFromUrl(host, url, crossOrigin, signal) {
83
- return host.graphics.image.loadImageFromUrl(url, crossOrigin, signal);
38
+ export async function loadImageResourceFromUrl(hostImage, url, crossOrigin, signal) {
39
+ return hostImage.loadImageFromUrl(url, crossOrigin, signal);
84
40
  }
85
- const DECODED_ALPHA_TYPE = 'straight';
86
- const DECODED_GAMUT = 'srgb';
87
41
  //# sourceMappingURL=imageResourceFrom.js.map
@@ -1 +1 @@
1
- {"version":3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yBAAyB,CAC7C,SAAwC,EACxC,IAAU,EACV,MAAoB;IAEpB,MAAM,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC;QACH,OAAO,MAAM,wBAAwB,CAAC,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;YAAS,CAAC;QACT,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,SAAwC,EACxC,KAAiB,EACjB,QAAiB,EACjB,MAAoB;IAEpB,MAAM,IAAI,GAAG,QAAQ,IAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACpD,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,GAAG,GAAI,KAAK,CAAC,MAAsB,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IACvG,OAAO,yBAAyB,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,SAAwC,EACxC,GAAW,EACX,WAA6C,EAC7C,MAAoB;IAEpB,OAAO,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;AAC9D,CAAC"}
@@ -1,12 +1,14 @@
1
- import type { AlphaType, EmbeddedImageResourceReference, ExternalImageResourceReference, ImageResourceFailure, ImageResourceFetch, ImageResourceReference, ImageResourceReferenceResolutionExplanation, TextureSource, EntityConstruction } from '@flighthq/types/contract';
1
+ import type { EntityConstruction } from '@flighthq/entity/contract';
2
+ import type { HostImageDecodeCapabilities, ImageDecodeFallback } from '@flighthq/image-codec/contract';
3
+ import type { AlphaType, TextureSource } from '@flighthq/texture/contract';
4
+ import type { EmbeddedImageResourceReference, ExternalImageResourceReference, ImageResourceFailure, ImageResourceFetch, ImageResourceReference, ImageBitmapCompositionResolver, ImageResourceReferenceResolutionExplanation } from './types.ts';
2
5
  export declare function createEmbeddedImageResourceReference(bytes: Uint8Array, mimeType?: string | null, alphaType?: AlphaType): EmbeddedImageResourceReference;
3
6
  export declare function createExternalImageResourceReference(uri: string, basePath?: string | null): ExternalImageResourceReference;
4
7
  export declare function createImageResourceFailure(cause: unknown): ImageResourceFailure;
5
- export declare function disableImageBitmapComposition(): void;
6
- export declare function enableImageBitmapComposition(): void;
7
8
  export declare function explainImageResourceReferenceResolution(ref: Readonly<ImageResourceReference>): ImageResourceReferenceResolutionExplanation;
8
9
  export declare function initializeEmbeddedImageResourceReference(out: EntityConstruction<EmbeddedImageResourceReference>, bytes: Uint8Array, mimeType?: string | null, alphaType?: AlphaType): void;
9
10
  export declare function initializeExternalImageResourceReference(out: EntityConstruction<ExternalImageResourceReference>, uri: string, basePath?: string | null): void;
11
+ export declare function registerImageBitmapCompositionResolver(resolver: ImageBitmapCompositionResolver | null): void;
10
12
  export declare function resetFailedImageResourceReference(ref: ImageResourceReference): boolean;
11
- export declare function resolveImageResourceReference(ref: ImageResourceReference, fetch: ImageResourceFetch, signal: AbortSignal): Promise<TextureSource | null>;
13
+ export declare function resolveImageResourceReference(imageDecode: Readonly<HostImageDecodeCapabilities>, ref: ImageResourceReference, fetch: ImageResourceFetch, signal: AbortSignal, fallbackDecode?: ImageDecodeFallback): Promise<TextureSource | null>;
12
14
  //# sourceMappingURL=imageResourceReference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageResourceReference.d.ts","sourceRoot":"","sources":["../src/imageResourceReference.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,SAAS,EAET,8BAA8B,E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