@iwsdk/create 1.1.0-rc.1 → 1.1.0-rc.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/cli.js +8 -13
- package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/SKILL.md +16 -2
- package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
- package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/references/scene-format.md +6 -0
- package/dist/guidance/agents/.agents/skills/iwsdk-dev/references/api-reference.md +56 -33
- package/dist/guidance/agents/.agents/skills/iwsdk-dev/references/iterate.md +24 -5
- package/dist/guidance/agents/.agents/skills/iwsdk-glasses-test/SKILL.md +281 -0
- package/dist/guidance/agents/.agents/skills/iwsdk-grab/SKILL.md +24 -1
- package/dist/guidance/agents/.agents/skills/iwsdk-ray/SKILL.md +3 -1
- package/dist/guidance/agents/.agents/skills/iwsdk-ui/SKILL.md +25 -2
- package/dist/guidance/claude/.claude/agents/iwsdk-project-code-reviewer.md +73 -6
- package/dist/guidance/claude/.claude/rules/assets-and-manifest.md +2 -0
- package/dist/guidance/claude/.claude/rules/ecs-api.md +1 -1
- package/dist/guidance/claude/.claude/rules/scene-json.md +3 -1
- package/dist/guidance/claude/.claude/rules/uikitml.md +5 -0
- package/dist/guidance/claude/.claude/settings.json +1 -0
- package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/SKILL.md +16 -2
- package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
- package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/references/scene-format.md +6 -0
- package/dist/guidance/claude/.claude/skills/iwsdk-dev/references/api-reference.md +56 -33
- package/dist/guidance/claude/.claude/skills/iwsdk-dev/references/iterate.md +24 -5
- package/dist/guidance/claude/.claude/skills/iwsdk-glasses-test/SKILL.md +281 -0
- package/dist/guidance/claude/.claude/skills/iwsdk-grab/SKILL.md +24 -1
- package/dist/guidance/claude/.claude/skills/iwsdk-ray/SKILL.md +3 -1
- package/dist/guidance/claude/.claude/skills/iwsdk-ui/SKILL.md +25 -2
- package/dist/guidance/common/AGENTS.md +25 -12
- package/dist/guidance/copilot/.github/instructions/assets-and-manifest.instructions.md +2 -0
- package/dist/guidance/copilot/.github/instructions/ecs-api.instructions.md +1 -1
- package/dist/guidance/copilot/.github/instructions/scene-json.instructions.md +3 -1
- package/dist/guidance/copilot/.github/instructions/uikitml.instructions.md +5 -0
- package/dist/guidance/cursor/.cursor/rules/assets-and-manifest.mdc +2 -0
- package/dist/guidance/cursor/.cursor/rules/ecs-api.mdc +1 -1
- package/dist/guidance/cursor/.cursor/rules/scene-json.mdc +3 -1
- package/dist/guidance/cursor/.cursor/rules/uikitml.mdc +5 -0
- package/dist/guidance/scoped-agents/public/scenes/AGENTS.md +3 -1
- package/dist/guidance/scoped-agents/public/ui/AGENTS.md +5 -0
- package/dist/guidance/scoped-agents/src/AGENTS.md +3 -1
- package/dist/template/common/README.md +19 -0
- package/dist/template/common/public/ui/label-grab.uikitml +57 -0
- package/dist/template/common/public/ui/label-select.uikitml +57 -0
- package/dist/template/common/public/ui/label-spin.uikitml +57 -0
- package/dist/template/common/public/ui/welcome.uikitml +33 -32
- package/dist/template/common/src/assets.ts +32 -23
- package/dist/template/common/src/scene-assets/decor.scene-asset.ts +781 -0
- package/dist/template/common/src/scene-assets/studio.scene-asset.ts +298 -0
- package/dist/template/common-js/README.md +19 -0
- package/dist/template/common-js/public/ui/label-grab.uikitml +57 -0
- package/dist/template/common-js/public/ui/label-select.uikitml +57 -0
- package/dist/template/common-js/public/ui/label-spin.uikitml +57 -0
- package/dist/template/common-js/public/ui/welcome.uikitml +33 -32
- package/dist/template/common-js/src/assets.js +20 -23
- package/dist/template/common-js/src/scene-assets/decor.scene-asset.js +554 -0
- package/dist/template/common-js/src/scene-assets/studio.scene-asset.js +236 -0
- package/dist/template/scenes/ar.iwsdk.scene.json +354 -58
- package/dist/template/scenes/immersive.iwsdk.scene.json +435 -54
- package/package.json +4 -4
- package/dist/template/common/public/gltf/webxr-banner/banner.gltf +0 -68
- package/dist/template/common/public/textures/webxr.png +0 -0
- package/dist/template/common-js/public/gltf/webxr-banner/banner.gltf +0 -68
- package/dist/template/common-js/public/textures/webxr.png +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Station label. Plain divs keep these colors in both color schemes.
|
|
3
|
+
-->
|
|
4
|
+
<style>
|
|
5
|
+
.label {
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 18px;
|
|
9
|
+
padding-top: 14px;
|
|
10
|
+
padding-bottom: 14px;
|
|
11
|
+
padding-left: 16px;
|
|
12
|
+
padding-right: 30px;
|
|
13
|
+
border-radius: 26px;
|
|
14
|
+
border-width: 1px;
|
|
15
|
+
border-color: #3a3b40;
|
|
16
|
+
background-color: #232427;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.number {
|
|
20
|
+
width: 46px;
|
|
21
|
+
height: 46px;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
border-radius: 23px;
|
|
26
|
+
background-color: #f1ece3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.digit {
|
|
30
|
+
color: #1d1e22;
|
|
31
|
+
font-size: 24px;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.text {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 4px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.title {
|
|
41
|
+
color: #fafaf7;
|
|
42
|
+
font-size: 28px;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.how {
|
|
47
|
+
color: #eeeff2;
|
|
48
|
+
font-size: 27px;
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
51
|
+
<div class="label">
|
|
52
|
+
<div class="number"><span class="digit">1</span></div>
|
|
53
|
+
<div class="text">
|
|
54
|
+
<span class="title">Grab</span>
|
|
55
|
+
<span class="how">Point, then hold to move it</span>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Station label. Plain divs keep these colors in both color schemes.
|
|
3
|
+
-->
|
|
4
|
+
<style>
|
|
5
|
+
.label {
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 18px;
|
|
9
|
+
padding-top: 14px;
|
|
10
|
+
padding-bottom: 14px;
|
|
11
|
+
padding-left: 16px;
|
|
12
|
+
padding-right: 30px;
|
|
13
|
+
border-radius: 26px;
|
|
14
|
+
border-width: 1px;
|
|
15
|
+
border-color: #3a3b40;
|
|
16
|
+
background-color: #232427;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.number {
|
|
20
|
+
width: 46px;
|
|
21
|
+
height: 46px;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
border-radius: 23px;
|
|
26
|
+
background-color: #f1ece3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.digit {
|
|
30
|
+
color: #1d1e22;
|
|
31
|
+
font-size: 24px;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.text {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 4px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.title {
|
|
41
|
+
color: #fafaf7;
|
|
42
|
+
font-size: 28px;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.how {
|
|
47
|
+
color: #eeeff2;
|
|
48
|
+
font-size: 27px;
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
51
|
+
<div class="label">
|
|
52
|
+
<div class="number"><span class="digit">2</span></div>
|
|
53
|
+
<div class="text">
|
|
54
|
+
<span class="title">Select</span>
|
|
55
|
+
<span class="how">Point at the robot, then select</span>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Station label. Plain divs keep these colors in both color schemes.
|
|
3
|
+
-->
|
|
4
|
+
<style>
|
|
5
|
+
.label {
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 18px;
|
|
9
|
+
padding-top: 14px;
|
|
10
|
+
padding-bottom: 14px;
|
|
11
|
+
padding-left: 16px;
|
|
12
|
+
padding-right: 30px;
|
|
13
|
+
border-radius: 26px;
|
|
14
|
+
border-width: 1px;
|
|
15
|
+
border-color: #3a3b40;
|
|
16
|
+
background-color: #232427;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.number {
|
|
20
|
+
width: 46px;
|
|
21
|
+
height: 46px;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
border-radius: 23px;
|
|
26
|
+
background-color: #f1ece3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.digit {
|
|
30
|
+
color: #1d1e22;
|
|
31
|
+
font-size: 24px;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.text {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 4px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.title {
|
|
41
|
+
color: #fafaf7;
|
|
42
|
+
font-size: 28px;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.how {
|
|
47
|
+
color: #eeeff2;
|
|
48
|
+
font-size: 27px;
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
51
|
+
<div class="label">
|
|
52
|
+
<div class="number"><span class="digit">3</span></div>
|
|
53
|
+
<div class="text">
|
|
54
|
+
<span class="title">Spin</span>
|
|
55
|
+
<span class="how">Point, then hold to turn it</span>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
@@ -1,54 +1,57 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
Panel,
|
|
3
|
-
|
|
2
|
+
Panel, Button, ButtonIcon, and ButtonLabel come from the bundled Horizon kit.
|
|
3
|
+
RectangleGoggles and LogIn are bundled Lucide icon components. The :dark
|
|
4
|
+
styles apply because iwsdk.config.json prefers the dark color scheme.
|
|
4
5
|
-->
|
|
5
6
|
<style>
|
|
6
7
|
.panel-root {
|
|
7
8
|
flex-direction: column;
|
|
8
|
-
width:
|
|
9
|
+
width: 420px;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.panel-content {
|
|
12
|
-
align-items: center;
|
|
13
13
|
flex-direction: column;
|
|
14
|
-
|
|
15
|
-
padding
|
|
16
|
-
|
|
14
|
+
gap: 7px;
|
|
15
|
+
padding: 22px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.eyebrow {
|
|
19
|
+
color: #6b5a00;
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-weight: 700;
|
|
22
|
+
letter-spacing: 1.4px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.eyebrow:dark {
|
|
26
|
+
color: #f5d90a;
|
|
17
27
|
}
|
|
18
28
|
|
|
19
29
|
.heading {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
font-size: 24px;
|
|
30
|
+
color: #1c1d20;
|
|
31
|
+
font-size: 30px;
|
|
23
32
|
font-weight: 700;
|
|
24
|
-
line-height:
|
|
25
|
-
letter-spacing: -0.5px;
|
|
26
|
-
color: #272727;
|
|
33
|
+
line-height: 36px;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
.heading:dark {
|
|
30
|
-
color:
|
|
37
|
+
color: #fafaf7;
|
|
31
38
|
}
|
|
32
39
|
|
|
33
|
-
.
|
|
34
|
-
color: #
|
|
35
|
-
font-size:
|
|
36
|
-
|
|
37
|
-
line-height: 18px;
|
|
38
|
-
width: 100%;
|
|
39
|
-
margin-top: 10px;
|
|
40
|
+
.body {
|
|
41
|
+
color: #3a3b40;
|
|
42
|
+
font-size: 20px;
|
|
43
|
+
line-height: 27px;
|
|
40
44
|
}
|
|
41
45
|
|
|
42
|
-
.
|
|
43
|
-
color:
|
|
46
|
+
.body:dark {
|
|
47
|
+
color: #dddfe3;
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
.button {
|
|
47
51
|
justify-content: flex-start;
|
|
48
|
-
margin-left:
|
|
49
|
-
margin-right:
|
|
50
|
-
margin-
|
|
51
|
-
margin-bottom: 24px;
|
|
52
|
+
margin-left: 22px;
|
|
53
|
+
margin-right: 22px;
|
|
54
|
+
margin-bottom: 22px;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
.button-label {
|
|
@@ -57,12 +60,10 @@
|
|
|
57
60
|
</style>
|
|
58
61
|
<Panel class="panel-root">
|
|
59
62
|
<div class="panel-content">
|
|
63
|
+
<div class="eyebrow">IMMERSIVE WEB SDK</div>
|
|
60
64
|
<div class="heading">Hello, Immersive Web!</div>
|
|
61
|
-
<
|
|
62
|
-
<div class="
|
|
63
|
-
Build interactive browser, mixed-reality, and virtual-reality experiences
|
|
64
|
-
with Immersive Web SDK.
|
|
65
|
-
</div>
|
|
65
|
+
<div class="body">Try each station around you,</div>
|
|
66
|
+
<div class="body">then make this scene your own.</div>
|
|
66
67
|
</div>
|
|
67
68
|
<Button id="xr-button" class="button">
|
|
68
69
|
<ButtonIcon>
|
|
@@ -6,6 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { AssetType, defineAssets } from '@iwsdk/core';
|
|
9
|
+
import {
|
|
10
|
+
createGallerySet,
|
|
11
|
+
createSideboardSet,
|
|
12
|
+
} from './scene-assets/decor.scene-asset.js';
|
|
13
|
+
import {
|
|
14
|
+
createGraphiteCube,
|
|
15
|
+
createGraphiteGem,
|
|
16
|
+
createGraphiteKnot,
|
|
17
|
+
createGraphiteRing,
|
|
18
|
+
createPlinth,
|
|
19
|
+
createStage,
|
|
20
|
+
createStudioFloor,
|
|
21
|
+
} from './scene-assets/studio.scene-asset.js';
|
|
9
22
|
|
|
10
23
|
const publicAssetUrl = (filePath: string): string =>
|
|
11
24
|
`${import.meta.env.BASE_URL}${filePath.replace(/^\/+/u, '')}`;
|
|
@@ -21,34 +34,30 @@ function stockAssetUrl(assetId: string, fileName: string): string {
|
|
|
21
34
|
return `${stockAssetBase}/${assetId}/${fileName}`;
|
|
22
35
|
}
|
|
23
36
|
|
|
37
|
+
const uikitml = (fileName: string, name: string) => ({
|
|
38
|
+
url: publicAssetUrl(`ui/${fileName}`),
|
|
39
|
+
type: AssetType.UIKitML,
|
|
40
|
+
name,
|
|
41
|
+
});
|
|
42
|
+
|
|
24
43
|
export default defineAssets({
|
|
25
|
-
'
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
name: 'Plant Sansevieria',
|
|
35
|
-
priority: 'lazy',
|
|
36
|
-
},
|
|
44
|
+
'studio-floor': createStudioFloor(),
|
|
45
|
+
stage: createStage(),
|
|
46
|
+
plinth: createPlinth(),
|
|
47
|
+
'graphite-cube': createGraphiteCube(),
|
|
48
|
+
'graphite-gem': createGraphiteGem(),
|
|
49
|
+
'graphite-knot': createGraphiteKnot(),
|
|
50
|
+
'graphite-ring': createGraphiteRing(),
|
|
51
|
+
'gallery-set': createGallerySet(),
|
|
52
|
+
'sideboard-set': createSideboardSet(),
|
|
37
53
|
robot: {
|
|
38
54
|
url: stockAssetUrl('robot', 'robot.gltf'),
|
|
39
55
|
type: AssetType.GLTF,
|
|
40
56
|
name: 'Robot',
|
|
41
57
|
priority: 'lazy',
|
|
42
58
|
},
|
|
43
|
-
'welcome-panel':
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
'webxr-banner': {
|
|
49
|
-
url: publicAssetUrl('gltf/webxr-banner/banner.gltf'),
|
|
50
|
-
type: AssetType.GLTF,
|
|
51
|
-
name: 'WebXR Banner',
|
|
52
|
-
priority: 'lazy',
|
|
53
|
-
},
|
|
59
|
+
'welcome-panel': uikitml('welcome.uikitml', 'Welcome Panel'),
|
|
60
|
+
'label-grab': uikitml('label-grab.uikitml', 'Grab Label'),
|
|
61
|
+
'label-select': uikitml('label-select.uikitml', 'Select Label'),
|
|
62
|
+
'label-spin': uikitml('label-spin.uikitml', 'Spin Label'),
|
|
54
63
|
});
|