@wonderlandengine/editor-api 1.2.0-dev.1 → 1.2.0-dev.2

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/dist/data.d.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  export type ObjectReference = string | null;
3
3
  /** Mesh reference */
4
4
  export type MeshReference = string | null;
5
+ /** Morph targets reference */
6
+ export type MorphTargetsReference = string | null;
5
7
  /** Texture reference */
6
8
  export type TextureReference = string | null;
7
9
  /** Shader reference */
@@ -33,14 +35,28 @@ export declare class SkySettings {
33
35
  /** Bloom settings */
34
36
  export declare class BloomSettings {
35
37
  enabled: boolean;
36
- kernelSize: number;
37
38
  passes: number;
38
39
  threshold: number;
39
40
  intensity: number;
41
+ width: number;
42
+ }
43
+ /** Tonemapping mode enum */
44
+ export declare enum TonemappingMode {
45
+ /** No tonemapping */
46
+ None = "none",
47
+ /** Tonemapping with a polynomial fit of the ACES transform */
48
+ ACES = "aces",
49
+ /** Tonemapping with a simpler fit of the ACES transform */
50
+ ACESApproximated = "aces approximated",
51
+ /** Tonemapping with the global Reinhard operator */
52
+ Reinhard = "reinhard",
53
+ /** Tonemapping with an exponential curve */
54
+ Exponential = "exponential"
40
55
  }
41
56
  /** HDR settings */
42
57
  export declare class HdrSettings {
43
58
  exposure: number;
59
+ tonemapping: TonemappingMode;
44
60
  }
45
61
  /** Texture streaming settings */
46
62
  export declare class TextureStreamingSettings {
@@ -436,6 +452,7 @@ export declare class MeshComponent {
436
452
  material: MaterialReference;
437
453
  mesh: MeshReference;
438
454
  skin: SkinReference;
455
+ morphTargets: MorphTargetsReference;
439
456
  }
440
457
  /** Text effect type enum */
441
458
  export declare enum TextEffectType {
@@ -445,7 +462,7 @@ export declare enum TextEffectType {
445
462
  /** 'text' component configuration */
446
463
  export declare class TextComponent {
447
464
  alignment: string;
448
- justification: string;
465
+ verticalAlignment: string;
449
466
  characterSpacing: number;
450
467
  lineSpacing: number;
451
468
  effect: TextEffectType;
package/dist/data.js CHANGED
@@ -13,14 +13,29 @@ export class SkySettings {
13
13
  /** Bloom settings */
14
14
  export class BloomSettings {
15
15
  enabled = false;
16
- kernelSize = 6;
17
- passes = 1;
16
+ passes = 3;
18
17
  threshold = 1.25;
19
18
  intensity = 2.0;
20
- }
19
+ width = 0.5;
20
+ }
21
+ /** Tonemapping mode enum */
22
+ export var TonemappingMode;
23
+ (function (TonemappingMode) {
24
+ /** No tonemapping */
25
+ TonemappingMode["None"] = "none";
26
+ /** Tonemapping with a polynomial fit of the ACES transform */
27
+ TonemappingMode["ACES"] = "aces";
28
+ /** Tonemapping with a simpler fit of the ACES transform */
29
+ TonemappingMode["ACESApproximated"] = "aces approximated";
30
+ /** Tonemapping with the global Reinhard operator */
31
+ TonemappingMode["Reinhard"] = "reinhard";
32
+ /** Tonemapping with an exponential curve */
33
+ TonemappingMode["Exponential"] = "exponential";
34
+ })(TonemappingMode || (TonemappingMode = {}));
21
35
  /** HDR settings */
22
36
  export class HdrSettings {
23
- exposure = 1.5;
37
+ exposure = 1.0;
38
+ tonemapping = TonemappingMode.Reinhard;
24
39
  }
25
40
  /** Texture streaming settings */
26
41
  export class TextureStreamingSettings {
@@ -433,6 +448,7 @@ export class MeshComponent {
433
448
  material = null;
434
449
  mesh = null;
435
450
  skin = null;
451
+ morphTargets = null;
436
452
  }
437
453
  /** Text effect type enum */
438
454
  export var TextEffectType;
@@ -443,7 +459,7 @@ export var TextEffectType;
443
459
  /** 'text' component configuration */
444
460
  export class TextComponent {
445
461
  alignment = 'center';
446
- justification = 'middle';
462
+ verticalAlignment = 'middle';
447
463
  characterSpacing = 0.0;
448
464
  lineSpacing = 1.2;
449
465
  effect = TextEffectType.None;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderlandengine/editor-api",
3
- "version": "1.2.0-dev.1",
3
+ "version": "1.2.0-dev.2",
4
4
  "description": "Wonderland Engine's Editor API for plugins - very experimental.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -24,23 +24,25 @@
24
24
  "url": "https://discord.wonderlandengine.com/"
25
25
  },
26
26
  "homepage": "https://wonderlandengine.com/editor/plugins/",
27
+ "prettier": "@wonderlandengine/prettier-config",
27
28
  "scripts": {
28
29
  "build": "tsc",
29
30
  "build:watch": "tsc --watch",
30
31
  "defaults": "npm run build && npm run doc && node scripts/generate-defaults.mjs ./doc.json",
31
- "pretty": "prettier --config ./prettierrc.json --write ./src",
32
+ "pretty": "prettier --write ./src",
33
+ "pretty:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
32
34
  "doc": "typedoc --entryPoints ./src/index.ts --tsconfig tsconfig.json --json ./doc.json",
33
- "json-diff": "npm run defaults && npx json-diff ../../src/WonderlandEditor/defaults.json defaults.json",
35
+ "json-diff": "npm run defaults && npx json-diff ../../src/WonderlandEditor/Test/defaults.json defaults.json",
34
36
  "prepack": "npm run build"
35
37
  },
36
- "peerDependencies": {},
37
38
  "devDependencies": {
38
39
  "@types/node": "^18.11.9",
40
+ "@wonderlandengine/prettier-config": "^1.0.0",
39
41
  "prettier": "^2.8.0",
40
42
  "typedoc": "^0.23.21",
41
43
  "typescript": "^4.9.3"
42
44
  },
43
45
  "files": [
44
- "dist"
46
+ "dist"
45
47
  ]
46
48
  }