@webspatial/platform-visionos 0.0.1
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/LICENSE +21 -0
- package/Packages/RealityKitContent/.build/workspace-state.json +7 -0
- package/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +11 -0
- package/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +112 -0
- package/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +17 -0
- package/Packages/RealityKitContent/Package.swift +27 -0
- package/Packages/RealityKitContent/README.md +3 -0
- package/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +50 -0
- package/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +216 -0
- package/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +59 -0
- package/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +4 -0
- package/package.json +27 -0
- package/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +6 -0
- package/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +17 -0
- package/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +6 -0
- package/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +6 -0
- package/web-spatial/Assets.xcassets/Contents.json +6 -0
- package/web-spatial/Info.plist +33 -0
- package/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
- package/web-spatial/libs/EventEmitter.swift +32 -0
- package/web-spatial/libs/SpatialComponent.swift +31 -0
- package/web-spatial/libs/SpatialEntity.swift +179 -0
- package/web-spatial/libs/SpatialInputComponent.swift +26 -0
- package/web-spatial/libs/SpatialMeshResource.swift +19 -0
- package/web-spatial/libs/SpatialModel3DComponent.swift +51 -0
- package/web-spatial/libs/SpatialModelComponent.swift +32 -0
- package/web-spatial/libs/SpatialObject.swift +144 -0
- package/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +19 -0
- package/web-spatial/libs/SpatialViewComponent.swift +15 -0
- package/web-spatial/libs/SpatialWindowComponent.swift +443 -0
- package/web-spatial/libs/SpatialWindowContainer.swift +149 -0
- package/web-spatial/libs/Utils/CommandManager.swift +800 -0
- package/web-spatial/libs/Utils/Logger.swift +36 -0
- package/web-spatial/libs/Utils/SceneManager.swift +108 -0
- package/web-spatial/libs/Utils/WindowContainerMgr.swift +117 -0
- package/web-spatial/libs/json/JsonParser.swift +52 -0
- package/web-spatial/libs/uiKitDelegate/Window.swift +34 -0
- package/web-spatial/libs/webView/UpdateSystem.swift +33 -0
- package/web-spatial/libs/webView/backend/NativeWebView.swift +319 -0
- package/web-spatial/libs/webView/manifest.swift +92 -0
- package/web-spatial/static-web/index.html +9 -0
- package/web-spatial/views/HideViewModifier.swift +17 -0
- package/web-spatial/views/ImmersiveView.swift +24 -0
- package/web-spatial/views/LoadingView.swift +29 -0
- package/web-spatial/views/MaterialWithBorderCornerModifier.swift +82 -0
- package/web-spatial/views/OpenDismissHandlerUI.swift +52 -0
- package/web-spatial/views/PlainWindowContainerView.swift +84 -0
- package/web-spatial/views/SpatialModel3DView.swift +193 -0
- package/web-spatial/views/SpatialViewUI.swift +168 -0
- package/web-spatial/views/SpatialWebViewUI.swift +193 -0
- package/web-spatial/views/VolumetricWindowContainerView.swift +38 -0
- package/web-spatial/views/ui/NavView.swift +125 -0
- package/web-spatial/web_spatialApp.swift +158 -0
- package/web-spatial.xcodeproj/project.pbxproj +686 -0
- package/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
- package/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +14 -0
- package/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +115 -0
- package/web-spatialTests/web_spatialTests.swift +34 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>BuildLocationStyle</key>
|
|
6
|
+
<string>UseAppPreferences</string>
|
|
7
|
+
<key>CustomBuildLocationType</key>
|
|
8
|
+
<string>RelativeToDerivedData</string>
|
|
9
|
+
<key>DerivedDataLocationStyle</key>
|
|
10
|
+
<string>Default</string>
|
|
11
|
+
<key>ShowSharedSchemesAutomaticallyEnabled</key>
|
|
12
|
+
<true/>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Scheme
|
|
3
|
+
LastUpgradeVersion = "1600"
|
|
4
|
+
version = "1.7">
|
|
5
|
+
<BuildAction
|
|
6
|
+
parallelizeBuildables = "YES"
|
|
7
|
+
buildImplicitDependencies = "YES"
|
|
8
|
+
buildArchitectures = "Automatic">
|
|
9
|
+
<BuildActionEntries>
|
|
10
|
+
<BuildActionEntry
|
|
11
|
+
buildForTesting = "YES"
|
|
12
|
+
buildForRunning = "YES"
|
|
13
|
+
buildForProfiling = "YES"
|
|
14
|
+
buildForArchiving = "YES"
|
|
15
|
+
buildForAnalyzing = "YES">
|
|
16
|
+
<BuildableReference
|
|
17
|
+
BuildableIdentifier = "primary"
|
|
18
|
+
BlueprintIdentifier = "2B2F1D622BEBFAAA006897EE"
|
|
19
|
+
BuildableName = "WebSpatial.app"
|
|
20
|
+
BlueprintName = "web-spatial"
|
|
21
|
+
ReferencedContainer = "container:web-spatial.xcodeproj">
|
|
22
|
+
</BuildableReference>
|
|
23
|
+
</BuildActionEntry>
|
|
24
|
+
</BuildActionEntries>
|
|
25
|
+
</BuildAction>
|
|
26
|
+
<TestAction
|
|
27
|
+
buildConfiguration = "Debug"
|
|
28
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
29
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
30
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
31
|
+
shouldAutocreateTestPlan = "YES">
|
|
32
|
+
<Testables>
|
|
33
|
+
<TestableReference
|
|
34
|
+
skipped = "NO"
|
|
35
|
+
parallelizable = "YES">
|
|
36
|
+
<BuildableReference
|
|
37
|
+
BuildableIdentifier = "primary"
|
|
38
|
+
BlueprintIdentifier = "2B2F1D792BEBFAAD006897EE"
|
|
39
|
+
BuildableName = "WebSpatial.xctest"
|
|
40
|
+
BlueprintName = "web-spatialTests"
|
|
41
|
+
ReferencedContainer = "container:web-spatial.xcodeproj">
|
|
42
|
+
</BuildableReference>
|
|
43
|
+
</TestableReference>
|
|
44
|
+
</Testables>
|
|
45
|
+
</TestAction>
|
|
46
|
+
<LaunchAction
|
|
47
|
+
buildConfiguration = "Debug"
|
|
48
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
49
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
50
|
+
launchStyle = "0"
|
|
51
|
+
useCustomWorkingDirectory = "NO"
|
|
52
|
+
ignoresPersistentStateOnLaunch = "NO"
|
|
53
|
+
debugDocumentVersioning = "YES"
|
|
54
|
+
debugServiceExtension = "internal"
|
|
55
|
+
allowLocationSimulation = "YES">
|
|
56
|
+
<BuildableProductRunnable
|
|
57
|
+
runnableDebuggingMode = "0">
|
|
58
|
+
<BuildableReference
|
|
59
|
+
BuildableIdentifier = "primary"
|
|
60
|
+
BlueprintIdentifier = "2B2F1D622BEBFAAA006897EE"
|
|
61
|
+
BuildableName = "WebSpatial.app"
|
|
62
|
+
BlueprintName = "web-spatial"
|
|
63
|
+
ReferencedContainer = "container:web-spatial.xcodeproj">
|
|
64
|
+
</BuildableReference>
|
|
65
|
+
</BuildableProductRunnable>
|
|
66
|
+
<EnvironmentVariables>
|
|
67
|
+
<EnvironmentVariable
|
|
68
|
+
key = "IDEPreferLogStreaming"
|
|
69
|
+
value = "YES"
|
|
70
|
+
isEnabled = "YES">
|
|
71
|
+
</EnvironmentVariable>
|
|
72
|
+
</EnvironmentVariables>
|
|
73
|
+
<AdditionalOptions>
|
|
74
|
+
<AdditionalOption
|
|
75
|
+
key = "MallocStackLogging"
|
|
76
|
+
value = ""
|
|
77
|
+
isEnabled = "YES">
|
|
78
|
+
</AdditionalOption>
|
|
79
|
+
<AdditionalOption
|
|
80
|
+
key = "PrefersMallocStackLoggingLite"
|
|
81
|
+
value = ""
|
|
82
|
+
isEnabled = "YES">
|
|
83
|
+
</AdditionalOption>
|
|
84
|
+
<AdditionalOption
|
|
85
|
+
key = "MallocScribble"
|
|
86
|
+
value = ""
|
|
87
|
+
isEnabled = "YES">
|
|
88
|
+
</AdditionalOption>
|
|
89
|
+
</AdditionalOptions>
|
|
90
|
+
</LaunchAction>
|
|
91
|
+
<ProfileAction
|
|
92
|
+
buildConfiguration = "Release"
|
|
93
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
94
|
+
savedToolIdentifier = ""
|
|
95
|
+
useCustomWorkingDirectory = "NO"
|
|
96
|
+
debugDocumentVersioning = "YES">
|
|
97
|
+
<BuildableProductRunnable
|
|
98
|
+
runnableDebuggingMode = "0">
|
|
99
|
+
<BuildableReference
|
|
100
|
+
BuildableIdentifier = "primary"
|
|
101
|
+
BlueprintIdentifier = "2B2F1D622BEBFAAA006897EE"
|
|
102
|
+
BuildableName = "WebSpatial.app"
|
|
103
|
+
BlueprintName = "web-spatial"
|
|
104
|
+
ReferencedContainer = "container:web-spatial.xcodeproj">
|
|
105
|
+
</BuildableReference>
|
|
106
|
+
</BuildableProductRunnable>
|
|
107
|
+
</ProfileAction>
|
|
108
|
+
<AnalyzeAction
|
|
109
|
+
buildConfiguration = "Debug">
|
|
110
|
+
</AnalyzeAction>
|
|
111
|
+
<ArchiveAction
|
|
112
|
+
buildConfiguration = "Release"
|
|
113
|
+
revealArchiveInOrganizer = "YES">
|
|
114
|
+
</ArchiveAction>
|
|
115
|
+
</Scheme>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// web_spatialTests.swift
|
|
3
|
+
// web-spatialTests
|
|
4
|
+
//
|
|
5
|
+
// Created by ByteDance on 5/8/24.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@testable import web_spatial
|
|
9
|
+
import XCTest
|
|
10
|
+
|
|
11
|
+
class web_spatialTests: XCTestCase {
|
|
12
|
+
override func setUpWithError() throws {
|
|
13
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
override func tearDownWithError() throws {
|
|
17
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
func testExample() throws {
|
|
21
|
+
// This is an example of a functional test case.
|
|
22
|
+
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
23
|
+
// Any test you write for XCTest can be annotated as throws and async.
|
|
24
|
+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
|
|
25
|
+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
func testPerformanceExample() throws {
|
|
29
|
+
// This is an example of a performance test case.
|
|
30
|
+
measure {
|
|
31
|
+
// Put the code you want to measure the time of here.
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|