@flighthq/surface 0.5.1-next.4304.322dc96 → 0.5.1-next.4328.05c3820
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.
- package/README.md +2 -2
- package/dist/canvasSurface.js +1 -1
- package/dist/contract.js +5 -5
- package/dist/glSurface.js +1 -1
- package/dist/index.js +4 -4
- package/dist/wgpuSurface.js +1 -1
- package/package.json +5 -5
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.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/surface@0.5.1-next.4328.05c3820](https://github.com/flighthq/flight/tree/05c3820b52a956705fde339318e349acb4b4c4e9/packages/surface)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/05c3820b52a956705fde339318e349acb4b4c4e9/LICENSE.md)
|
package/dist/canvasSurface.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { finishEntity } from '@flighthq/entity/contract';
|
|
2
|
-
import { allocateSurface } from
|
|
2
|
+
import { allocateSurface } from './surface.js';
|
|
3
3
|
// Allocates a drawable in the given window, sized in device pixels, and acquires a 2D context on it.
|
|
4
4
|
// Returns null when the host cannot rasterize 2D on it.
|
|
5
5
|
export function createCanvasSurface(capability, window, width, height, options) {
|
package/dist/contract.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './canvasSurface.js';
|
|
2
|
+
export * from './glSurface.js';
|
|
3
|
+
export * from './surface.js';
|
|
4
|
+
export * from './surfaceDisplay.js';
|
|
5
|
+
export * from './wgpuSurface.js';
|
|
6
6
|
//# sourceMappingURL=contract.js.map
|
package/dist/glSurface.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { finishEntity } from '@flighthq/entity/contract';
|
|
2
|
-
import { allocateSurface } from
|
|
2
|
+
import { allocateSurface } from './surface.js';
|
|
3
3
|
// Allocates a drawable in the given window, sized in device pixels, and acquires a GL context on it. The
|
|
4
4
|
// window is what the host needs to make a drawable at all — the document on web, the SDL_Window on SDL —
|
|
5
5
|
// and is not retained: a surface is not one-to-one with a window, and welding one on would assert that it
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createCanvasSurface, createCanvasSurfaceFromNativeHandle, destroyCanvasSurface } from
|
|
2
|
-
export { createGlSurface, createGlSurfaceFromNativeHandle, destroyGlSurface } from
|
|
3
|
-
export { createWgpuSurface, createWgpuSurfaceFromNativeHandle, destroyWgpuSurface } from
|
|
4
|
-
export { resizeSurface, setSurfaceDisplaySize } from
|
|
1
|
+
export { createCanvasSurface, createCanvasSurfaceFromNativeHandle, destroyCanvasSurface } from './contract.js';
|
|
2
|
+
export { createGlSurface, createGlSurfaceFromNativeHandle, destroyGlSurface } from './contract.js';
|
|
3
|
+
export { createWgpuSurface, createWgpuSurfaceFromNativeHandle, destroyWgpuSurface } from './contract.js';
|
|
4
|
+
export { resizeSurface, setSurfaceDisplaySize } from './contract.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/wgpuSurface.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { finishEntity } from '@flighthq/entity/contract';
|
|
2
|
-
import { allocateSurface } from
|
|
2
|
+
import { allocateSurface } from './surface.js';
|
|
3
3
|
// Allocates a drawable in the given window, sized in device pixels, and acquires a WebGPU device and
|
|
4
4
|
// presentation context for it. Returns null when the environment cannot provide WebGPU at all — no
|
|
5
5
|
// drawable, no adapter, no device — which is an expected outcome on a machine without it rather than API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/surface",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.4328.05c3820",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/app": "0.5.1-next.
|
|
42
|
-
"@flighthq/entity": "0.5.1-next.
|
|
43
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/app": "0.5.1-next.4328.05c3820",
|
|
42
|
+
"@flighthq/entity": "0.5.1-next.4328.05c3820",
|
|
43
|
+
"@flighthq/types": "0.5.1-next.4328.05c3820"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"typescript": "^
|
|
46
|
+
"typescript": "^7.0.2"
|
|
47
47
|
},
|
|
48
48
|
"description": "Surface allocation, ownership tracking, and lifecycle",
|
|
49
49
|
"sideEffects": false
|