@dcl/sdk 7.0.0-3128586452.commit-d0996da → 7.0.0-3152576867.commit-badeb3e

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 +1 @@
1
- {"content":[{"path":"cube-spawner-example.ts"},{"path":"material-test.ts"},{"path":"meshes-test-creation.ts"},{"path":"pointer-event-test.ts"},{"path":"raycast-hit-oscillator-example.ts"},{"path":"raycast-test-hit-many.ts"},{"path":"raycast-test-hit-one.ts"}]}
1
+ [{"name":"Cube Spawner","category":"sample","path":"cube-spawner.ts"},{"name":"Material","category":"component","path":"material.ts"},{"name":"Mesh","category":"component","path":"mesh.ts"},{"name":"Pointer Events","category":"sample","path":"pointer-events.ts"},{"name":"Raycast Hit","category":"component","path":"raycast-hit.ts"},{"name":"Raycast Hit many","category":"sample","path":"raycast-hit-many.ts"},{"name":"Raycast Hit Oscilator","category":"sample","path":"raycast-hit-oscilator.ts"},{"name":"Container","category":"ui","path":"ui.tsx"}]
@@ -0,0 +1,37 @@
1
+ import ReactEcs, {
2
+ renderUi,
3
+ UiEntity,
4
+ YGAlign,
5
+ YGDisplay,
6
+ YGJustify
7
+ } from '@dcl/react-ecs'
8
+
9
+ export const uiComponent = () => (
10
+ <UiEntity
11
+ uiTransform={{
12
+ width: 500,
13
+ height: 500,
14
+ padding: { top: 10, right: 10, bottom: 10, left: 10 }
15
+ }}
16
+ uiStyles={{ backgroundColor: { r: 10, g: 10, b: 10, a: 0.2 } }}
17
+ >
18
+ <UiEntity
19
+ uiTransform={{
20
+ width: 100,
21
+ height: 100,
22
+ display: YGDisplay.YGDisplayFlex,
23
+ justifyContent: YGJustify.YGJustifyCenter,
24
+ alignItems: YGAlign.YGAlignCenter
25
+ }}
26
+ uiStyles={{ backgroundColor: { r: 255, g: 45, b: 85, a: 0.2 } }}
27
+ >
28
+ <UiEntity
29
+ uiTransform={{ width: 80, height: 20 }}
30
+ uiText={{ value: 'Boedo', textAlign: 0, fontSize: 12 }}
31
+ uiStyles={{ backgroundColor: { r: 255, g: 45, b: 85, a: 1 } }}
32
+ />
33
+ </UiEntity>
34
+ </UiEntity>
35
+ )
36
+
37
+ renderUi(uiComponent)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-3128586452.commit-d0996da",
3
+ "version": "7.0.0-3152576867.commit-badeb3e",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "src/cli/**/*.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@dcl/amd": "6.11.9-3128586452.commit-d0996da",
31
- "@dcl/build-ecs": "6.11.9-3128586452.commit-d0996da",
30
+ "@dcl/amd": "6.11.9-3152576867.commit-badeb3e",
31
+ "@dcl/build-ecs": "6.11.9-3152576867.commit-badeb3e",
32
32
  "@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
33
33
  "@dcl/posix": "^1.0.4",
34
34
  "@dcl/schemas": "4.8.0",
@@ -38,5 +38,5 @@
38
38
  "ignore": "^5.1.8"
39
39
  },
40
40
  "minCliVersion": "3.10.2",
41
- "commit": "d0996da5dd223a044f1cb27e9ed6623379f08eb2"
41
+ "commit": "badeb3ebb3dac791e9c5ad12e682827d4cac93d7"
42
42
  }