@dreamcomposer/engine-types 0.0.28-next.3 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Layer.d.ts +2 -35
  2. package/package.json +1 -1
package/Layer.d.ts CHANGED
@@ -24,11 +24,9 @@ export interface Layer {
24
24
  /**
25
25
  * The texture of the layer, either a url or a blob.
26
26
  *
27
- * For non PNG images the file format must be specified:
28
- * - in the URL itself
29
- * - via a TextureUrl and TextureUrlCollection object
27
+ * Must be in the PNG format.
30
28
  */
31
- texture: string | TextureUrl | Blob | TextureBlob;
29
+ texture: string | Blob;
32
30
  /**
33
31
  * Whether or not the layer is overprinted with the texture.
34
32
  *
@@ -77,12 +75,6 @@ export interface PatternEmbossingConfiguration {
77
75
  * Size of the main texture in pixels
78
76
  */
79
77
  sizePx: [number, number];
80
-
81
- /**
82
- * PPI of the texture
83
- */
84
- ppi: number;
85
-
86
78
  /**
87
79
  * The offset of the embossing.
88
80
  */
@@ -93,31 +85,6 @@ export interface PatternEmbossingConfiguration {
93
85
  rotation?: number;
94
86
  }
95
87
 
96
- export interface TextureUrl {
97
- /**
98
- * The public url of the texture
99
- */
100
- url: string;
101
- /**
102
- * Define the file extension of the texture. (e.g. ".png", ".jpg", ".basis")
103
- *
104
- * This is only necessary, if the url does not contain the extension itself
105
- */
106
- fileExtension?: string;
107
- }
108
- export interface TextureBlob {
109
- /**
110
- * The texture itself as an Blob
111
- */
112
- blob: Blob;
113
- /**
114
- * Define the file extension of the texture (e.g. ".png", ".jpg", ".basis")
115
- *
116
- * This is only necessary, if the blob is not a common image file (.png, .jpg)
117
- */
118
- fileExtension?: string;
119
- }
120
-
121
88
  export type TextureOverride<T> = Record<
122
89
  string,
123
90
  Partial<T> | Record<string, Partial<T>>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamcomposer/engine-types",
3
- "version": "0.0.28-next.3",
3
+ "version": "0.0.28",
4
4
  "description": "The type definitions for messages from and to the engine",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,