@webspatial/builder 0.0.1 → 0.0.3
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/Cli.d.ts +3 -0
- package/dist/lib/Cli.js +1 -0
- package/dist/lib/cmds/build.d.ts +4 -0
- package/dist/lib/cmds/build.js +1 -0
- package/dist/lib/cmds/check.d.ts +3 -0
- package/dist/lib/cmds/check.js +1 -0
- package/dist/lib/cmds/help.d.ts +3 -0
- package/dist/lib/cmds/help.js +1 -0
- package/dist/lib/cmds/version.d.ts +2 -0
- package/dist/lib/cmds/version.js +1 -0
- package/dist/lib/pwa/config.d.ts +7 -0
- package/dist/lib/pwa/config.js +1 -0
- package/dist/lib/pwa/index.d.ts +16 -0
- package/dist/lib/pwa/index.js +1 -0
- package/dist/lib/pwa/validate.d.ts +4 -0
- package/dist/lib/pwa/validate.js +1 -0
- package/dist/lib/resource/file.d.ts +2 -0
- package/dist/lib/resource/file.js +1 -0
- package/dist/lib/resource/imageHelper.d.ts +7 -0
- package/dist/lib/resource/imageHelper.js +1 -0
- package/dist/lib/resource/index.d.ts +13 -0
- package/dist/lib/resource/index.js +1 -0
- package/dist/lib/resource/load.d.ts +6 -0
- package/dist/lib/resource/load.js +1 -0
- package/dist/lib/utils/CustomError.d.ts +13 -0
- package/dist/lib/utils/CustomError.js +1 -0
- package/dist/lib/utils/FetchUtils-1.d.ts +12 -0
- package/dist/lib/utils/FetchUtils-1.js +1 -0
- package/dist/lib/utils/Log.d.ts +88 -0
- package/dist/lib/utils/Log.js +1 -0
- package/dist/lib/utils/fetch.d.ts +5 -0
- package/dist/lib/utils/fetch.js +1 -0
- package/dist/lib/utils/messages.d.ts +50 -0
- package/dist/lib/utils/messages.js +1 -0
- package/dist/lib/utils/utils.d.ts +1 -0
- package/dist/lib/utils/utils.js +1 -0
- package/dist/lib/xcode/index.d.ts +5 -0
- package/dist/lib/xcode/index.js +1 -0
- package/dist/lib/xcode/manifestSwiftTemplate.d.ts +1 -0
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -0
- package/dist/lib/xcode/xcodebuild.d.ts +16 -0
- package/dist/lib/xcode/xcodebuild.js +1 -0
- package/dist/lib/xcode/xcodeproject.d.ts +11 -0
- package/dist/lib/xcode/xcodeproject.js +1 -0
- package/dist/lib/xcode/xcrun.d.ts +7 -0
- package/dist/lib/xcode/xcrun.js +1 -0
- package/package.json +2 -1
- package/template/visionOSApp/Packages/RealityKitContent/.build/workspace-state.json +7 -0
- package/template/visionOSApp/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +11 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +112 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +17 -0
- package/template/visionOSApp/Packages/RealityKitContent/Package.swift +27 -0
- package/template/visionOSApp/Packages/RealityKitContent/README.md +3 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +50 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +216 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +59 -0
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +4 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +17 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +12 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Assets.xcassets/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/Info.plist +33 -0
- package/template/visionOSApp/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
- package/template/visionOSApp/web-spatial/libs/EventEmitter.swift +32 -0
- package/template/visionOSApp/web-spatial/libs/SpatialComponent.swift +31 -0
- package/template/visionOSApp/web-spatial/libs/SpatialEntity.swift +179 -0
- package/template/visionOSApp/web-spatial/libs/SpatialInputComponent.swift +26 -0
- package/template/visionOSApp/web-spatial/libs/SpatialMeshResource.swift +19 -0
- package/template/visionOSApp/web-spatial/libs/SpatialModel3DComponent.swift +51 -0
- package/template/visionOSApp/web-spatial/libs/SpatialModelComponent.swift +32 -0
- package/template/visionOSApp/web-spatial/libs/SpatialObject.swift +144 -0
- package/template/visionOSApp/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +19 -0
- package/template/visionOSApp/web-spatial/libs/SpatialViewComponent.swift +15 -0
- package/template/visionOSApp/web-spatial/libs/SpatialWindowComponent.swift +420 -0
- package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +132 -0
- package/template/visionOSApp/web-spatial/libs/Utils/CommandManager.swift +799 -0
- package/template/visionOSApp/web-spatial/libs/Utils/Logger.swift +36 -0
- package/template/visionOSApp/web-spatial/libs/Utils/SceneManager.swift +108 -0
- package/template/visionOSApp/web-spatial/libs/Utils/WindowContainerMgr.swift +113 -0
- package/template/visionOSApp/web-spatial/libs/json/JsonParser.swift +52 -0
- package/template/visionOSApp/web-spatial/libs/uiKitDelegate/Window.swift +34 -0
- package/template/visionOSApp/web-spatial/libs/webView/UpdateSystem.swift +33 -0
- package/template/visionOSApp/web-spatial/libs/webView/backend/NativeWebView.swift +319 -0
- package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +91 -0
- package/template/visionOSApp/web-spatial/static-web/index.html +9 -0
- package/template/visionOSApp/web-spatial/views/HideViewModifier.swift +17 -0
- package/template/visionOSApp/web-spatial/views/ImmersiveView.swift +24 -0
- package/template/visionOSApp/web-spatial/views/LoadingView.swift +25 -0
- package/template/visionOSApp/web-spatial/views/MaterialWithBorderCornerModifier.swift +82 -0
- package/template/visionOSApp/web-spatial/views/OpenDismissHandlerUI.swift +52 -0
- package/template/visionOSApp/web-spatial/views/PlainWindowContainerView.swift +84 -0
- package/template/visionOSApp/web-spatial/views/SpatialModel3DView.swift +193 -0
- package/template/visionOSApp/web-spatial/views/SpatialViewUI.swift +168 -0
- package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +187 -0
- package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +34 -0
- package/template/visionOSApp/web-spatial/views/ui/NavView.swift +88 -0
- package/template/visionOSApp/web-spatial/web_spatialApp.swift +134 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.pbxproj +686 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +14 -0
- package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +115 -0
- package/template/visionOSApp/web-spatial.xcodeproj/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +27 -0
- package/template/visionOSApp/web-spatialTests/web_spatialTests.swift +34 -0
|
Binary file
|
|
@@ -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>
|
package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme
ADDED
|
@@ -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,27 @@
|
|
|
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>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>web-spatial.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
<key>SuppressBuildableAutocreation</key>
|
|
14
|
+
<dict>
|
|
15
|
+
<key>2B2F1D622BEBFAAA006897EE</key>
|
|
16
|
+
<dict>
|
|
17
|
+
<key>primary</key>
|
|
18
|
+
<true/>
|
|
19
|
+
</dict>
|
|
20
|
+
<key>2B2F1D792BEBFAAD006897EE</key>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>primary</key>
|
|
23
|
+
<true/>
|
|
24
|
+
</dict>
|
|
25
|
+
</dict>
|
|
26
|
+
</dict>
|
|
27
|
+
</plist>
|
|
@@ -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
|
+
}
|