@mateuszjs/magic-render 0.1.0-next.2 → 0.1.0-next.3

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.
@@ -1,5 +1,4 @@
1
1
  export default class PickManager {
2
- private device;
3
2
  private pickBuffer;
4
3
  private pickTexture;
5
4
  private pickDepthTexture;
@@ -1 +1 @@
1
- {"version":3,"file":"pick.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/pick.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,OAAO,WAAW;IAQ5B,OAAO,CAAC,MAAM;IANhB,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,WAAW,CAAY;IAC/B,OAAO,CAAC,gBAAgB,CAAY;IACpC,OAAO,CAAC,kBAAkB,CAAO;gBAGvB,MAAM,EAAE,SAAS;IAmB3B;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG;QAAE,IAAI,EAAE,oBAAoB,CAAC;QAAC,GAAG,EAAE,YAAY,CAAA;KAAE;IA+C3F,YAAY,CAAC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY;IAkB5D,SAAS;CAShB"}
1
+ {"version":3,"file":"pick.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/pick.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,WAAW,CAAY;IAC/B,OAAO,CAAC,gBAAgB,CAAY;IACpC,OAAO,CAAC,kBAAkB,CAAO;gBAErB,MAAM,EAAE,SAAS;IAmB7B;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG;QAAE,IAAI,EAAE,oBAAoB,CAAC;QAAC,GAAG,EAAE,YAAY,CAAA;KAAE;IAkD3F,YAAY,CAAC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY;IAkB5D,SAAS;CAchB"}
@@ -1,8 +1,8 @@
1
- export type SerializedAsset = Omit<Texture, 'texture_id'> & {
1
+ export type SerializedAsset = Omit<AssetZig, 'texture_id'> & {
2
2
  url: string;
3
3
  };
4
4
  export interface CreatorAPI {
5
- addImage: (id: number, img: HTMLImageElement, points?: PointUV[]) => void;
5
+ addImage: (img: HTMLImageElement, points?: PointUV[]) => void;
6
6
  destroy: VoidFunction;
7
7
  }
8
8
  export interface TextureSource {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAcA,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG;IAC1D,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;IACzE,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,wBAA8B,WAAW,CACvC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,eAAe,EAAE,EACzB,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,GAClD,OAAO,CAAC,UAAU,CAAC,CAqErB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAcA,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG;IAC3D,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;IAC7D,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,wBAA8B,WAAW,CACvC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,eAAe,EAAE,EACzB,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,GAClD,OAAO,CAAC,UAAU,CAAC,CAmErB"}
@@ -1,5 +1,5 @@
1
1
  import { TextureSource } from '.';
2
2
  export declare const transformMatrix: Float32Array<ArrayBuffer>;
3
3
  export declare const MAP_BACKGROUND_SCALE = 1000;
4
- export default function runCreator(canvas: HTMLCanvasElement, context: GPUCanvasContext, device: GPUDevice, presentationFormat: GPUTextureFormat, textures: TextureSource[]): void;
4
+ export default function runCreator(canvas: HTMLCanvasElement, context: GPUCanvasContext, device: GPUDevice, presentationFormat: GPUTextureFormat, textures: TextureSource[]): VoidFunction;
5
5
  //# sourceMappingURL=run.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAEjC,eAAO,MAAM,eAAe,2BAAqB,CAAA;AACjD,eAAO,MAAM,oBAAoB,OAAO,CAAA;AAExC,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,QAAQ,EAAE,aAAa,EAAE,QAyC1B"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAEjC,eAAO,MAAM,eAAe,2BAAqB,CAAA;AACjD,eAAO,MAAM,oBAAoB,OAAO,CAAA;AAExC,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,QAAQ,EAAE,aAAa,EAAE,GACxB,YAAY,CA8Cd"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mateuszjs/magic-render",
3
3
  "description": "Initial version of visual editor",
4
- "version": "0.1.0-next.2",
4
+ "version": "0.1.0-next.3",
5
5
  "author": "Mateusz Walendzik",
6
6
  "engines": {
7
7
  "node": ">=20.8.1"
@@ -51,7 +51,7 @@
51
51
  "webpack-dev-server": "^5.2.0",
52
52
  "zigar-loader": "^0.14.0"
53
53
  },
54
- "types": "./lib/types/src/index.d.ts",
54
+ "types": "./lib/types/index.d.ts",
55
55
  "main": "./lib/index.mjs",
56
56
  "type": "module",
57
57
  "repository": {