├── .gitignore ├── scripts ├── compile │ ├── AddToTypedefs │ │ ├── TextureBase.d.ts │ │ ├── ParticleTypeDescription.d.ts │ │ └── MaterialBase.d.ts │ ├── tsconfig.json │ ├── package.json │ ├── CalculateLength.js │ ├── package-lock.json │ ├── Utility.ts │ └── SelectLetter.js ├── skylight-typedefs-overrides │ ├── Signal │ │ └── index.d.ts │ ├── Scene.Joint │ │ └── index.d.ts │ ├── Animation.Driver │ │ └── index.d.ts │ ├── Scene.Skeleton │ │ └── index.d.ts │ ├── index.d.ts │ ├── Reactive.Rotation │ │ └── index.d.ts │ ├── Scene.FaceAnchor │ │ └── index.d.ts │ ├── Scene.PlanarDiv │ │ └── index.d.ts │ ├── Scene.PointCloud │ │ └── index.d.ts │ ├── Animation.ValueDriver │ │ └── index.d.ts │ ├── Prefabs.PrefabGltf │ │ └── index.d.ts │ ├── Reactive.ColorSignal │ │ └── index.d.ts │ ├── Reactive.HsvaSignal │ │ └── index.d.ts │ ├── Scene.FaceTracker │ │ └── index.d.ts │ ├── Scene.FocalDistance │ │ └── index.d.ts │ ├── Scene.HandTracker │ │ └── index.d.ts │ ├── Scene.ObjectTracker │ │ └── index.d.ts │ ├── Scene.SceneObject │ │ └── index.d.ts │ ├── Scene.ScreenPlane │ │ └── index.d.ts │ ├── Animation.ColorSampler │ │ └── index.d.ts │ ├── Scene.PlanarFlexItem │ │ └── index.d.ts │ ├── Textures.CameraTexture │ │ └── index.d.ts │ ├── Textures.ImageTexture │ │ └── index.d.ts │ ├── Animation.RotationSampler │ │ └── index.d.ts │ ├── Materials.BlendedMaterial │ │ └── index.d.ts │ ├── Scene.ViperFeaturePoints │ │ └── index.d.ts │ ├── Textures.DeepLinkTexture │ │ └── index.d.ts │ ├── Scene.PlanarFlexContainer │ │ └── index.d.ts │ ├── Scene.PlanesVisualization │ │ └── index.d.ts │ ├── Textures.SegmentationTexture │ │ └── index.d.ts │ ├── Textures.SourceImageRegionTexture │ │ └── index.d.ts │ ├── Augmentations │ │ └── index.d.ts │ ├── Materials.BlendShapeToWarpMapMaterial │ │ └── index.d.ts │ ├── Multiplayer.StateSignalType │ │ └── index.d.ts │ ├── Augmentations.AugmentationState │ │ └── index.d.ts │ ├── PlanesVisualization │ │ └── index.d.ts │ ├── Augmentations.AugmentationInstanceState │ │ └── index.d.ts │ ├── Augmentations.AugmentationInstance │ │ └── index.d.ts │ ├── Animation.ScalarSampler │ │ └── index.d.ts │ ├── mixed │ │ └── index.d.ts │ ├── Augmentations.Augmentation │ │ └── index.d.ts │ ├── Shaders.SdfVariant │ │ └── index.d.ts │ ├── Materials.CullMode │ │ └── index.d.ts │ ├── Shaders.ColorSpace │ │ └── index.d.ts │ ├── Random │ │ └── index.d.ts │ ├── Shaders.BlendedMaterialTextures │ │ └── index.d.ts │ ├── Fonts.FontId │ │ └── index.d.ts │ ├── PortalWorldModel │ │ └── index.d.ts │ ├── Shaders.FacePaintMaterialTextures │ │ └── index.d.ts │ ├── Reactive.Subscription │ │ └── index.d.ts │ ├── Scene.TargetTracker │ │ └── index.d.ts │ ├── RecognitionTracking │ │ └── index.d.ts │ ├── Weather │ │ └── index.d.ts │ ├── Textures.GalleryTexture.State │ │ └── index.d.ts │ ├── Textures.SequenceTexture │ │ └── index.d.ts │ ├── DeepLink │ │ └── index.d.ts │ ├── NativeNavigation │ │ └── index.d.ts │ ├── FaceTracking.Chin │ │ └── index.d.ts │ ├── Reactive.ISignal │ │ └── index.d.ts │ ├── Animation.ArrayOfScalarSignals │ │ └── index.d.ts │ ├── Scene.RemoteSceneObject │ │ └── index.d.ts │ ├── LightingEstimation │ │ └── index.d.ts │ ├── Shaders.DerivativeType │ │ └── index.d.ts │ ├── PageScopedIdentity │ │ └── index.d.ts │ ├── Animation.ArrayOfScalarSamplers │ │ └── index.d.ts │ ├── Audio.AudioComponent │ │ └── index.d.ts │ ├── Reactive.AntiderivativeOverflowBehaviour │ │ └── index.d.ts │ ├── Scene.RenderMode │ │ └── index.d.ts │ ├── Svgs.Svg │ │ └── index.d.ts │ ├── Materials.ComposedMaterial │ │ └── index.d.ts │ ├── Scene.AudioTransformParameterWrapper │ │ └── index.d.ts │ ├── Scene.TextAlignment │ │ └── index.d.ts │ ├── LiveStreaming.State │ │ └── index.d.ts │ ├── Reactive.Point2D │ │ └── index.d.ts │ ├── Scene.HorizontalAlignment │ │ └── index.d.ts │ ├── DeviceMotion │ │ └── index.d.ts │ ├── Textures.ExternalTexture.State │ │ └── index.d.ts │ ├── Shaders.GradientType │ │ └── index.d.ts │ ├── InstantGaming │ │ └── index.d.ts │ ├── CameraInfo.CameraPosition │ │ └── index.d.ts │ ├── Remote3DModels │ │ └── index.d.ts │ ├── SceneUnderstanding.SceneCategory │ │ └── index.d.ts │ ├── Textures.ColorTexture │ │ └── index.d.ts │ ├── Scene.DynamicExtrusion.BrushType │ │ └── index.d.ts │ ├── Reactive.PixelSizeSignal │ │ └── index.d.ts │ ├── Scene.Camera │ │ └── index.d.ts │ ├── Reactive.PixelPointSignal │ │ └── index.d.ts │ ├── PortalWorldModel.LeftLeg │ │ └── index.d.ts │ ├── PortalWorldModel.RightLeg │ │ └── index.d.ts │ ├── Prefabs.State │ │ └── index.d.ts │ ├── Scene.VerticalAlignment │ │ └── index.d.ts │ ├── Scene.VerticalTextAlignment │ │ └── index.d.ts │ ├── PortalWorldModel.Torso │ │ └── index.d.ts │ ├── Textures.GalleryTexture │ │ └── index.d.ts │ ├── Scene.SvgImage │ │ └── index.d.ts │ ├── GraphQL │ │ └── index.d.ts │ ├── CameraControl │ │ └── index.d.ts │ ├── TouchGestures.Gesture.Type │ │ └── index.d.ts │ ├── Reactive.Point3D │ │ └── index.d.ts │ ├── TouchGestures.TapGesture │ │ └── index.d.ts │ ├── FaceTracking.Cheek │ │ └── index.d.ts │ ├── TouchGestures.Gesture.State │ │ └── index.d.ts │ ├── FaceTracking.Forehead │ │ └── index.d.ts │ ├── Scene.TrackingMode │ │ └── index.d.ts │ ├── Scene.PointLightSource │ │ └── index.d.ts │ ├── Scene.AmbientLightSource │ │ └── index.d.ts │ ├── Shaders.VertexAttribute │ │ └── index.d.ts │ ├── Scene.DirectionalLightSource │ │ └── index.d.ts │ ├── TouchGestures.RawTouchGesture │ │ └── index.d.ts │ ├── Reactive.EulerAnglesSignal │ │ └── index.d.ts │ ├── TouchGestures.LongPressGesture │ │ └── index.d.ts │ ├── SceneUnderstanding │ │ └── index.d.ts │ ├── Scene.FaceMesh │ │ └── index.d.ts │ ├── Location.CoordinateSignal │ │ └── index.d.ts │ ├── Reactive.PrimitiveOrShaderSignal │ │ └── index.d.ts │ ├── Scene.ParticleTypeDescription │ │ └── index.d.ts │ ├── BodyTracking │ │ └── index.d.ts │ ├── Scene.PlanarImage │ │ └── index.d.ts │ ├── FaceTracking2D.Face2D │ │ └── index.d.ts │ ├── Materials.ColorPaintMaterial │ │ └── index.d.ts │ ├── Scene.PlaneType │ │ └── index.d.ts │ ├── Scene.TextAlignmentWrapper │ │ └── index.d.ts │ ├── Shaders.PhysicallyBasedMaterialTextures │ │ └── index.d.ts │ ├── Scene.BoundingBox │ │ └── index.d.ts │ ├── PortalWorldModel.LeftArm │ │ └── index.d.ts │ ├── PortalWorldModel.RightArm │ │ └── index.d.ts │ ├── RecognitionTracking.Tracking │ │ └── index.d.ts │ ├── Shaders.DefaultMaterialTextures │ │ └── index.d.ts │ ├── Networking │ │ └── index.d.ts │ ├── Textures.ExternalTexture │ │ └── index.d.ts │ ├── Reactive.BoolValue │ │ └── index.d.ts │ ├── FaceTracking2D │ │ └── index.d.ts │ ├── Reactive.StringValue │ │ └── index.d.ts │ ├── Reactive.ScalarValue │ │ └── index.d.ts │ ├── Location │ │ └── index.d.ts │ ├── IrisTracking │ │ └── index.d.ts │ ├── PlatformEvents │ │ └── index.d.ts │ ├── Scene.FocalPlane │ │ └── index.d.ts │ ├── HandTracking │ │ └── index.d.ts │ ├── BodyTracking.Body │ │ └── index.d.ts │ ├── Persistence │ │ └── index.d.ts │ ├── Textures.CanvasTexture │ │ └── index.d.ts │ ├── Scene.BlendShapesMesh │ │ └── index.d.ts │ ├── ViperDebug │ │ └── index.d.ts │ ├── NativeUI.Slider │ │ └── index.d.ts │ ├── Diagnostics.TypeSystemMetadata │ │ └── index.d.ts │ ├── Scene.BlendShape │ │ └── index.d.ts │ ├── Scene.OutputVisibility │ │ └── index.d.ts │ ├── Textures.ExternalStreamTexture │ │ └── index.d.ts │ ├── Persistence.StorageScope │ │ └── index.d.ts │ ├── RecognitionTracking.Recognition │ │ └── index.d.ts │ ├── Units.WorldUnit │ │ └── index.d.ts │ ├── FaceTracking.Eyebrow │ │ └── index.d.ts │ ├── Scene.CameraVisibility │ │ └── index.d.ts │ ├── Animation.SignalRecorder │ │ └── index.d.ts │ ├── Reactive.InsetsSignal │ │ └── index.d.ts │ ├── Reactive.RgbaSignal │ │ └── index.d.ts │ ├── Scene.AudioTransformWrapper │ │ └── index.d.ts │ ├── Shaders.BuiltinUniform │ │ └── index.d.ts │ ├── Scene.ScalingOption │ │ └── index.d.ts │ ├── Textures.SubTexture │ │ └── index.d.ts │ ├── TouchGestures.Gesture │ │ └── index.d.ts │ ├── EffectLinking.RequestedEffect │ │ └── index.d.ts │ ├── PersonSegmentation │ │ └── index.d.ts │ ├── TouchGestures.PinchGesture │ │ └── index.d.ts │ ├── TouchGestures.RotateGesture │ │ └── index.d.ts │ ├── FaceTracking │ │ └── index.d.ts │ ├── Prefabs.Prefab │ │ └── index.d.ts │ ├── Animation.SignalRecord │ │ └── index.d.ts │ ├── IrisTracking.Eyeball │ │ └── index.d.ts │ ├── Scene.ParticleTypeDescriptions │ │ └── index.d.ts │ ├── Identity │ │ └── index.d.ts │ ├── Materials.RetouchingMaterial │ │ └── index.d.ts │ ├── Scene.SpotLightSource │ │ └── index.d.ts │ ├── TouchGestures.PanGesture │ │ └── index.d.ts │ ├── FaceTracking.Nose │ │ └── index.d.ts │ ├── Materials.BlendMode │ │ └── index.d.ts │ ├── Analytics │ │ └── index.d.ts │ ├── Locale │ │ └── index.d.ts │ ├── Reactive.ScaleSignal │ │ └── index.d.ts │ ├── Materials.TextureTransform │ │ └── index.d.ts │ ├── Reactive.RotationSignal │ │ └── index.d.ts │ ├── Scene.Bounds2D │ │ └── index.d.ts │ ├── Shaders.BlendMode │ │ └── index.d.ts │ ├── Textures.TextureBase │ │ └── index.d.ts │ ├── EffectLinking │ │ └── index.d.ts │ ├── Instruction │ │ └── index.d.ts │ ├── PortalWorldModel.Head │ │ └── index.d.ts │ ├── LiveStreaming │ │ └── index.d.ts │ ├── Animation.TimeDriver │ │ └── index.d.ts │ ├── Scene.Plane │ │ └── index.d.ts │ ├── Units │ │ └── index.d.ts │ ├── BoolSignalHistory │ │ └── index.d.ts │ ├── Point4DSignalHistory │ │ └── index.d.ts │ ├── StringSignalHistory │ │ └── index.d.ts │ ├── VectorSignalHistory │ │ └── index.d.ts │ ├── Point2DSignalHistory │ │ └── index.d.ts │ ├── EventSourceHistory │ │ └── index.d.ts │ ├── PointSignalHistory │ │ └── index.d.ts │ ├── RotationSignalHistory │ │ └── index.d.ts │ ├── ScalarSignalHistory │ │ └── index.d.ts │ ├── ShaderSignalHistory │ │ └── index.d.ts │ ├── Diagnostics │ │ └── index.d.ts │ ├── TransformSignalHistory │ │ └── index.d.ts │ ├── BoundingBoxSignalHistory │ │ └── index.d.ts │ ├── PrimitiveOrShaderSignalHistory │ │ └── index.d.ts │ ├── Audio.PlaybackController │ │ └── index.d.ts │ ├── NativeUI.Picker │ │ └── index.d.ts │ ├── Scene.PointTracker │ │ └── index.d.ts │ ├── FaceTracking.Eye │ │ └── index.d.ts │ ├── LiveStreaming.LiveStreamingReactions │ │ └── index.d.ts │ ├── Scene.Mesh │ │ └── index.d.ts │ ├── CameraInfo │ │ └── index.d.ts │ ├── Reactive.BoundingBoxSignal │ │ └── index.d.ts │ ├── Scene.Speaker │ │ └── index.d.ts │ ├── Scene │ │ └── index.d.ts │ ├── PortalWorldModel.Person │ │ └── index.d.ts │ ├── Svgs │ │ └── index.d.ts │ ├── Fonts │ │ └── index.d.ts │ ├── Prefabs │ │ └── index.d.ts │ ├── Materials.DefaultMaterial │ │ └── index.d.ts │ ├── FaceTracking.Mouth │ │ └── index.d.ts │ └── Textures │ │ └── index.d.ts ├── tsconfig.json ├── CalculateLength.js ├── Sequence.js ├── Utility.js └── SelectLetter.js ├── Icon.png ├── Icon.psd ├── sounds ├── suck up.m4a ├── kids cheering.m4a └── reveal twinkle (1).m4a ├── Alone Together.arproj ├── patches ├── Animate To.arp ├── Cool Down.arp ├── Fade Texture.arp ├── Get Midpoint.arp ├── Get Midpoint(1).arp ├── Vector2 -> Vector3.arp └── Linear Interpolation.arp └── textures ├── Artboard 1.png ├── transparent.png ├── Artboard 2@5x(2).png └── images ├── 1-1 a-lone.png ├── 1-5 alon-e.png ├── 1 t-ogether.png ├── 1-2 a-l-one.png ├── 1-3 al-o-ne.png ├── 1-4 alo-n-e.png ├── 2-2 t-o-gether.png ├── 2-3 to-g-ether.png ├── 2-4 tog-e-ther.png ├── 2-5 toge-t-her.png ├── 2-6 toget-h-er.png ├── 2-7 togeth-e-r.png └── 2-8 togethe-r.png /.gitignore: -------------------------------------------------------------------------------- 1 | /scripts/compile/node_modules 2 | -------------------------------------------------------------------------------- /scripts/compile/AddToTypedefs/TextureBase.d.ts: -------------------------------------------------------------------------------- 1 | declare interface TextureBase { 2 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Signal/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface Signal { 2 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.Joint/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface Joint { 2 | } 3 | -------------------------------------------------------------------------------- /Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/Icon.png -------------------------------------------------------------------------------- /Icon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/Icon.psd -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.Driver/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface Driver { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.Skeleton/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface Skeleton { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/index.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace Module { 2 | } 3 | export = Module; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.Rotation/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface Rotation { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.FaceAnchor/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface FaceAnchor { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PlanarDiv/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface PlanarDiv { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PointCloud/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface PointCloud { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/compile/AddToTypedefs/ParticleTypeDescription.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ParticleTypeDescription { 2 | 3 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.ValueDriver/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ValueDriver { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Prefabs.PrefabGltf/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface PrefabGltf { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.ColorSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ColorSignal { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.HsvaSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface HsvaSignal { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.FaceTracker/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface FaceTracker { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.FocalDistance/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface FocalDistance { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.HandTracker/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface HandTracker { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.ObjectTracker/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ObjectTracker { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.SceneObject/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface SceneObject { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.ScreenPlane/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ScreenPlane { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.ColorSampler/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ColorSampler { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PlanarFlexItem/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface PlanarFlexItem { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.CameraTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface CameraTexture { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.ImageTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ImageTexture { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.RotationSampler/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface RotationSampler { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.BlendedMaterial/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface BlendedMaterial { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.ViperFeaturePoints/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ViperFeaturePoints { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.DeepLinkTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface DeepLinkTexture { 2 | } 3 | -------------------------------------------------------------------------------- /sounds/suck up.m4a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/sounds/suck up.m4a -------------------------------------------------------------------------------- /Alone Together.arproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/Alone Together.arproj -------------------------------------------------------------------------------- /patches/Animate To.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/patches/Animate To.arp -------------------------------------------------------------------------------- /patches/Cool Down.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/patches/Cool Down.arp -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PlanarFlexContainer/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface PlanarFlexContainer { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PlanesVisualization/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface PlanesVisualization { 2 | } 3 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.SegmentationTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface SegmentationTexture { 2 | } 3 | -------------------------------------------------------------------------------- /patches/Fade Texture.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/patches/Fade Texture.arp -------------------------------------------------------------------------------- /patches/Get Midpoint.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/patches/Get Midpoint.arp -------------------------------------------------------------------------------- /sounds/kids cheering.m4a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/sounds/kids cheering.m4a -------------------------------------------------------------------------------- /textures/Artboard 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/Artboard 1.png -------------------------------------------------------------------------------- /textures/transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/transparent.png -------------------------------------------------------------------------------- /patches/Get Midpoint(1).arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/patches/Get Midpoint(1).arp -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.SourceImageRegionTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface SourceImageRegionTexture { 2 | } 3 | -------------------------------------------------------------------------------- /patches/Vector2 -> Vector3.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/patches/Vector2 -> Vector3.arp -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Augmentations/index.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace AugmentationsModule { 2 | } 3 | export = AugmentationsModule; -------------------------------------------------------------------------------- /sounds/reveal twinkle (1).m4a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/sounds/reveal twinkle (1).m4a -------------------------------------------------------------------------------- /textures/Artboard 2@5x(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/Artboard 2@5x(2).png -------------------------------------------------------------------------------- /textures/images/1-1 a-lone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/1-1 a-lone.png -------------------------------------------------------------------------------- /textures/images/1-5 alon-e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/1-5 alon-e.png -------------------------------------------------------------------------------- /patches/Linear Interpolation.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/patches/Linear Interpolation.arp -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.BlendShapeToWarpMapMaterial/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface BlendShapeToWarpMapMaterial { 2 | } 3 | -------------------------------------------------------------------------------- /textures/images/1 t-ogether.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/1 t-ogether.png -------------------------------------------------------------------------------- /textures/images/1-2 a-l-one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/1-2 a-l-one.png -------------------------------------------------------------------------------- /textures/images/1-3 al-o-ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/1-3 al-o-ne.png -------------------------------------------------------------------------------- /textures/images/1-4 alo-n-e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/1-4 alo-n-e.png -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Multiplayer.StateSignalType/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | declare interface StateSignalType{ 5 | } 6 | -------------------------------------------------------------------------------- /textures/images/2-2 t-o-gether.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/2-2 t-o-gether.png -------------------------------------------------------------------------------- /textures/images/2-3 to-g-ether.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/2-3 to-g-ether.png -------------------------------------------------------------------------------- /textures/images/2-4 tog-e-ther.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/2-4 tog-e-ther.png -------------------------------------------------------------------------------- /textures/images/2-5 toge-t-her.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/2-5 toge-t-her.png -------------------------------------------------------------------------------- /textures/images/2-6 toget-h-er.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/2-6 toget-h-er.png -------------------------------------------------------------------------------- /textures/images/2-7 togeth-e-r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/2-7 togeth-e-r.png -------------------------------------------------------------------------------- /textures/images/2-8 togethe-r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adorkable/AloneTogetherIndividualLetterFilter/master/textures/images/2-8 togethe-r.png -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Augmentations.AugmentationState/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | declare interface AugmentationState{ 5 | } 6 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PlanesVisualization/index.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace PlanesVisualizationModule { 2 | } 3 | export = PlanesVisualizationModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Augmentations.AugmentationInstanceState/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | declare interface AugmentationInstanceState{ 5 | } 6 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Augmentations.AugmentationInstance/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface AugmentationInstance { 2 | /** 3 | * 4 | */ 5 | state: any; 6 | } 7 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.ScalarSampler/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The ScalarSampler class encapsulates a scalar value sampler. 3 | */ 4 | declare interface ScalarSampler { 5 | } 6 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/mixed/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface mixed { 2 | /** 3 | * newValue 4 | * 5 | * new value that caused the event to occur 6 | */ 7 | newValue: any 8 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Augmentations.Augmentation/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface Augmentation { 2 | /** 3 | * 4 | */ 5 | state: any; 6 | /** 7 | * 8 | */ 9 | downloadProgress: any; 10 | } 11 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.SdfVariant/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `SdfVariant` enum describes the SDF variant. 3 | * @property SHARP sharp SDF variant. 4 | * @property EXACT Exact SDF variant. 5 | */ 6 | declare interface SdfVariant{ 7 | SHARP, 8 | EXACT, 9 | } 10 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.CullMode/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `CullMode` enum describes how material is culled. 3 | * @property FRONT Cull front-facing geometry. 4 | * @property BACK Cull back-facing geometry. 5 | */ 6 | declare interface CullMode{ 7 | FRONT, 8 | BACK, 9 | } 10 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.ColorSpace/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `ColorSpace` enum describes the color space. 3 | * @property HSL HSL color space. 4 | * @property HSV HSV color space. 5 | * @property RGB RGB color space. 6 | */ 7 | declare interface ColorSpace{ 8 | HSL, 9 | HSV, 10 | RGB, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/tsconfig.json: -------------------------------------------------------------------------------- 1 | {"include":["*.js"],"compilerOptions":{"baseUrl":"/private/var/folders/b_/__44zbf55nz6622x4hcfzf740000gn/T/49223bad51e1b434c25acb38b4644764bd6/skylight-typedefs","allowJs":true,"checkJs":true,"outDir":"/private/var/folders/b_/__44zbf55nz6622x4hcfzf740000gn/T/49223bad51e1b434c25acb38b4644764bd6/skylight-typedefs/out-dir"}} -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Random/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace RandomModule { 3 | /** 4 | * 5 | * random(): number 6 | * 7 | * 8 | * Returns a uniformly distributed number between 0.0 (inclusive) and 1.0 (exclusive). 9 | */function random(): number 10 | ; 11 | 12 | } 13 | export = RandomModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.BlendedMaterialTextures/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `BlendedMaterialTextures` enum describes the different texture slots for a flat material. 3 | * @property DIFFUSE The Diffuse Texture slot of the corresponding material. 4 | */ 5 | declare interface BlendedMaterialTextures{ 6 | DIFFUSE, 7 | } 8 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Fonts.FontId/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare interface FontId { 3 | /** 4 | * ``` 5 | (get) name: string 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies the font name. It should be unique. 10 | 11 | **See Also**: `FontsModule.get`. 12 | */ 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace PortalWorldModelModule { 3 | /** 4 | * ``` 5 | (get) count: number 6 | (set) (Not Available) 7 | ``` 8 | The number of people tracked by the model. 9 | */ 10 | const count: number; 11 | } 12 | export = PortalWorldModelModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.FacePaintMaterialTextures/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `FacePaintMaterialTextures` enum describes the different texture slots for a face paint material. 3 | * @property DIFFUSE The Diffuse Texture slot of the corresponding material. 4 | */ 5 | declare interface FacePaintMaterialTextures{ 6 | DIFFUSE, 7 | } 8 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.Subscription/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface Subscription { 2 | /** 3 | * 4 | * unsubscribe(): void 5 | * 6 | * 7 | * Unsubscribes the previously subscribed callback from the `EventSource`. 8 | * 9 | * **See Also**: `EventSource.subscribe`, `EventSource.subscribeOnNext`. 10 | */unsubscribe(): void; 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.TargetTracker/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface TargetTracker { 3 | /** 4 | * ``` 5 | (get) isTracking: BoolSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies whether the TargetTracker is actively tracking. 10 | */ 11 | isTracking: BoolSignal; 12 | } 13 | -------------------------------------------------------------------------------- /scripts/compile/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig", 3 | "include": [ 4 | "./**/*.js", 5 | "./**/*.ts", 6 | ], 7 | "exclude": [], 8 | "compilerOptions": { 9 | "baseUrl": "../skylight-typedefs-overrides", 10 | "allowJs": true, 11 | "checkJs": true, 12 | "outDir": "../", 13 | "lib": [ 14 | "ES2020" 15 | ] 16 | } 17 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/RecognitionTracking/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare namespace RecognitionTrackingModule { 3 | /** 4 | * ``` 5 | (get) onTargetRecognized: EventSource 6 | (set) (Not Available) 7 | ``` 8 | */ 9 | const onTargetRecognized: EventSource; 10 | } 11 | export = RecognitionTrackingModule; -------------------------------------------------------------------------------- /scripts/compile/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "alone-together", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "Animate.ts", 6 | "scripts": { 7 | "start": "npx tsc -w" 8 | }, 9 | "author": "Ian G ", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@types/node": "^14.0.5", 13 | "typescript": "^3.8.3" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Weather/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace WeatherModule { 3 | /** 4 | * 5 | * getWeather(): Promise 6 | * 7 | * 8 | * 9 | * Returns a `JS Promise` which will be fulfilled with `Weather` object or an error. 10 | */function getWeather(): Promise 11 | ; 12 | 13 | } 14 | export = WeatherModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.GalleryTexture.State/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `State` enum describes the state of a GalleryTexture. 3 | * @property AVAILABLE Indicates that the texture was picked and is available now. 4 | * @property PENDING Indicates that the texture selection is pending. 5 | */ 6 | declare interface State{ 7 | AVAILABLE, 8 | PENDING, 9 | } 10 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.SequenceTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface SequenceTexture { 3 | /** 4 | * ``` 5 | (get) currentFrame: ScalarSignal 6 | (set) currentFrame: ScalarSignal 7 | ``` 8 | 9 | Specifies the current frame in the animated sequence. 10 | */ 11 | currentFrame: ScalarSignal; 12 | } 13 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/DeepLink/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare namespace DeepLinkModule { 3 | /** 4 | * ``` 5 | (get) arguments: {[key: string]: Object} 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a collection of key/value pairs passed from the external app. 10 | */ 11 | const arguments: {[key:; 12 | } 13 | export = DeepLinkModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/NativeNavigation/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace NativeNavigationModule { 3 | /** 4 | * 5 | * navigateTo(contentUrl: string): void 6 | * 7 | * 8 | * Navigate in native app to the internal content specified in `contentUrl`. 9 | */function navigateTo(contentUrl: string): void 10 | ; 11 | 12 | } 13 | export = NativeNavigationModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking.Chin/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Chin { 3 | /** 4 | * ``` 5 | (get) tip: PointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a `PointSignal` representing the location of the tip of the chin in the face local coordinate system. 10 | */ 11 | tip: PointSignal; 12 | } 13 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.ISignal/index.d.ts: -------------------------------------------------------------------------------- 1 | declare interface ISignal { 2 | /** 3 | * 4 | * valueOf(): void 5 | * 6 | * 7 | * Throws an error. Signals are not supposed to be implicitly converted to scalar values. 8 | * 9 | * **See also**: `ScalarSignal.add`, `ScalarSignal.sub`, `ScalarSignal.mul`, `ScalarSignal.div` 10 | */valueOf(): void 11 | ; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.ArrayOfScalarSignals/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface ArrayOfScalarSignals { 4 | /** 5 | * 6 | * get(index: number): ScalarSignal 7 | * 8 | * 9 | * Returns the signal indicated by the `index` parameter. 10 | */get(index: number): ScalarSignal 11 | ; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.RemoteSceneObject/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface RemoteSceneObject { 3 | /** 4 | * ``` 5 | (get) remoteModelIdentifier: StringValue 6 | (set) remoteModelIdentifier: StringValue 7 | ``` 8 | 9 | Specifies the Remote 3D model indentifier. 10 | */ 11 | remoteModelIdentifier: StringValue; 12 | } 13 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/LightingEstimation/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare namespace LightingEstimationModule { 3 | /** 4 | * ``` 5 | (get) frameBrightness: ScalarSignal 6 | ``` 7 | 8 | Specifies a number that represents the brightness of the frame. 9 | */ 10 | const frameBrightness: ScalarSignal; 11 | } 12 | export = LightingEstimationModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.DerivativeType/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `DerivativeType` enum describes the shader derivative type. 3 | * @property FWIDTH Sum of the absolute derivatives in x and y. 4 | * @property DFDY Derivative in y direction. 5 | * @property DFDX Derivative in x direction. 6 | */ 7 | declare interface DerivativeType{ 8 | FWIDTH, 9 | DFDY, 10 | DFDX, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PageScopedIdentity/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace PageScopedIdentityModule { 3 | /** 4 | * 5 | * getPageScopedID(): Promise 6 | * 7 | * 8 | * 9 | * Returns a `JS Promise` which will be fulfilled with Page Scoped ID `String` object or an error. 10 | */function getPageScopedID(): Promise; 11 | 12 | } 13 | export = PageScopedIdentityModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.ArrayOfScalarSamplers/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface ArrayOfScalarSamplers { 4 | /** 5 | * 6 | * 7 | * get(index: number): ScalarSampler 8 | * 9 | * 10 | * Returns the sampler indicated by the `index` parameter. 11 | * 12 | */get(index: number): ScalarSampler 13 | ; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Audio.AudioComponent/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface AudioComponent { 4 | /** 5 | * 6 | * getParameterValue(parameterName: string): ScalarSignal 7 | * 8 | * 9 | * Returns a scalar signal providing the value of an output parameter 10 | */getParameterValue(parameterName: string): ScalarSignal; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.AntiderivativeOverflowBehaviour/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `AntiderivativeOverflowBehaviour` enum describes the recovery technique used when an antiderivative overflows. 3 | * @property WRAP Start from the other end of the interval (min,max) 4 | * @property CLAMP Clamp to either min and max 5 | */ 6 | declare interface AntiderivativeOverflowBehaviour { 7 | WRAP, 8 | CLAMP, 9 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.RenderMode/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The RenderMode enum describes how to render a scene object. 3 | * @property SCREEN_SPACE Indicates that the element should be rendered into the 2D screen space. 4 | * @property WORLD_SPACE Indicates that the element should be rendered into the 3D world space. 5 | */ 6 | declare interface RenderMode{ 7 | SCREEN_SPACE, 8 | WORLD_SPACE, 9 | } 10 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Svgs.Svg/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare interface Svg { 3 | /** 4 | * ``` 5 | (get) name: string 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies the svg name. This is the unique identifier of the svg. 10 | 11 | **Note**: the svg name is specified in AR Studio UI during design time. 12 | 13 | **See Also**: `SvgsModule.get`. 14 | */ 15 | name: string; 16 | } 17 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.ComposedMaterial/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface ComposedMaterial { 4 | /** 5 | * 6 | * setParameter(parameterName: String, signal: ISignal): void 7 | * 8 | * 9 | * Assigns a signal to the specified patch asset parameter. 10 | */setParameter(parameterName: String, signal: ISignal): void 11 | ; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.AudioTransformParameterWrapper/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | declare interface AudioTransformParameterWrapper { 4 | /** 5 | * ``` 6 | (get) parameterName: string 7 | (set) (Not Available) 8 | ``` 9 | */ 10 | parameterName: string; 11 | /** 12 | * ``` 13 | (get) value: number 14 | (set) value: number 15 | ``` 16 | */ 17 | value: number; 18 | } 19 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.TextAlignment/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `TextAlignment` enum describes how a text element is aligned horizontally. 3 | * @property RIGHT Indicates that the text is right-justified. 4 | * @property CENTER Indicates that the text is centered. 5 | * @property LEFT Indicates that the text is left-justified. 6 | */ 7 | declare interface TextAlignment{ 8 | RIGHT, 9 | CENTER, 10 | LEFT, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/LiveStreaming.State/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `LiveStreamingModule.State` enum describes the state of a live stream. 3 | * @property PRELIVE Indicates that the effect is streaming live. 4 | * @property LIVE Indicates that the effect is streaming live. 5 | * @property NONLIVE Indicates that the effect is not streaming live. 6 | */ 7 | declare interface State{ 8 | PRELIVE, 9 | LIVE, 10 | NONLIVE, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.Point2D/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare interface Point2D { 3 | /** 4 | * ``` 5 | (get) x: number 6 | (set) x: number 7 | ``` 8 | 9 | Specifies the horizontal coordinate. 10 | */ 11 | x: number; 12 | /** 13 | * ``` 14 | (get) y: number 15 | (set) y: number 16 | ``` 17 | 18 | Specifies the vertical coordinate. 19 | */ 20 | y: number; 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.HorizontalAlignment/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `HorizontalAlignment` enum describes how an element is aligned horizontally. 3 | * @property RIGHT Indicates that the element is right justified. 4 | * @property CENTER Indicates that the element is centered. 5 | * @property LEFT Indicates that the element is left justified. 6 | */ 7 | declare interface HorizontalAlignment{ 8 | RIGHT, 9 | CENTER, 10 | LEFT, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/DeviceMotion/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare namespace DeviceMotionModule { 3 | /** 4 | * 5 | ``` 6 | (get) worldTransform: TransformSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a `TransformSignal` representing the device transformation relative to world coordinate system. 11 | 12 | */ 13 | const worldTransform: TransformSignal; 14 | } 15 | export = DeviceMotionModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.ExternalTexture.State/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `State` enum describes the download state of an ExternalTexture. 3 | * @property AVAILABLE Indicates that the resource has been downloaded. 4 | * @property FAILED Indicates that the resource failed to download. 5 | * @property PENDING Indicates that the resource download is pending. 6 | */ 7 | declare interface State{ 8 | AVAILABLE, 9 | FAILED, 10 | PENDING, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.GradientType/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `GradientType` enum describes the type of the shader gradient. 3 | * @property CIRCULAR The gradient will radiate outward in a circular direction. 4 | * @property VERTICAL The gradient will be in vertical direction. 5 | * @property HORIZONTAL The gradient will be in horizontal direction. 6 | */ 7 | declare interface GradientType{ 8 | CIRCULAR, 9 | VERTICAL, 10 | HORIZONTAL, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/InstantGaming/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare namespace InstantGamingModule { 4 | /** 5 | * ``` 6 | (get) events: EventSource 7 | (set) (Not Available) 8 | ``` 9 | */ 10 | const events: EventSource; 11 | /** 12 | * 13 | * showGame(event: Object): void 14 | * 15 | */function showGame(event: Object): void; 16 | 17 | } 18 | export = InstantGamingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/CameraInfo.CameraPosition/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `CameraPosition` enum describes the direction the camera is facing. 3 | * @property BACK Indicates that the back-facing camera is in use. 4 | * @property FRONT Indicates that the front-facing camera is in use. 5 | * @property UNSPECIFIED Indicates that the orientation of the camera is unknown. 6 | */ 7 | declare interface CameraPosition{ 8 | BACK, 9 | FRONT, 10 | UNSPECIFIED, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Remote3DModels/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare namespace Remote3DModelsModule { 4 | /** 5 | * 6 | * fetch(url: url): EventSource 7 | * 8 | * Returns a EventSource for the result of the call. A `then(onSuccess(identifier), onFailure(reason))`. 9 | */function fetch(url: url): EventSource 10 | ; 11 | 12 | } 13 | export = Remote3DModelsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/SceneUnderstanding.SceneCategory/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface SceneCategory { 3 | /** 4 | * ``` 5 | (get) found: BoolSignal 6 | ``` 7 | Specifies a `BoolSignal` that takes the value of `true` whenever the scene captured by the camera is that category, `false` otherwise. Default value is 'false'. 8 | */ 9 | found: BoolSignal; 10 | } 11 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.ColorTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface ColorTexture { 3 | /** 4 | * ``` 5 | (get) color: (Not Available) 6 | (set) color: ColorSignal 7 | ``` 8 | 9 | Specifies a `ColorSignal` for a solid color texture. A `ColorSignal` may be created using the `RGBA()` and `HSVA()` methods of the `Reactive` module. 10 | 11 | **See Also**: `ReactiveModule.RGBA` and `ReactiveModule.HSVA`. 12 | */ 13 | color: (Not; 14 | } 15 | -------------------------------------------------------------------------------- /scripts/CalculateLength.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | exports.__esModule = true; 3 | var Patches = require('Patches'); 4 | var updateTextLength = function (text) { 5 | Patches.inputs.setScalar('textLength', text.length); 6 | }; 7 | Patches.outputs.getString('string') 8 | .then(function (stringSignal) { 9 | var string = stringSignal.pinLastValue(); 10 | updateTextLength(string); 11 | stringSignal.monitor().subscribe(function (event) { 12 | updateTextLength(event.newValue); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.DynamicExtrusion.BrushType/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `BrushType` enum describes what kind of brush is used for dynamic extrusion. 3 | * @property HEXAGON Indicates the hexagon brush type. 4 | * @property FLAT Indicates the flat brush type. 5 | * @property TRIANGLE Indicates the triangle brush type. 6 | * @property QUAD Indicates the quad brush type. 7 | */ 8 | declare interface BrushType{ 9 | HEXAGON, 10 | FLAT, 11 | TRIANGLE, 12 | QUAD, 13 | } 14 | -------------------------------------------------------------------------------- /scripts/Sequence.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | exports.__esModule = true; 3 | exports.startSequence = exports.Diagnostics = void 0; 4 | var Reactive = require('Reactive'); 5 | exports.Diagnostics = require('Diagnostics'); 6 | var startSequence = function (scene, letterIndex) { 7 | return scene.letters.animate(Reactive.point(0, 0, 0), Reactive.point(0, 0, 0), 500, letterIndex) 8 | .then(function (event) { 9 | exports.Diagnostics.log("Finished"); 10 | }); 11 | }; 12 | exports.startSequence = startSequence; 13 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.PixelSizeSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface PixelSizeSignal { 3 | /** 4 | * ``` 5 | (get) width: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Represents the width, in pixels. 10 | */ 11 | width: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) height: ScalarSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Represents the height, in pixels. 19 | */ 20 | height: ScalarSignal; 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.Camera/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Camera { 3 | /** 4 | * 5 | ``` 6 | (get) focalPlane: FocalPlane 7 | (set) (Not Available) 8 | ``` 9 | 10 | Returns focal plane info. 11 | Focal Plane is a virtual plane placed in 3D space in front of camera, it will exactly match output size when rendered. 12 | This can be used to convert points between screen and world space. 13 | 14 | */ 15 | focalPlane: FocalPlane; 16 | } 17 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.PixelPointSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface PixelPointSignal { 3 | /** 4 | * ``` 5 | (get) x: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Represents the horizontal coordinate, in pixels. 10 | */ 11 | x: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) y: ScalarSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Represents the vertical coordinate, in pixels. 19 | */ 20 | y: ScalarSignal; 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel.LeftLeg/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface LeftLeg { 3 | /** 4 | * 5 | ``` 6 | (get) knee: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Gets the 2D knee position. 11 | 12 | */ 13 | knee: PixelPointSignal; 14 | /** 15 | * 16 | ``` 17 | (get) foot: PixelPointSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Gets the 2D foot position. 22 | 23 | */ 24 | foot: PixelPointSignal; 25 | } 26 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel.RightLeg/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface RightLeg { 3 | /** 4 | * 5 | ``` 6 | (get) knee: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Gets the 2D knee position. 11 | 12 | */ 13 | knee: PixelPointSignal; 14 | /** 15 | * 16 | ``` 17 | (get) foot: PixelPointSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Gets the 2D foot position. 22 | 23 | */ 24 | foot: PixelPointSignal; 25 | } 26 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Prefabs.State/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `State` enum describes the state of a prefab mesh. 3 | * @property DEFAULT Indicates the the prefab is in the default state. 4 | * @property AVAILABLE Indicates that the resource has been downloaded. 5 | * @property FAILED Indicates that the resource failed to download. 6 | * @property PENDING Indicates that the resource download is pending. 7 | */ 8 | declare interface State{ 9 | DEFAULT, 10 | AVAILABLE, 11 | FAILED, 12 | PENDING, 13 | } 14 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.VerticalAlignment/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `VerticalAlignment` enum describes how an element is aligned vertically. 3 | * @property CENTER Indicates that the element is aligned with the center of the container. 4 | * @property BOTTOM Indicates that the element is aligned at the bottom of the container. 5 | * @property TOP Indicates that the element is aligned at the top of the container. 6 | */ 7 | declare interface VerticalAlignment{ 8 | CENTER, 9 | BOTTOM, 10 | TOP, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.VerticalTextAlignment/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `VerticalTextAlignment` enum describes how a text element is aligned vertically. 3 | * @property CENTER Indicates that the text is aligned at the center of the container. 4 | * @property BOTTOM Indicates that the text is aligned at the bottom of the container. 5 | * @property TOP Indicates that the text is aligned at the top of the container. 6 | */ 7 | declare interface VerticalTextAlignment{ 8 | CENTER, 9 | BOTTOM, 10 | TOP, 11 | } 12 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel.Torso/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Torso { 3 | /** 4 | * 5 | ``` 6 | (get) leftHip: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Gets the 2D left hip position. 11 | 12 | */ 13 | leftHip: PixelPointSignal; 14 | /** 15 | * 16 | ``` 17 | (get) rightHip: PixelPointSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Gets the 2D right hip position. 22 | 23 | */ 24 | rightHip: PixelPointSignal; 25 | } 26 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.GalleryTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface GalleryTexture { 3 | /** 4 | * ``` 5 | (get) state: Signal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a `Signal` representing the state of the gallery texture. The value of the signal is guaranteed to be a member of the `TexturesModule.GalleryTexture.State` enumeration. 10 | */ 11 | state: State>; 12 | } 13 | -------------------------------------------------------------------------------- /scripts/compile/CalculateLength.js: -------------------------------------------------------------------------------- 1 | import { Diagnostics } from './SelectLetter'; 2 | 3 | const Patches = require('Patches'); 4 | 5 | const updateTextLength = (text) => { 6 | Patches.inputs.setScalar('textLength', text.length); 7 | } 8 | 9 | Patches.outputs.getString('string') 10 | .then((stringSignal) => { 11 | const string = stringSignal.pinLastValue() 12 | updateTextLength(string) 13 | 14 | stringSignal.monitor().subscribe((event) => { 15 | updateTextLength(event.newValue) 16 | }) 17 | }) 18 | 19 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.SvgImage/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare interface SvgImage { 4 | /** 5 | * ``` 6 | (get) (Not Available) 7 | (set) svg: Svg 8 | ``` 9 | 10 | Sets the given svg from the svg registry to the svg image scene object. 11 | */ 12 | svg: Svg; 13 | /** 14 | * 15 | * getSvg(): Promise 16 | * 17 | * 18 | * Retrieves a previously set Svg to a given svg image scene object. 19 | */getSvg(): Promise; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/GraphQL/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | declare namespace GraphQLModule { 5 | /** 6 | * 7 | * sendRequest(query: String, variables: Object): Promise 8 | * 9 | * 10 | * Sends the GraphQL request with the given query string and variables 11 | * Returns a `JS Promise` or an error. 12 | */function sendRequest(query: String, variables: Object): Promise 13 | ; 14 | 15 | } 16 | export = GraphQLModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/CameraControl/index.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace CameraControlModule { 2 | /** 3 | * 4 | * setCaptureDevicePositionBack(): void 5 | * 6 | */function setCaptureDevicePositionBack(): void 7 | ; 8 | 9 | /** 10 | * 11 | * setCaptureDevicePositionFront(): void 12 | * 13 | */function setCaptureDevicePositionFront(): void 14 | ; 15 | 16 | } 17 | export = CameraControlModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.Gesture.Type/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `Type` enum describes a touch gesture. 3 | * @property ROTATE Indicates the rotate gesture. 4 | * @property RAW_TOUCH Indicates the raw touch gesture. 5 | * @property PINCH Indicates the pinch gesture. 6 | * @property LONG_PRESS Indicates the long-press gesture. 7 | * @property PAN Indicates the pan gesture. 8 | * @property TAP Indicates the tap gesture. 9 | */ 10 | declare interface Type{ 11 | ROTATE, 12 | RAW_TOUCH, 13 | PINCH, 14 | LONG_PRESS, 15 | PAN, 16 | TAP, 17 | } 18 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.Point3D/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare interface Point3D { 3 | /** 4 | * ``` 5 | (get) x: number 6 | (set) x: number 7 | ``` 8 | 9 | Specifies the x coordinate. 10 | */ 11 | x: number; 12 | /** 13 | * ``` 14 | (get) y: number 15 | (set) y: number 16 | ``` 17 | 18 | Specifies the y coordinate. 19 | */ 20 | y: number; 21 | /** 22 | * ``` 23 | (get) z: number 24 | (set) z: number 25 | ``` 26 | 27 | Specifies the z coordinate. 28 | */ 29 | z: number; 30 | } 31 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.TapGesture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface TapGesture { 3 | /** 4 | * ``` 5 | (get) location: Point2D 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a [`Point2D`](/docs/camera-effects/reference/reactive_module/point2d_class) representing the location of the tap, in pixels screen coordinates. 10 | 11 | **Note**: The location is always specified in the screen coordinates, even if the event was emitted as a result of tapping on a specific object. 12 | */ 13 | location: Point2D; 14 | } 15 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking.Cheek/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Cheek { 3 | /** 4 | * ``` 5 | (get) center: PointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a `PointSignal` representing the center of the cheek in the face local coordinate system. 10 | */ 11 | center: PointSignal; 12 | /** 13 | * ``` 14 | (get) cheekbone: PointSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Specifies a `PointSignal` representing the cheekbone in the face local coordinate system. 19 | */ 20 | cheekbone: PointSignal; 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.Gesture.State/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The State enum describes the state of a Gesture. 3 | * @property ENDED Indicates that the user ended a gesture. 4 | * @property CANCELED Indicates that the gesture in progress was canceled. 5 | * @property FAILED Indicates that the gesture in progress failed. 6 | * @property CHANGED Indicates that the gesture in progress was changed. 7 | * @property BEGAN Indicates that the user began creating a gesture. 8 | */ 9 | declare interface State{ 10 | ENDED, 11 | CANCELED, 12 | FAILED, 13 | CHANGED, 14 | BEGAN, 15 | } 16 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking.Forehead/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Forehead { 3 | /** 4 | * ``` 5 | (get) center: PointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a `PointSignal` representing the center of the forehead in the face local coordinate system. 10 | */ 11 | center: PointSignal; 12 | /** 13 | * ``` 14 | (get) top: PointSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Specifies a `PointSignal` representing the top of the forehead in the face local coordinate system. 19 | */ 20 | top: PointSignal; 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.TrackingMode/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `TrackingMode` enum describes how a PlaneTracker is tracking an object. 3 | * @property VERTICAL_PLANE Indicates that a vertical plane is being tracked. 4 | * @property MOVING_OBJECT Indicates that a moving object is being tracked. 5 | * @property ARBITRARY_DEPTH Indicates that the plane tracker is tracking at an arbitrary depth. 6 | * @property PLANE Indicates that a horizontal plane is being tracked. 7 | */ 8 | declare interface TrackingMode{ 9 | VERTICAL_PLANE, 10 | MOVING_OBJECT, 11 | ARBITRARY_DEPTH, 12 | PLANE, 13 | } 14 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PointLightSource/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface PointLightSource { 4 | /** 5 | * ``` 6 | (get) (Not Available) 7 | (set) color: ColorSignal 8 | ``` 9 | 10 | Specifies the color of this light source. 11 | */ 12 | color: ColorSignal; 13 | /** 14 | * ``` 15 | (get) intensity: ScalarSignal 16 | (set) intensity: ScalarSignal 17 | ``` 18 | 19 | Specifies the intensity of this light source, usually between 0.0 and 1.0. 20 | */ 21 | intensity: ScalarSignal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.AmbientLightSource/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface AmbientLightSource { 4 | /** 5 | * ``` 6 | (get) (Not Available) 7 | (set) color: ColorSignal 8 | ``` 9 | 10 | Specifies the color of this light source. 11 | */ 12 | color: ColorSignal; 13 | /** 14 | * ``` 15 | (get) intensity: ScalarSignal 16 | (set) intensity: ScalarSignal 17 | ``` 18 | 19 | Specifies the intensity of this light source, usually between 0.0 and 1.0. 20 | */ 21 | intensity: ScalarSignal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.VertexAttribute/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `VertexAttribute` enum describes the bultin vertex attributes. 3 | * @property COLOR Color vertex attribute. 4 | * @property BASE_POSITION Base Position vertex attribute. 5 | * @property TANGENT Tangent vertex attribute. 6 | * @property NORMAL Normal vertex attribute. 7 | * @property TEX_COORDS Texture Coordinates vertex attribute. 8 | * @property POSITION Position vertex attribute. 9 | */ 10 | declare interface VertexAttribute{ 11 | COLOR, 12 | BASE_POSITION, 13 | TANGENT, 14 | NORMAL, 15 | TEX_COORDS, 16 | POSITION, 17 | } 18 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.DirectionalLightSource/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface DirectionalLightSource { 4 | /** 5 | * ``` 6 | (get) (Not Available) 7 | (set) color: ColorSignal 8 | ``` 9 | 10 | Specifies the color of this light source. 11 | */ 12 | color: ColorSignal; 13 | /** 14 | * ``` 15 | (get) intensity: ScalarSignal 16 | (set) intensity: ScalarSignal 17 | ``` 18 | 19 | Specifies the intensity of this light source, usually between 0.0 and 1.0. 20 | */ 21 | intensity: ScalarSignal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.RawTouchGesture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface RawTouchGesture { 3 | /** 4 | * ``` 5 | (get) location: PixelPointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a [`PixelPointSignal`](/docs/camera-effects/reference/reactive_module/pixelpointsignal_class) that represents the location of the touch in screen coordinates. 10 | 11 | **Note**: The location is always specified in the screen coordinates, even if the event was emitted as a result of touching a specific object. 12 | */ 13 | location: PixelPointSignal; 14 | } 15 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.EulerAnglesSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface EulerAnglesSignal { 3 | /** 4 | * ``` 5 | (get) x: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Represents the Euler X rotation. 10 | */ 11 | x: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) y: ScalarSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Represents the Euler Y rotation. 19 | */ 20 | y: ScalarSignal; 21 | /** 22 | * ``` 23 | (get) z: ScalarSignal 24 | (set) (Not Available) 25 | ``` 26 | 27 | Represents the Euler Z rotation. 28 | */ 29 | z: ScalarSignal; 30 | } 31 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.LongPressGesture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface LongPressGesture { 3 | /** 4 | * ``` 5 | (get) location: PixelPointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a [`PixelPointSignal`](/docs/camera-effects/reference/reactive_module/pixelpointsignal_class) that represents the location of the gesture in screen coordinates. 10 | 11 | **Note**: The location is always specified in the screen coordinates, even if the event was emitted as a result of long pressing on a specific object. 12 | */ 13 | location: PixelPointSignal; 14 | } 15 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/SceneUnderstanding/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare namespace SceneUnderstandingModule { 4 | /** 5 | * 6 | * category(category: SceneCategories): SceneCategory 7 | * 8 | * 9 | * Returns a `SceneCategory` object capable of identifying if the scene captured by the camera is that category. 10 | */function category(category: SceneCategories): SceneCategory 11 | ; 12 | 13 | } 14 | export = SceneUnderstandingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.FaceMesh/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare interface FaceMesh { 4 | /** 5 | * ``` 6 | (get) material: MaterialBase 7 | (set) material: MaterialBase 8 | ``` 9 | 10 | Specifies the material of the scene object. 11 | */ 12 | material: MaterialBase; 13 | /** 14 | * 15 | * getMaterial(): Promise 16 | * 17 | * 18 | * Returns a promise that is resolved with the material associated with a given scene object or null if no material was assigned. 19 | */getMaterial(): Promise; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Location.CoordinateSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface CoordinateSignal { 3 | /** 4 | * ``` 5 | (get) latitude: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | */ 9 | latitude: ScalarSignal; 10 | /** 11 | * ``` 12 | (get) longitude: ScalarSignal 13 | (set) (Not Available) 14 | ``` 15 | */ 16 | longitude: ScalarSignal; 17 | } 18 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.PrimitiveOrShaderSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface PrimitiveOrShaderSignal { 4 | /** 5 | * 6 | * history(framesCount: number): PrimitiveOrShaderSignalHistory 7 | * 8 | * 9 | * Returns an object used to access signal values from past frames. The amount of frames tracked is customizable via `framesCount` parameter. 10 | * Historical signal values are going to be initialized with signal value at call time or using `initialValues` if provided. 11 | * 12 | */history(framesCount: number): PrimitiveOrShaderSignalHistory; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.ParticleTypeDescription/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface ParticleTypeDescription { 3 | /** 4 | * ``` 5 | (get) fraction: ScalarValue 6 | (set) fraction: ScalarSignal 7 | ``` 8 | 9 | The fraction of particles, that should be of that ParticleTypeDescription. This is thought to be used for making the sorting better between different particles. The user can specify the fraction of particles that can use the specific frames of one sprite sheet (which is specified from the UI), which would make sorting of different particles proper. 10 | */ 11 | fraction: ScalarValue; 12 | } 13 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/BodyTracking/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /// 4 | declare namespace BodyTrackingModule { 5 | /** 6 | * ``` 7 | (get) count: ScalarSignal 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns a `ScalarSignal` representing the count of tracked bodies. 12 | */ 13 | const count: ScalarSignal; 14 | /** 15 | * 16 | * body(index: number): Body 17 | * 18 | * 19 | * Returns a `Body` object. 20 | */function body(index: number): Body 21 | ; 22 | 23 | } 24 | export = BodyTrackingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PlanarImage/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare interface PlanarImage { 4 | /** 5 | * ``` 6 | (get) material: MaterialBase 7 | (set) material: MaterialBase 8 | ``` 9 | 10 | Specifies the material of the scene object. 11 | */ 12 | material: MaterialBase; 13 | /** 14 | * 15 | * getMaterial(): Promise 16 | * 17 | * 18 | * Returns a promise that is resolved with the material associated with a given scene object or null if no material was assigned. 19 | */getMaterial(): Promise 20 | ; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking2D.Face2D/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface Face2D { 4 | /** 5 | * ``` 6 | (get) boundingBox: BoundingBoxSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a `BoundingBoxSignal` object describing the face bounding box relative to normalized screen space. 11 | */ 12 | boundingBox: BoundingBoxSignal; 13 | /** 14 | * ``` 15 | (get) isTracked: BoolSignal 16 | (set) (Not Available) 17 | ``` 18 | 19 | A `BoolSignal` indicating whether the face was tracked this frame. 20 | */ 21 | isTracked: BoolSignal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.ColorPaintMaterial/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface ColorPaintMaterial { 4 | /** 5 | * ``` 6 | (get) paintBrightness: ScalarValue 7 | (set) paintBrightness: ScalarSignal 8 | ``` 9 | 10 | Specifies the simulated paint brightness. 11 | */ 12 | paintBrightness: ScalarValue; 13 | /** 14 | * ``` 15 | (get) backgroundInfluence: ScalarSignal 16 | (set) backgroundInfluence: ScalarSignal 17 | ``` 18 | 19 | Specifies the influence of the background face on the paint texture. 20 | */ 21 | backgroundInfluence: ScalarSignal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PlaneType/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `PlaneType` enum describes the type of a plane. 3 | * @property HORIZONTAL_OR_VERTICAL Indicates a horizontal or a vertical plane. 4 | * @property HORIZONTAL_FLOOR Indicates a horizontal floor plane. 5 | * @property VERTICAL Indicates a vertical plane. 6 | * @property HORIZONTAL Indicates a horizontal floor or ceiling plane. 7 | * @property HORIZONTAL_CEILING Indicates a horizontal ceiling plane. 8 | * @property NONE Indicates no plane. 9 | */ 10 | declare interface PlaneType{ 11 | HORIZONTAL_OR_VERTICAL, 12 | HORIZONTAL_FLOOR, 13 | VERTICAL, 14 | HORIZONTAL, 15 | HORIZONTAL_CEILING, 16 | NONE, 17 | } 18 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.TextAlignmentWrapper/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface TextAlignmentWrapper { 4 | /** 5 | * ``` 6 | (get) vertical: Signal 7 | (set) vertical: Signal 8 | ``` 9 | 10 | Specifies the vertical text alignment. 11 | */ 12 | vertical: Signal; 13 | /** 14 | * ``` 15 | (get) horizontal: Signal 16 | (set) horizontal: Signal 17 | ``` 18 | 19 | Specifies the horizontal text alignment. 20 | */ 21 | horizontal: Signal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.PhysicallyBasedMaterialTextures/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `PhysicallyBasedMaterialTextures` enum describes the different texture slots for a physically based material. 3 | * @property EMISSIVE The Emissive Texture slot of the corresponding material. 4 | * @property METALLIC_ROUGHNESS The Metallic Roughness Texture slot of the corresponding material. 5 | * @property NORMAL The Normal Texture slot of the corresponding material. 6 | * @property BASE_COLOR The Base Color Texture slot of the corresponding material. 7 | */ 8 | declare interface PhysicallyBasedMaterialTextures{ 9 | EMISSIVE, 10 | METALLIC_ROUGHNESS, 11 | NORMAL, 12 | BASE_COLOR, 13 | } 14 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.BoundingBox/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface BoundingBox { 3 | /** 4 | * ``` 5 | (get) min: PointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Retrieves the minimum point of object's bounding box in object's local coordinate system. 10 | 11 | **NOTE**: There is 1 frame delay in this value. 12 | */ 13 | min: PointSignal; 14 | /** 15 | * ``` 16 | (get) max: PointSignal 17 | (set) (Not Available) 18 | ``` 19 | 20 | Retrieves the maximum point of object's bounding box in object's local coordinate system. 21 | 22 | **NOTE**: There is 1 frame delay in this value. 23 | */ 24 | max: PointSignal; 25 | } 26 | -------------------------------------------------------------------------------- /scripts/compile/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "alone-together", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@types/node": { 8 | "version": "14.0.5", 9 | "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.5.tgz", 10 | "integrity": "sha512-90hiq6/VqtQgX8Sp0EzeIsv3r+ellbGj4URKj5j30tLlZvRUpnAe9YbYnjl3pJM93GyXU0tghHhvXHq+5rnCKA==" 11 | }, 12 | "typescript": { 13 | "version": "3.9.3", 14 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.3.tgz", 15 | "integrity": "sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ==" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel.LeftArm/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface LeftArm { 3 | /** 4 | * 5 | ``` 6 | (get) shoulder: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Gets the 2D shoulder position. 11 | 12 | */ 13 | shoulder: PixelPointSignal; 14 | /** 15 | * 16 | ``` 17 | (get) elbow: PixelPointSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Gets the 2D elbow position. 22 | 23 | */ 24 | elbow: PixelPointSignal; 25 | /** 26 | * 27 | ``` 28 | (get) wrist: PixelPointSignal 29 | (set) (Not Available) 30 | ``` 31 | 32 | Gets the 2D wrist position. 33 | 34 | */ 35 | wrist: PixelPointSignal; 36 | } 37 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel.RightArm/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface RightArm { 3 | /** 4 | * 5 | ``` 6 | (get) shoulder: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Gets the 2D shoulder position. 11 | 12 | */ 13 | shoulder: PixelPointSignal; 14 | /** 15 | * 16 | ``` 17 | (get) elbow: PixelPointSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Gets the 2D elbow position. 22 | 23 | */ 24 | elbow: PixelPointSignal; 25 | /** 26 | * 27 | ``` 28 | (get) wrist: PixelPointSignal 29 | (set) (Not Available) 30 | ``` 31 | 32 | Gets the 2D wrist position. 33 | 34 | */ 35 | wrist: PixelPointSignal; 36 | } 37 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/RecognitionTracking.Tracking/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | declare interface Tracking { 5 | /** 6 | * ``` 7 | (get) isTracking: BoolSignal 8 | (set) (Not Available) 9 | ``` 10 | */ 11 | isTracking: BoolSignal; 12 | /** 13 | * ``` 14 | (get) globalTransform: TransformSignal 15 | (set) (Not Available) 16 | ``` 17 | */ 18 | globalTransform: TransformSignal; 19 | /** 20 | * ``` 21 | (get) targetAspectRatio: ScalarSignal 22 | (set) (Not Available) 23 | ``` 24 | */ 25 | targetAspectRatio: ScalarSignal; 26 | } 27 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.DefaultMaterialTextures/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `DefaultMaterialTextures` enum describes the different texture slots for a default material. 3 | * @property SPECULAR The Specular Texture slot of the corresponding material. 4 | * @property REFLECTIVE The Reflective Texture slot of the corresponding material. 5 | * @property NORMAL The Normal Texture slot of the corresponding material. 6 | * @property EMISSIVE The Emissive Texture slot of the corresponding material. 7 | * @property DIFFUSE The Diffuse Texture slot of the corresponding material. 8 | */ 9 | declare interface DefaultMaterialTextures{ 10 | SPECULAR, 11 | REFLECTIVE, 12 | NORMAL, 13 | EMISSIVE, 14 | DIFFUSE, 15 | } 16 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Networking/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace NetworkingModule { 3 | /** 4 | * 5 | * fetch(url: String) : Promise 6 | * 7 | * Returns a promise for the result of the call. A `then()` clause attached to this takes a single argument; that argument is a callback function which takes a single argument, which is the result of the call. The result of the call is an object with two elements: A status property indicating the HTTP response status of the call, and `json()` function, which returns a promise for the dictionary containing the body of the response (which is expected to be JSON). 8 | */function fetch(url: String): Promise; 9 | 10 | } 11 | export = NetworkingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.ExternalTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface ExternalTexture { 4 | /** 5 | * ``` 6 | (get) url: StringValue 7 | (set) url: StringSignal 8 | ``` 9 | 10 | Specifies the URL of the texture to be downloaded. 11 | */ 12 | url: StringValue; 13 | /** 14 | * ``` 15 | (get) state: StringSignal 16 | (set) (Not Available) 17 | ``` 18 | 19 | Specifies a `StringSignal` representing the loading state of the external texture. The value of the signal is guaranteed to be a member of the `TexturesModule.ExternalTexture.State` enumeration. 20 | */ 21 | state: StringSignal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.BoolValue/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /*/// */ 3 | declare interface BoolValue { 4 | /** 5 | * ``` 6 | (get) lastValue: boolean 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a Boolean representing the last value of the object. 11 | */ 12 | lastValue: boolean; 13 | /** 14 | * 15 | * pinLastValue(): ConstBoolSignal 16 | * 17 | * 18 | * Returns a `ConstBoolSignal` containing a constant value which is the last value of the specified signal before `pinLastValue` is called. 19 | * ConstBoolSignal can be passed to a functions which accept bools. 20 | */pinLastValue(): boolean;//ConstBoolSignal; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking2D/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /// 4 | declare namespace FaceTracking2DModule { 5 | /** 6 | * ``` 7 | (get) count: ScalarSignal 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns a `ScalarSignal` representing the number of faces tracked in the scene. 12 | */ 13 | const count: ScalarSignal; 14 | /** 15 | * 16 | * face(index: number): Face2D 17 | * 18 | * 19 | * Returns the `Face2D` object from the detected face array at the specified index. 20 | */function face(index: number): Face2D 21 | ; 22 | 23 | } 24 | export = FaceTracking2DModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.StringValue/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface StringValue { 4 | /** 5 | * ``` 6 | (get) lastValue: string 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a string representing the last value of the object. 11 | */ 12 | lastValue: string; 13 | /** 14 | * 15 | * pinLastValue(): ConstStringSignal 16 | * 17 | * 18 | * Returns a `ConstStringSignal` containing a constant value which is the last value of the specified signal before `pinLastValue` is called. 19 | * ConstStringSignal can be passed to a functions which accept strings. 20 | */pinLastValue(): ConstStringSignal 21 | ; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.ScalarValue/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /*/// */ 3 | declare interface ScalarValue { 4 | /** 5 | * ``` 6 | (get) lastValue: number 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a number representing the last value of the object. 11 | */ 12 | lastValue: number; 13 | /** 14 | * 15 | * pinLastValue(): ConstScalarSignal 16 | * 17 | * 18 | * Returns a `ConstScalarSignal` containing a constant value which is the last value of the specified signal before `pinLastValue` is called. 19 | * ConstScalarSignal can be passed to a functions which accept numbers. 20 | */pinLastValue(): number; //ConstScalarSignal 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Location/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare namespace LocationModule { 4 | /** 5 | * ``` 6 | (get) hasValidLocation: BoolSignal 7 | (set) (Not Available) 8 | ``` 9 | */ 10 | const hasValidLocation: BoolSignal; 11 | /** 12 | * ``` 13 | (get) coordinate: CoordinateSignal 14 | (set) (Not Available) 15 | ``` 16 | */ 17 | const coordinate: CoordinateSignal; 18 | } 19 | export = LocationModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/IrisTracking/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare namespace IrisTrackingModule { 4 | /** 5 | * 6 | * leftEyeball(face: Face): Eyeball 7 | * 8 | * 9 | * Returns an `Eyeball` object for the given face, containing information about the 3D position of the left eyeball. 10 | */function leftEyeball(face: Face): Eyeball 11 | ; 12 | 13 | /** 14 | * 15 | * rightEyeball(face: Face): Eyeball 16 | * 17 | * 18 | * Returns an `Eyeball` object for the given face, containing information about the 3D position of the right eyeball. 19 | */function rightEyeball(face: Face): Eyeball 20 | ; 21 | 22 | } 23 | export = IrisTrackingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PlatformEvents/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare namespace PlatformEventsModule { 4 | /** 5 | * ``` 6 | (get) allEvents: EventSource 7 | (set) (Not Available) 8 | ``` 9 | 10 | Returns an `EventSource` that emits an event for every app/platform-specific event received. 11 | The event contains a JSON object with the data associated with the event. 12 | */ 13 | const allEvents: EventSource; 14 | /** 15 | * 16 | * send(event: Object): void 17 | * 18 | * 19 | * Send a given event in a form of any Object to the platform-specific implementation. 20 | */function send(event: Object): void; 21 | 22 | } 23 | export = PlatformEventsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.FocalPlane/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface FocalPlane { 3 | /** 4 | * 5 | ``` 6 | (get) width: ScalarSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies the width of the focal plane. Measured in 3D units. 11 | 12 | */ 13 | width: ScalarSignal; 14 | /** 15 | * 16 | ``` 17 | (get) height: ScalarSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Specifies the height of the focal plane. Measured in 3D units. 22 | 23 | */ 24 | height: ScalarSignal; 25 | /** 26 | * 27 | ``` 28 | (get) distance: ScalarSignal 29 | (set) (Not Available) 30 | ``` 31 | 32 | Specifies the distance between focal plane and camera. Measured in 3D units. 33 | 34 | */ 35 | distance: ScalarSignal; 36 | } 37 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/HandTracking/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /// 4 | declare namespace HandTrackingModule { 5 | /** 6 | * ``` 7 | (get) count: ScalarSignal 8 | (set) (Not Available) 9 | ``` 10 | 11 | Specifies a `ScalarSignal` indicating the number of detected hands. 12 | */ 13 | const count: ScalarSignal; 14 | /** 15 | * 16 | * hand(index: Number): Hand 17 | * 18 | * 19 | * Returns the `Hand` indicated by index. 20 | */function hand(index: Number): Hand 21 | ; 22 | 23 | } 24 | export = HandTrackingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/BodyTracking.Body/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | declare interface Body { 5 | /** 6 | * ``` 7 | (get) boundingBox: BoundingBoxSignal 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns a `BoundingBoxSignal` object. 12 | */ 13 | boundingBox: BoundingBoxSignal; 14 | /** 15 | * ``` 16 | (get) id: StringSignal 17 | (set) (Not Available) 18 | ``` 19 | 20 | Returns a `StringSignal` object. 21 | */ 22 | id: StringSignal; 23 | /** 24 | * ``` 25 | (get) isTracking: BoolSignal 26 | (set) (Not Available) 27 | ``` 28 | 29 | Returns a `BoolSignal` object. 30 | */ 31 | isTracking: BoolSignal; 32 | } 33 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Persistence/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare namespace PersistenceModule { 4 | /** 5 | * ``` 6 | (get) userScope: StorageScope 7 | ``` 8 | 9 | Gets an instance of StorageScope corresponding to the user scope. 10 | */ 11 | const userScope: StorageScope; 12 | /** 13 | * ``` 14 | (get) sharedScope: Object 15 | ``` 16 | 17 | Gets an object corresponding to the shared scope. 18 | */ 19 | const sharedScope: Object; 20 | /** 21 | * ``` 22 | (get) captureScope: Object 23 | ``` 24 | 25 | Gets an object corresponding to the capture scope. 26 | */ 27 | const captureScope: Object; 28 | } 29 | export = PersistenceModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.CanvasTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface CanvasTexture { 3 | /** 4 | * 5 | * addPath(startProgress: ScalarSignal, endProgress: ScalarSignal, xSampler: ScalarSampler, ySampler: ScalarSampler, widthSampler: ScalarSampler, colorSampler: ColorSampler): void 6 | * 7 | * 8 | * Adds a path based on the specified samplers. 9 | */addPath(startProgress: ScalarSignal | number, endProgress: ScalarSignal | number, xSampler: ScalarSampler, ySampler: ScalarSampler, widthSampler: ScalarSampler, colorSampler: ColorSampler): void 10 | ; 11 | 12 | /** 13 | * 14 | * clearPaths(): void 15 | * 16 | * 17 | * Deletes all paths. 18 | */clearPaths(): void 19 | ; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.BlendShapesMesh/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | 4 | declare interface BlendShapesMesh { 5 | /** 6 | * ``` 7 | (get) count: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Retrieves the number of blend shapes 12 | */ 13 | count: number; 14 | /** 15 | * 16 | * getAtIndex(index: number): BlendShape 17 | * 18 | * 19 | * Returns the blendshape at the given index, with 0 being the first blendshape. 20 | */getAtIndex(index: number): BlendShape 21 | ; 22 | 23 | /** 24 | * 25 | * getByName(name: String): BlendShape 26 | * 27 | * 28 | * Returns the blendshape with the given name. 29 | */getByName(name: String): BlendShape 30 | ; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/ViperDebug/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare namespace ViperDebugModule { 3 | /** 4 | * ``` 5 | (get) debugString: StringSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Gets a debug string piped through from Viper. 10 | */ 11 | const debugString: StringSignal; 12 | /** 13 | * 14 | * setViperOnlyMode() : void 15 | * 16 | * 17 | * Makes underlying camera + anchor tracking algorithms run in viper only mode. 18 | */function setViperOnlyMode() : void 19 | ; 20 | 21 | /** 22 | * 23 | * clearViperOnlyMode() : void 24 | * 25 | * 26 | * Removes running in viper only mode. (Aka, runs the normal gyro+regiontracking+SLAM) 27 | */function clearViperOnlyMode() : void 28 | ; 29 | 30 | } 31 | export = ViperDebugModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/NativeUI.Slider/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface Slider { 4 | /** 5 | * ``` 6 | (set) visible: BoolSignal 7 | ``` 8 | Will instruct slider to be visible or not visible, according to passed boolean value. 9 | */ 10 | visible: BoolSignal; 11 | /** 12 | * ``` 13 | (get) value: ScalarSignal 14 | (set) value: ScalarSignal 15 | ``` 16 | Will instruct slider to change its value. 17 | */ 18 | value: ScalarSignal; 19 | } 20 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Diagnostics.TypeSystemMetadata/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare interface TypeSystemMetadata { 3 | /** 4 | * 5 | * getModuleNames(): Promise> 6 | * 7 | * 8 | * Returns a promise that is resolved with an array of names of all the scripting modules that can be loaded through a `require` call. 9 | * Note: Available modules are based on the list of enabled capabilities. 10 | */getModuleNames(): Promise> 11 | ; 12 | 13 | /** 14 | * 15 | * getTypeDescriptions(): Promise 16 | * 17 | * 18 | * Returns a promise that is resolved with the description of all of the types that can be used within effect. 19 | * Note: The type descriptions are based on the list of enabled capabilities. 20 | */getTypeDescriptions(): Promise 21 | ; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.BlendShape/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare interface BlendShape { 4 | /** 5 | * ``` 6 | (get) weight: ScalarValue 7 | (set) weight: ScalarSignal 8 | ``` 9 | 10 | Specifies the weight of the blend shape. 11 | */ 12 | weight: ScalarValue; 13 | /** 14 | * ``` 15 | (get) prefabName: string 16 | (set) (Not Available) 17 | ``` 18 | 19 | Specifies the name of prefab for BlendShape. This is the unique identifier of the prefab. 20 | */ 21 | prefabName: string; 22 | /** 23 | * ``` 24 | (get) name: string 25 | (set) (Not Available) 26 | ``` 27 | 28 | Retrieves the name of the BlendShape. 29 | */ 30 | name: string; 31 | } 32 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.OutputVisibility/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface OutputVisibility { 3 | /** 4 | * ``` 5 | (get) forPreviewOutput: BoolValue 6 | (set) forPreviewOutput: BoolSignal 7 | ``` 8 | 9 | Specifies whether the object is visible on the preview output. 10 | */ 11 | forPreviewOutput: BoolValue; 12 | /** 13 | * ``` 14 | (get) forCaptureOutput: BoolValue 15 | (set) forCaptureOutput: BoolSignal 16 | ``` 17 | 18 | Specifies whether the object is visible on the capture output. 19 | */ 20 | forCaptureOutput: BoolValue; 21 | /** 22 | * ``` 23 | (get) forOverlayOutput: BoolValue 24 | (set) forOverlayOutput: BoolSignal 25 | ``` 26 | 27 | Specifies whether the object is visible on the overlay output. 28 | */ 29 | forOverlayOutput: BoolValue; 30 | } 31 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.ExternalStreamTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface ExternalStreamTexture { 4 | /** 5 | * ``` 6 | (get) streamIdentifier: string 7 | (set) streamIdentifier: string 8 | ``` 9 | 10 | Specifies a `StringValue` representing the identifier of stream (used by External Stream Texture Factory to map stream with texture model). 11 | */ 12 | streamIdentifier: string; 13 | /** 14 | * ``` 15 | (get) streamId: StringSignal 16 | (set) streamId: StringSignal 17 | ``` 18 | 19 | Specifies a `StringSignal` representing the identifier of stream (used by External Stream Texture Factory to map stream with texture model). 20 | */ 21 | streamId: StringSignal; 22 | } 23 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Persistence.StorageScope/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | declare interface StorageScope { 5 | /** 6 | * 7 | * get(key: String): Promise 8 | * 9 | * 10 | * Gets the value with the specified key. 11 | * Returns a `Promise` which will be fulfilled with a JavaScript object or an error. 12 | */get(key: String): Promise 13 | ; 14 | 15 | /** 16 | * 17 | * set(key: String, value: Object): Promise<> 18 | * 19 | * Sets the value for the key. 20 | * Returns a `JS Promise` or an error. 21 | */set(key: String, value: Object): Promise 22 | ; 23 | 24 | /** 25 | * 26 | * remove(key: String): Promise<> 27 | * 28 | * 29 | * Removes the key. 30 | * Returns a `Promise` that resolves to nothing or an error. 31 | */remove(key: String): Promise 32 | ; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/RecognitionTracking.Recognition/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | /// 4 | /// 5 | declare interface Recognition { 6 | /** 7 | * ``` 8 | (get) metadata: string 9 | (set) (Not Available) 10 | ``` 11 | */ 12 | metadata: string; 13 | /** 14 | * ``` 15 | (get) hasTracking: boolean 16 | (set) (Not Available) 17 | ``` 18 | */ 19 | hasTracking: boolean; 20 | /** 21 | * ``` 22 | (get) tracking: Tracking 23 | (set) (Not Available) 24 | ``` 25 | */ 26 | tracking: Tracking; 27 | /** 28 | * ``` 29 | (get) onLost: EventSource 30 | (set) (Not Available) 31 | ``` 32 | */ 33 | onLost: EventSource; 34 | } 35 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Units.WorldUnit/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `WorldUnit` enum describes the unit of measurement used in world-space. 3 | * @property INCH Indicates that the world-space is described in millimeters. 4 | * @property FOOT Indicates that the world-space is described in meters. 5 | * @property LEGACY Indicates that the world-space is described in yards. 6 | * @property YARD Indicates that the world-space is described in legacy units. 7 | * @property CENTIMETER Indicates that the world-space is described in feet. 8 | * @property MILLIMETER Indicates that the world-space is described in inches. 9 | * @property METER Indicates that the world-space is described in centimeters. 10 | */ 11 | declare interface WorldUnit{ 12 | INCH, 13 | FOOT, 14 | LEGACY, 15 | YARD, 16 | CENTIMETER, 17 | MILLIMETER, 18 | METER, 19 | } 20 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking.Eyebrow/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Eyebrow { 3 | /** 4 | * ``` 5 | (get) insideEnd: PointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a `PointSignal` representing the inside end of the eyebrow in the face local coordinate system. 10 | */ 11 | insideEnd: PointSignal; 12 | /** 13 | * ``` 14 | (get) outsideEnd: PointSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Specifies a `PointSignal` representing the outside end of the eyebrow in the face local coordinate system. 19 | */ 20 | outsideEnd: PointSignal; 21 | /** 22 | * ``` 23 | (get) top: PointSignal 24 | (set) (Not Available) 25 | ``` 26 | 27 | Specifies a `PointSignal` representing the top of the eyebrow in the face local coordinate system. 28 | */ 29 | top: PointSignal; 30 | } 31 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.CameraVisibility/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface CameraVisibility { 3 | /** 4 | * ``` 5 | (get) forUnspecifiedCamera: BoolValue 6 | (set) forUnspecifiedCamera: BoolSignal 7 | ``` 8 | 9 | Specifies whether the object is visible when the active camera couldn't be specified. 10 | */ 11 | forUnspecifiedCamera: BoolValue; 12 | /** 13 | * ``` 14 | (get) forFrontCamera: BoolValue 15 | (set) forFrontCamera: BoolSignal 16 | ``` 17 | 18 | Specifies whether the object is visible when the front camera is the active one. 19 | */ 20 | forFrontCamera: BoolValue; 21 | /** 22 | * ``` 23 | (get) forBackCamera: BoolValue 24 | (set) forBackCamera: BoolSignal 25 | ``` 26 | 27 | Specifies whether the object is visible when the back camera is the active one. 28 | */ 29 | forBackCamera: BoolValue; 30 | } 31 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.SignalRecorder/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface SignalRecorder { 3 | /** 4 | * ``` 5 | (get) durationMs: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Returns duration of SignalRecorder recording so far, in milliseconds. 10 | 11 | **NOTE**: There may be up to a 2 frame delay in this value. 12 | */ 13 | durationMs: ScalarSignal; 14 | /** 15 | * ``` 16 | (get) recordCount: ScalarSignal 17 | (set) (Not Available) 18 | ``` 19 | 20 | Returns number of records taken in this SignalRecorder so far. 21 | 22 | **NOTE**: There may be up to a 2 frame delay in this value. 23 | */ 24 | recordCount: ScalarSignal; 25 | /** 26 | * 27 | * stop() : SignalRecord 28 | * 29 | * 30 | * Stops this Signal Recorder and returns a Signal Record. 31 | */stop() : SignalRecord 32 | ; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.InsetsSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface InsetsSignal { 3 | /** 4 | * ``` 5 | (get) top: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Represents the top component of the Insets. 10 | */ 11 | top: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) left: ScalarSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Represents the left component of the Insets. 19 | */ 20 | left: ScalarSignal; 21 | /** 22 | * ``` 23 | (get) bottom: ScalarSignal 24 | (set) (Not Available) 25 | ``` 26 | 27 | Represents the bottom component of the Insets. 28 | */ 29 | bottom: ScalarSignal; 30 | /** 31 | * ``` 32 | (get) right: ScalarSignal 33 | (set) (Not Available) 34 | ``` 35 | 36 | Represents the right component of the Insets. 37 | */ 38 | right: ScalarSignal; 39 | } 40 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.RgbaSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface RgbaSignal { 3 | /** 4 | * ``` 5 | (get) red: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Returns the value of the red channel between 0 and 1.0. 10 | */ 11 | red: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) green: ScalarSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Returns the value of the green channel between 0 and 1.0. 19 | */ 20 | green: ScalarSignal; 21 | /** 22 | * ``` 23 | (get) blue: ScalarSignal 24 | (set) (Not Available) 25 | ``` 26 | 27 | Returns the value of the blue channel between 0 and 1.0. 28 | */ 29 | blue: ScalarSignal; 30 | /** 31 | * ``` 32 | (get) alpha: ScalarSignal 33 | (set) (Not Available) 34 | ``` 35 | 36 | Returns the value of the alpha channel between 0 and 1.0. 37 | */ 38 | alpha: ScalarSignal; 39 | } 40 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.AudioTransformWrapper/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | /// 4 | declare interface AudioTransformWrapper { 5 | /** 6 | * ``` 7 | (get) effectName: string 8 | (set) (Not Available) 9 | ``` 10 | */ 11 | effectName: string; 12 | /** 13 | * 14 | * transformParametersCount(): number 15 | * 16 | */transformParametersCount(): number 17 | ; 18 | 19 | /** 20 | * 21 | * transformParameterAtIndex(index: number): AudioTransformParameterWrapper 22 | * 23 | */transformParameterAtIndex(index: number): AudioTransformParameterWrapper 24 | ; 25 | 26 | /** 27 | * 28 | * transformParameterByName(parameterName: string): AudioTransformParameterWrapper 29 | * 30 | */transformParameterByName(parameterName: string): AudioTransformParameterWrapper 31 | ; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.BuiltinUniform/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `BuiltinUniform` enum describes the bultin shader uniforms. 3 | * @property INV_V_MATRIX Inverse View Matrix uniform. 4 | * @property INV_M_MATRIX Inverse Model Matrix uniform. 5 | * @property NORMAL_MATRIX Normal Matrix uniform. 6 | * @property P_MATRIX Projection Matrix uniform. 7 | * @property M_MATRIX Model Matrix uniform. 8 | * @property INV_P_MATRIX Inverse Projection Matrix uniform. 9 | * @property VP_MATRIX View Projection Matrix uniform. 10 | * @property V_MATRIX View Matrix uniform. 11 | * @property MV_MATRIX Model View Matrix uniform. 12 | * @property MVP_MATRIX Model View Projection Matrix uniform. 13 | */ 14 | declare interface BuiltinUniform{ 15 | INV_V_MATRIX, 16 | INV_M_MATRIX, 17 | NORMAL_MATRIX, 18 | P_MATRIX, 19 | M_MATRIX, 20 | INV_P_MATRIX, 21 | VP_MATRIX, 22 | V_MATRIX, 23 | MV_MATRIX, 24 | MVP_MATRIX, 25 | } 26 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.ScalingOption/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `ScalingOption` enum describes how an element is scaled. 3 | * @property IGNORE Indicates that no scaling is applied to the element. 4 | * @property FIT_HEIGHT Indicates that the resource is scaled proportionately to match the height of the container. 5 | * @property FIT_WIDTH Indicates that the resource is scaled proportionately to match the width of the container. 6 | * @property STRETCH Indicates that the resource is stretched in the height and width dimensions to fill the container. 7 | * @property FILL Indicates that the resource is is tiled to fill the container. 8 | * @property FIT Indicates that the resource is scaled proportionately such that the larger dimension, height or width, matches the size of the container. 9 | */ 10 | declare interface ScalingOption{ 11 | IGNORE, 12 | FIT_HEIGHT, 13 | FIT_WIDTH, 14 | STRETCH, 15 | FILL, 16 | FIT, 17 | } 18 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.SubTexture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface SubTexture { 3 | /** 4 | * ``` 5 | (get) minU: ScalarSignal 6 | (set) minU: ScalarSignal 7 | ``` 8 | 9 | Specifies the position of the left boundary in UV texture coordinates. 10 | */ 11 | minU: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) minV: ScalarSignal 15 | (set) minV: ScalarSignal 16 | ``` 17 | 18 | Specifies the position of the bottom boundary in UV texture coordinates. 19 | */ 20 | minV: ScalarSignal; 21 | /** 22 | * ``` 23 | (get) sizeU: ScalarSignal 24 | (set) sizeU: ScalarSignal 25 | ``` 26 | 27 | Specifies the horizontal span in UV texture coordinates. 28 | */ 29 | sizeU: ScalarSignal; 30 | /** 31 | * ``` 32 | (get) sizeV: ScalarSignal 33 | (set) sizeV: ScalarSignal 34 | ``` 35 | 36 | Specifies the vertical span in UV texture coordinates. 37 | */ 38 | sizeV: ScalarSignal; 39 | } 40 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.Gesture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface Gesture { 4 | /** 5 | * ``` 6 | (get) type: TouchGesturesModule.Gesture.Type 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a [`TouchGesturesModule.Gesture.Type`](/docs/camera-effects/reference/type_enum) enum value representing the type of gesture detected. 11 | 12 | To use this property, enable pre-release APIs in your project manifest. 13 | */ 14 | type: Gesture; 15 | /** 16 | * ``` 17 | (get) state: StringSignal 18 | (set) (Not Available) 19 | ``` 20 | Specifies a [`StringSignal`](/docs/camera-effects/reference/reactive_module/stringsignal_class) representing the current gesture state. The value is a member of the [`TouchGesturesModule.Gesture.State`](/docs/camera-effects/reference/gesture_state_enum) enum. 21 | */ 22 | state: StringSignal; 23 | } 24 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/EffectLinking.RequestedEffect/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface RequestedEffect { 4 | /** 5 | * ``` 6 | (get) effectID: string 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies the effectID associated with this RequestedEffect. 11 | */ 12 | effectID: string; 13 | /** 14 | * ``` 15 | (get) onApplyFailure: EventSource 16 | (set) (Not Available) 17 | ``` 18 | 19 | Returns an `EventSource` to which you may subscribe. The event fires when a request to apply an effect fails. The event contains a JSON object in the format: 20 | */ 21 | onApplyFailure: EventSource; 22 | /** 23 | * 24 | * apply(): void 25 | * 26 | * 27 | * Attempts to apply the effect (i.e. load) that this RequestedEffect represents. 28 | */apply(): void 29 | ; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PersonSegmentation/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare namespace PersonSegmentationModule { 4 | /** 5 | * ``` 6 | (get) foregroundPercent: ScalarSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Represents the percentage of screen space occupied by a person/people. 11 | */ 12 | const foregroundPercent: ScalarSignal; 13 | /** 14 | * ``` 15 | (get) hasForeground: BoolSignal 16 | (set) (Not Available) 17 | ``` 18 | 19 | Represents whether there is anybody in the scene (TRUE/FALSE), based on whether the percentage of foreground is larger than a threshold. 20 | */ 21 | const hasForeground: BoolSignal; 22 | /** 23 | * ``` 24 | (get) (Not Available) 25 | (set) isEnabled: BoolSignal 26 | ``` 27 | 28 | Specifies whether the segmentation should be enabled. Default value is 'true'. 29 | */ 30 | const isEnabled: BoolSignal; 31 | } 32 | export = PersonSegmentationModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.PinchGesture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface PinchGesture { 4 | /** 5 | * ``` 6 | (get) location: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | Specifies a [`PixelPointSignal`](/docs/camera-effects/reference/reactive_module/pixelpointsignal_class) that represents the current center point between two touches of the pinch gesture in screen coordinates. 10 | 11 | **Note**: The location is always specified in the screen coordinates, even if the event was emitted as a result of pinching on a specific object. 12 | */ 13 | location: PixelPointSignal; 14 | /** 15 | * ``` 16 | (get) scale: ScalarSignal 17 | (set) (Not Available) 18 | ``` 19 | 20 | Specifies a [`ScalarSignal`](/docs/camera-effects/reference/reactive_module/scalarsignal_class) representing the scale factor indicated by the gesture. 21 | */ 22 | scale: ScalarSignal; 23 | } 24 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.RotateGesture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface RotateGesture { 4 | /** 5 | * ``` 6 | (get) location: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a [`PixelPointSignal`](/docs/camera-effects/reference/reactive_module/pixelpointsignal_class) object that represents the center point between two touches in screen coordinates. 11 | 12 | **Note**: The location is always specified in the screen coordinates, even if the event was emitted as a result of rotating on a specific object. 13 | */ 14 | location: PixelPointSignal; 15 | /** 16 | * ``` 17 | (get) rotation: ScalarSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Specifies a [`ScalarSignal`](/docs/camera-effects/reference/reactive_module/scalarsignal_class) representing the rotation indicated by the gesture, in radians. 22 | */ 23 | rotation: ScalarSignal; 24 | } 25 | -------------------------------------------------------------------------------- /scripts/Utility.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | exports.__esModule = true; 3 | exports.playAudioOnce = exports.EventSourceToPromise = void 0; 4 | var Audio = require('Audio'); 5 | var Time = require('Time'); 6 | var EventSourceToPromise = function (eventSource) { 7 | return new Promise(function (resolve) { 8 | eventSource.subscribe(function (event) { 9 | resolve(event); 10 | }); 11 | }); 12 | }; 13 | exports.EventSourceToPromise = EventSourceToPromise; 14 | var playAudioOnce = function (controllerName, durationMilliseconds) { 15 | var controller = Audio.getPlaybackController(controllerName); 16 | controller.reset(); 17 | controller.setLooping(false); 18 | controller.setPlaying(true); 19 | return new Promise(function (resolve) { 20 | // Why don't we have an onCompleted?!?!? 21 | Time.setTimeout(function () { 22 | controller.setPlaying(false); 23 | resolve(controller); 24 | }, durationMilliseconds); 25 | }); 26 | }; 27 | exports.playAudioOnce = playAudioOnce; 28 | -------------------------------------------------------------------------------- /scripts/compile/Utility.ts: -------------------------------------------------------------------------------- 1 | import { Diagnostics } from "./SelectLetter"; 2 | 3 | const Audio = require('Audio'); 4 | const Time = require('Time') 5 | 6 | const EventSourceToPromise = (eventSource: EventSource): Promise => { 7 | return new Promise((resolve) => { 8 | eventSource.subscribe((event) => { 9 | resolve(event) 10 | }) 11 | }) 12 | } 13 | 14 | const playAudioOnce = (controllerName: string, durationMilliseconds: number): Promise => { 15 | const controller = 16 | Audio.getPlaybackController(controllerName); 17 | controller.reset(); 18 | controller.setLooping(false); 19 | controller.setPlaying(true); 20 | 21 | return new Promise((resolve) => { 22 | // Why don't we have an onCompleted?!?!? 23 | Time.setTimeout(() => { 24 | controller.setPlaying(false); 25 | 26 | resolve(controller) 27 | }, durationMilliseconds) 28 | }) 29 | } 30 | 31 | export { 32 | EventSourceToPromise, 33 | playAudioOnce 34 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /// 4 | declare namespace FaceTrackingModule { 5 | /** 6 | * ``` 7 | (get) count: ScalarSignal 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns a `ScalarSignal` representing the number of faces tracked in the scene. 12 | */ 13 | const count: ScalarSignal; 14 | /** 15 | * ``` 16 | (get) (Not Available) 17 | (set) isEnabled: void 18 | ``` 19 | 20 | Specifies a `BoolSignal` that takes the value of `true` whenever the Face Tracker should be run, and the value of `false` otherwise. Default value is `true`. 21 | */ 22 | const isEnabled: void; 23 | /** 24 | * 25 | * face(index: number): Face 26 | * 27 | * 28 | * Returns the `Face` object from the detected face array at the specified index. 29 | */function face(index: number): Face 30 | ; 31 | 32 | } 33 | export = FaceTrackingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Prefabs.Prefab/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | /// 4 | declare interface Prefab { 5 | /** 6 | * ``` 7 | (get) name: string 8 | (set) (Not Available) 9 | ``` 10 | 11 | Specifies the unique prefab name. The prefab name can be retrieved from within mesh. 12 | 13 | **See Also**: `PrefabsModule.get`. 14 | */ 15 | name: string; 16 | /** 17 | * ``` 18 | (get) url: StringValue 19 | (set) url: StringSignal 20 | ``` 21 | 22 | Specifies the URL of the prefab to be downloaded. 23 | */ 24 | url: StringValue; 25 | /** 26 | * ``` 27 | (get) state: Signal 28 | (set) (Not Available) 29 | ``` 30 | 31 | Specifies a `StringSignal` representing the loading state of the external prefab. The value of the signal is guaranteed to be a member of the `ReactivePrefabsModule.State` enumeration. 32 | */ 33 | state: State; 34 | } 35 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.SignalRecord/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | declare interface SignalRecord { 4 | /** 5 | * ``` 6 | (get) durationMs: number 7 | (set) (Not Available) 8 | ``` 9 | 10 | Returns duration of SignalRecord recording in milliseconds. 11 | */ 12 | durationMs: number; 13 | /** 14 | * ``` 15 | (get) valuesString: string 16 | (set) (Not available) 17 | ``` 18 | 19 | Returns the array of values (as doubles to 4 decimal precision) of this SignalRecord as a string 20 | */ 21 | valuesString: string; 22 | /** 23 | * ``` 24 | (get) recordCount: number 25 | (set) (Not Available) 26 | ``` 27 | 28 | Returns number of records taken in this SignalRecord. 29 | */ 30 | recordCount: number; 31 | /** 32 | * ``` 33 | (get) timestampsString: string 34 | (set) (Not available) 35 | ``` 36 | 37 | Returns the array of timestamps (as integer milliseconds) of this SignalRecord as a string 38 | */ 39 | timestampsString: string; 40 | } 41 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/IrisTracking.Eyeball/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface Eyeball { 4 | /** 5 | * ``` 6 | (get) center: PointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies the 3D position of the center point of the eyeball in the face local coordinate system.\n\n**See Also**: `Face.cameraTransform` to convert the point to the coordinate system of the camera. 11 | */ 12 | center: PointSignal; 13 | /** 14 | * ``` 15 | (get) iris: PointSignal 16 | (set) (Not Available) 17 | ``` 18 | 19 | Specifies the 3D position of the center point of the iris in the face local coordinate system.\n\n**See Also**: `Face.cameraTransform` to convert the point to the coordinate system of the camera. 20 | */ 21 | iris: PointSignal; 22 | /** 23 | * ``` 24 | (get) rotation: RotationSignal 25 | (set) (Not Available) 26 | ``` 27 | 28 | Specifies the rotation of the eyeball around its center. 29 | */ 30 | rotation: RotationSignal; 31 | } 32 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.ParticleTypeDescriptions/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface ParticleTypeDescriptions { 4 | /** 5 | * 6 | ``` 7 | (get) count: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Retrieves the number of existing Particle Type Descriptions. 12 | 13 | */ 14 | count: number; 15 | /** 16 | * 17 | * get(index: number): ParticleTypeDescription 18 | * 19 | * 20 | * Retrieves the particle type description at that index. The particle type descriptions specify which frames of the sprite sheet the particle should use. From scripting, the frames that the ParticleTypeDescription is using cannot be changed, but the user can change their percentages, i.e if there are 2 particle types, with percentages 0.5 each, the user can change from scripting to make one particle type more dense than the other by changing their fractions, for example to 0.3 and 0.7 respectively. 21 | */get(index: number): ParticleTypeDescription 22 | ; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Identity/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace IdentityModule { 3 | /** 4 | * 5 | * getAccessToken(): Promise 6 | * 7 | * 8 | * 9 | * Returns a `JS Promise` which will be fulfilled with Access Token `String` object or an error. 10 | */function getAccessToken(): Promise; 11 | 12 | /** 13 | * 14 | * getEmailAddress(): Promise 15 | * 16 | * 17 | * 18 | * Returns a `JS Promise` which will be fulfilled with user Email Address `String` object or an error. 19 | */function getEmailAddress(): Promise; 20 | 21 | /** 22 | * 23 | * getAppScopedID(): Promise 24 | * 25 | * 26 | * 27 | * Returns a `JS Promise` which will be fulfilled with App Scope ID `String` object or an error. 28 | */function getAppScopedID(): Promise; 29 | 30 | /** 31 | * 32 | * getFullName(): Promise 33 | * 34 | * 35 | * 36 | * Returns a `JS Promise` which will be fulfilled with user Full Name `String` object or an error. 37 | */function getFullName(): Promise; 38 | 39 | } 40 | export = IdentityModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.RetouchingMaterial/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface RetouchingMaterial { 4 | /** 5 | * ``` 6 | (get) teethWhiteningFactor: ScalarSignal 7 | (set) teethWhiteningFactor: ScalarSignal 8 | ``` 9 | 10 | Specifies the simulated teeth whitening factor. 11 | */ 12 | teethWhiteningFactor: ScalarSignal; 13 | /** 14 | * ``` 15 | (get) eyeBrighteningFactor: ScalarSignal 16 | (set) eyeBrighteningFactor: ScalarSignal 17 | ``` 18 | 19 | Specifies the simulated eye whitening factor. 20 | */ 21 | eyeBrighteningFactor: ScalarSignal; 22 | /** 23 | * ``` 24 | (get) skinSmoothingFactor: ScalarSignal 25 | (set) skinSmoothingFactor: ScalarSignal 26 | ``` 27 | 28 | Specifies the simulated skin smoothness factor. 29 | */ 30 | skinSmoothingFactor: ScalarSignal; 31 | /** 32 | * ``` 33 | (get) fullScreen: BoolSignal 34 | (set) fullScreen: BoolSignal 35 | ``` 36 | 37 | Specifies whether effect should be full-screen. 38 | */ 39 | fullScreen: BoolSignal; 40 | } 41 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.SpotLightSource/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface SpotLightSource { 4 | /** 5 | * ``` 6 | (get) (Not Available) 7 | (set) color: ColorSignal 8 | ``` 9 | 10 | Specifies the color of this light source. 11 | */ 12 | color: ColorSignal; 13 | /** 14 | * ``` 15 | (get) intensity: ScalarSignal 16 | (set) intensity: ScalarSignal 17 | ``` 18 | 19 | Specifies the intensity of this light source, usually between 0.0 and 1.0. 20 | */ 21 | intensity: ScalarSignal; 22 | /** 23 | * ``` 24 | (get) angleInner: ScalarSignal 25 | (set) angleInner: ScalarSignal 26 | ``` 27 | 28 | Specifies the inner angle of the spotlight cone, everything inside is fully illuminated. In radians. 29 | */ 30 | angleInner: ScalarSignal; 31 | /** 32 | * ``` 33 | (get) angleOuter: ScalarSignal 34 | (set) angleOuter: ScalarSignal 35 | ``` 36 | 37 | Specifies the outer angle of the spotlight cone, everything outside is not illuminated. In radians. 38 | */ 39 | angleOuter: ScalarSignal; 40 | } 41 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TouchGestures.PanGesture/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface PanGesture { 3 | /** 4 | * ``` 5 | (get) location: PixelPointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a [`PixelPointSignal`](/docs/camera-effects/reference/reactive_module/pixelpointsignal_class) that represents the location of the gesture in screen coordinates. 10 | 11 | **Note**: The location is always specified in the screen coordinates, even if the event was emitted as a result of panning on a specific object. 12 | */ 13 | location: PixelPointSignal; 14 | /** 15 | * ``` 16 | (get) translation: PixelPointSignal 17 | (set) (Not Available) 18 | ``` 19 | 20 | Specifies a [`PixelPointSignal`](/docs/camera-effects/reference/reactive_module/pixelpointsignal_class) indicating the position of the gesture, in screen coordinates, relative to the start point. 21 | 22 | **Note**: The translation is always specified in the screen coordinates, even if the event was emitted as a result of panning on a specific object. 23 | */ 24 | translation: PixelPointSignal; 25 | } 26 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking.Nose/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Nose { 3 | /** 4 | * ``` 5 | (get) bridge: PointSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a `PointSignal` representing the location of the bridge of the nose in the face local coordinate system. 10 | */ 11 | bridge: PointSignal; 12 | /** 13 | * ``` 14 | (get) leftNostril: PointSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Specifies a `PointSignal` representing the location of the left nostril in the face local coordinate system. 19 | */ 20 | leftNostril: PointSignal; 21 | /** 22 | * ``` 23 | (get) rightNostril: PointSignal 24 | (set) (Not Available) 25 | ``` 26 | 27 | Specifies a `PointSignal` representing the location of the right nostril in the face local coordinate system. 28 | */ 29 | rightNostril: PointSignal; 30 | /** 31 | * ``` 32 | (get) tip: PointSignal 33 | (set) (Not Available) 34 | ``` 35 | 36 | Specifies a `PointSignal` representing the location of the tip of the nose in the face local coordinate system. 37 | */ 38 | tip: PointSignal; 39 | } 40 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.BlendMode/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `BlendMode` enum describes how material is blended. 3 | * @property ASSOCIATIVE_ALPHA Same as alpha blend mode, but for source with RGB channels of each pixel premultiplied by its alpha. 4 | * @property ALPHA Linear interpolation between the pixels of the source and destination as specified by the alpha values of the source. 5 | * @property SCREEN Values of each pixels in the source and destination are inverted, multiplied, and then inverted again. 6 | * @property MULTIPLY Multiplies the RGB channels of each pixel from the source with the values of the corresponding pixel from the destination. 7 | * @property REPLACE The non-transparent pixels of the source replace corresponding pixels of the destination. 8 | * @property SUBTRACT Subtracts pixel values of the source from the destination. In case of negative values, black is displayed. 9 | * @property ADD Adds pixel values of the source to the destination. 10 | */ 11 | declare interface BlendMode{ 12 | ASSOCIATIVE_ALPHA, 13 | ALPHA, 14 | SCREEN, 15 | MULTIPLY, 16 | REPLACE, 17 | SUBTRACT, 18 | ADD, 19 | } 20 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Analytics/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | 4 | declare namespace AnalyticsModule { 5 | /** 6 | * ``` 7 | (get) cameraProductName: string 8 | (set) (Not Available) 9 | ``` 10 | 11 | Specifies the current context camera product name used for analytics. 12 | 13 | Note: This can return empty string in cases where current product name couldn't be determined. 14 | */ 15 | const cameraProductName: string; 16 | /** 17 | * ``` 18 | (get) productName: StringSignal 19 | (set) (Not Available) 20 | ``` 21 | 22 | Specifies the current context camera product name used for analytics. 23 | 24 | Note: This can return empty string signal in cases where current product name couldn't be determined. 25 | */ 26 | const productName: StringSignal; 27 | /** 28 | * 29 | * logEvent(eventName: string, extras: Object): void 30 | * 31 | * 32 | * Log an analytics event with a custom name and optional extras object. 33 | */function logEvent(eventName: string, extras: Object): void; 34 | 35 | } 36 | export = AnalyticsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Locale/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare namespace LocaleModule { 4 | /** 5 | * ``` 6 | (get) fromDevice: string 7 | (set) (Not Available) 8 | ``` 9 | 10 | Provides the ISO 639-1 language + ISO 3166-1 region compliant locale identifier, e.g. `en_US` or `zh_HK`. 11 | */ 12 | const fromDevice: string; 13 | /** 14 | * ``` 15 | (get) language: StringSignal 16 | (set) (Not Available) 17 | ``` 18 | 19 | Provides the ISO 639-1 compliant language identifier, e.g. `en` or `zh`. 20 | */ 21 | const language: StringSignal; 22 | /** 23 | * ``` 24 | (get) locale: StringSignal 25 | (set) (Not Available) 26 | ``` 27 | 28 | Provides the ISO 639-1 language + ISO 3166-1 region compliant locale identifier, e.g. `en_US` or `zh_HK`. 29 | */ 30 | const locale: StringSignal; 31 | /** 32 | * ``` 33 | (get) region: StringSignal 34 | (set) (Not Available) 35 | ``` 36 | 37 | Provides the ISO 3166-1 region identifier, e.g. `US`, or `HK`. 38 | */ 39 | const region: StringSignal; 40 | } 41 | export = LocaleModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.ScaleSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface ScaleSignal { 3 | /** 4 | * ``` 5 | (get) x: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Represents the X coordinate of the scale. 10 | */ 11 | x: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) y: ScalarSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Represents the Y coordinate of the scale. 19 | */ 20 | y: ScalarSignal; 21 | /** 22 | * ``` 23 | (get) z: ScalarSignal 24 | (set) (Not Available) 25 | ``` 26 | 27 | Represents the Z coordinate of the scale. 28 | */ 29 | z: ScalarSignal; 30 | /** 31 | * 32 | * mul(other: ScaleSignal): ScaleSignal 33 | * 34 | * 35 | * Returns a signal with the value that is the element-wise multiplication of the values of the given signals. 36 | */mul(other: ScaleSignal): ScaleSignal 37 | ; 38 | 39 | /** 40 | * 41 | * div(other: ScaleSignal): ScaleSignal 42 | * 43 | * 44 | * Returns a signal with the value that is the element-wise division of the values of the given signals. 45 | */div(other: ScaleSignal): ScaleSignal 46 | ; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.TextureTransform/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface TextureTransform { 3 | /** 4 | * ``` 5 | (get) offsetU: ScalarSignal 6 | (set) offsetU: ScalarSignal 7 | ``` 8 | 9 | Specifies the offset along the U-axis of the texture coordinates system. 10 | */ 11 | offsetU: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) offsetV: ScalarSignal 15 | (set) offsetV: ScalarSignal 16 | ``` 17 | 18 | Specifies the offset along the V-axis of the texture coordinates system. 19 | */ 20 | offsetV: ScalarSignal; 21 | /** 22 | * ``` 23 | (get) rotation: ScalarSignal 24 | (set) rotation: ScalarSignal 25 | ``` 26 | 27 | Specifies the rotation of the texture coordinates system in radians. 28 | */ 29 | rotation: ScalarSignal; 30 | /** 31 | * ``` 32 | (get) scaleU: ScalarSignal 33 | (set) scaleU: ScalarSignal 34 | ``` 35 | 36 | Specifies the scale along the U-axis of the texture coordinates system. 37 | */ 38 | scaleU: ScalarSignal; 39 | /** 40 | * ``` 41 | (get) scaleV: ScalarSignal 42 | (set) scaleV: ScalarSignal 43 | ``` 44 | 45 | Specifies the scale along the V-axis of the texture coordinates system. 46 | */ 47 | scaleV: ScalarSignal; 48 | } 49 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.RotationSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | 4 | /// 5 | declare interface RotationSignal { 6 | /** 7 | * ``` 8 | (get) eulerAngles: EulerAnglesSignal 9 | (set) (Not Available) 10 | ``` 11 | Represents the Euler angle from the `RotationSignal`. 12 | 13 | **Note**: the order of rotations for the Euler angles is the same as in `Transformation` class. 14 | */ 15 | eulerAngles: EulerAnglesSignal; 16 | /** 17 | * 18 | * history(framesCount: number): RotationSignalHistory 19 | * history(framesCount: number, initialValues: Array): RotationSignalHistory 20 | * 21 | * 22 | * Returns an object used to access signal values from past frames. The amount of frames tracked is customizable via `framesCount` parameter. 23 | * Historical signal values are going to be initialized with signal value at call time or using `initialValues` if provided. 24 | * 25 | */history(framesCount: number): RotationSignalHistory 26 | ; 27 | 28 | history(framesCount: number, initialValues: Array): RotationSignalHistory 29 | ; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.Bounds2D/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Bounds2D { 3 | /** 4 | * ``` 5 | (get) x: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies the left boundary of the scene element. Relative to the parent object bounds. Measured in 3D units. 10 | 11 | **Note**: the offset is measured from the parent's left boundary, which might be different from the parent's origin. 12 | */ 13 | x: ScalarSignal; 14 | /** 15 | * ``` 16 | (get) y: ScalarSignal 17 | (set) (Not Available) 18 | ``` 19 | 20 | Specifies the top boundary of the scene element. Relative to the parent object bounds. Measured in 3D units. 21 | 22 | **Note**: the offset is measured from the parent's top boundary, which might be different from the parent's origin. 23 | */ 24 | y: ScalarSignal; 25 | /** 26 | * ``` 27 | (get) width: ScalarSignal 28 | (set) (Not Available) 29 | ``` 30 | 31 | Specifies the width of the scene element boundaries. Measured in 3D units. 32 | */ 33 | width: ScalarSignal; 34 | /** 35 | * ``` 36 | (get) height: ScalarSignal 37 | (set) (Not Available) 38 | ``` 39 | 40 | Specifies the height of the scene element boundaries. Measured in 3D units. 41 | */ 42 | height: ScalarSignal; 43 | } 44 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Shaders.BlendMode/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The `BlendMode` enum describes the blending mode. 3 | * @property OVERLAY Blends two colors using the Overlay blend mode. 4 | * @property MAX Blends two colors using the Max blend mode. 5 | * @property MIN Blends two colors using the Min blend mode. 6 | * @property SCREEN Blends two colors using the Screen blend mode. 7 | * @property DIVIDE Blends two colors using the Divide blend mode. 8 | * @property SUBTRACT Blends two colors using the Subtract blend mode. 9 | * @property MULTIPLY Blends two colors using the Multiply blend mode. 10 | * @property DIFFERENCE Blends two colors using the Difference blend mode. 11 | * @property NORMAL Blends two colors using the Normal blend mode. 12 | * @property BURN Blends two colors using the Burn blend mode. 13 | * @property ADD Blends two colors using the Add blend mode. 14 | * @property DODGE Blends two colors using the Dodge blend mode. 15 | * @property PLUSDARKER Blends two colors using the PlusDarker blend mode. 16 | */ 17 | declare interface BlendMode{ 18 | OVERLAY, 19 | MAX, 20 | MIN, 21 | SCREEN, 22 | DIVIDE, 23 | SUBTRACT, 24 | MULTIPLY, 25 | DIFFERENCE, 26 | NORMAL, 27 | BURN, 28 | ADD, 29 | DODGE, 30 | PLUSDARKER, 31 | } 32 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures.TextureBase/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | declare interface TextureBase { 5 | /** 6 | * ``` 7 | (get) name: StringValue 8 | (set) (Not Available) 9 | ``` 10 | 11 | Specifies the unique texture name. The texture name is specified in AR Studio at design time. 12 | 13 | **See Also**: `TexturesModule.get`. 14 | */ 15 | name: StringValue; 16 | /** 17 | * ``` 18 | (get) signal: ShaderSignal 19 | ``` 20 | 21 | Gets the RGBA ShaderSignal of the given texture. This signal can then be used in shader computations. 22 | */ 23 | signal: ShaderSignal; 24 | /** 25 | * ``` 26 | (get) identifier: StringValue 27 | (set) (Not Available) 28 | ``` 29 | 30 | Specifies the unique texture identifier. This value is specified internally in AR Studio. 31 | */ 32 | identifier: StringValue; 33 | /** 34 | * ``` 35 | (get) width: ScalarSignal 36 | ``` 37 | 38 | Gets the width of the texture in pixels. 39 | */ 40 | width: ScalarSignal; 41 | /** 42 | * ``` 43 | (get) height: ScalarSignal 44 | ``` 45 | 46 | Gets the height of the texture in pixels. 47 | */ 48 | height: ScalarSignal; 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/EffectLinking/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | boolean | void 4 | /// 5 | declare namespace EffectLinkingModule { 6 | /** 7 | * ``` 8 | (get) onGoToEffectFailure: EventSource 9 | (set) (Not Available) 10 | ``` 11 | 12 | Global failure listener 13 | */ 14 | const onGoToEffectFailure: EventSource; 15 | /** 16 | * 17 | * goToEffect(effectId: string): void 18 | * 19 | * 20 | * Equivalent to calling `requestEffect({'effectId': effectId}).apply()` 21 | */function goToEffect(effectId: string): void 22 | ; 23 | 24 | /** 25 | * 26 | * requestEffect(requestEffectParams: {[key: string]: string}): RequestedEffect 27 | * 28 | * 29 | * Requests the hosting environment to download an effect via it's ID. 30 | * `effectId` parameter defines the ID of the effect being requested. 31 | * Returned `RequestedEffect` can be used to apply the effect, and subscribe to apply failure. 32 | */function requestEffect(requestEffectParams: { [key: string]: string }): RequestedEffect 33 | ; 34 | 35 | } 36 | export = EffectLinkingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Instruction/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | /// 4 | declare namespace InstructionModule { 5 | /** 6 | * ``` 7 | (get) automaticInstructionsEnabled: boolean 8 | (set) automaticInstructionsEnabled: boolean 9 | ``` 10 | 11 | Specifies whether or not automatic instructions are enabled. 12 | */ 13 | const automaticInstructionsEnabled: boolean; 14 | /** 15 | * ``` 16 | (get) automaticHintsEnabled: BoolSignal 17 | (set) automaticHintsEnabled: BoolSignal 18 | ``` 19 | 20 | Specifies whether or not automatic instruction hints are enabled. 21 | */ 22 | const automaticHintsEnabled: BoolSignal; 23 | /** 24 | * 25 | * bind(enabled: BooleanSignal, token: StringSignal): void 26 | * 27 | * 28 | * When enabled, shows instruction for given token (you can find and select custom instruction 29 | * tokens in project capabilities) 30 | * 31 | * To hide instruction simply set enabled to `false`. 32 | * 33 | * You can have at most one binding for instructions, meaning that setting a different binding 34 | * would replace any previously created and setup binding for instructions. 35 | */function bind(enabled: BoolSignal, token: StringSignal | string): void 36 | ; 37 | 38 | } 39 | export = InstructionModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel.Head/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface Head { 3 | /** 4 | * 5 | ``` 6 | (get) top: PixelPointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Gets the 2D head top position. 11 | 12 | */ 13 | top: PixelPointSignal; 14 | /** 15 | * 16 | ``` 17 | (get) leftEar: PixelPointSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Gets the 2D left ear position. 22 | 23 | */ 24 | leftEar: PixelPointSignal; 25 | /** 26 | * 27 | ``` 28 | (get) nose: PixelPointSignal 29 | (set) (Not Available) 30 | ``` 31 | 32 | Gets the 2D nose position. 33 | 34 | */ 35 | nose: PixelPointSignal; 36 | /** 37 | * 38 | ``` 39 | (get) rightEar: PixelPointSignal 40 | (set) (Not Available) 41 | ``` 42 | 43 | Gets the 2D right ear position. 44 | 45 | */ 46 | rightEar: PixelPointSignal; 47 | /** 48 | * 49 | ``` 50 | (get) rightEye: PixelPointSignal 51 | (set) (Not Available) 52 | ``` 53 | 54 | Gets the 2D right eye position. 55 | 56 | */ 57 | rightEye: PixelPointSignal; 58 | /** 59 | * 60 | ``` 61 | (get) leftEye: PixelPointSignal 62 | (set) (Not Available) 63 | ``` 64 | 65 | Gets the 2D left eye position. 66 | 67 | */ 68 | leftEye: PixelPointSignal; 69 | /** 70 | * 71 | ``` 72 | (get) chin: PixelPointSignal 73 | (set) (Not Available) 74 | ``` 75 | 76 | Gets the 2D chin position. 77 | 78 | */ 79 | chin: PixelPointSignal; 80 | } 81 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/LiveStreaming/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | declare namespace LiveStreamingModule { 6 | /** 7 | * ``` 8 | (get) comments: LiveStreamingComments 9 | (set) (Not Available) 10 | ``` 11 | 12 | Provides access to a `LiveStreamingComments` object that encapsulates data about the live stream's comments. 13 | */ 14 | const comments: LiveStreamingComments; 15 | /** 16 | * ``` 17 | (get) reactions: LiveStreamingReactions 18 | (set) (Not Available) 19 | ``` 20 | 21 | Provides access to a `LiveStreamingReactions` object that encapsulates data about the live stream's reactions. 22 | */ 23 | const reactions: LiveStreamingReactions; 24 | /** 25 | * ``` 26 | (get) state: LiveStreamingModule.State 27 | (set) (Not Available) 28 | ``` 29 | 30 | Specifies a `LiveStreaming.State` enum value indicating the broadcast state. 31 | */ 32 | const state: State; 33 | /** 34 | * ``` 35 | (get) concurrentViewerCount: ScalarSignal 36 | (set) (Not Available) 37 | ``` 38 | 39 | Provides access to a `ScalarSignal` that encapsulates the number of concurrent viewers of the live stream. 40 | */ 41 | const concurrentViewerCount: ScalarSignal; 42 | } 43 | export = LiveStreamingModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Animation.TimeDriver/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface TimeDriver { 4 | /** 5 | * 6 | * start(): void 7 | * 8 | * 9 | * Starts the animation. 10 | */start(): void; 11 | 12 | /** 13 | * 14 | * stop(): void 15 | * 16 | * 17 | * Stops or pauses the animation. 18 | */stop(): void; 19 | 20 | /** 21 | * 22 | * reset(): void 23 | * 24 | * 25 | * Resets the driver progress to time point zero. 26 | */reset(): void; 27 | 28 | /** 29 | * 30 | * reverse(): void 31 | * 32 | * 33 | * Reverses the animation from the moment it is called and goes back in time. 34 | */reverse(): void; 35 | 36 | /** 37 | * 38 | * onCompleted(): EventSource 39 | * 40 | * 41 | * Returns an `EventSource` to which you may subscribe. The event fires once when the animation completes. 42 | */onCompleted(): EventSource; 43 | 44 | /** 45 | * 46 | * onAfterIteration(): EventSource 47 | * 48 | * 49 | * Returns an `EventSource` to which you may subscribe. The event fires when the animation with loopCount completes an iteration. 50 | * Subscribers will receive the one-based index of the completed iteration. 51 | */onAfterIteration(): EventSource; 52 | 53 | /** 54 | * 55 | * isRunning(): BoolSignal 56 | * 57 | * 58 | * Returns a `BoolSignal` indicating whether the animation is running. 59 | */isRunning(): BoolSignal; 60 | 61 | } 62 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.Plane/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare interface Plane { 5 | /** 6 | * ``` 7 | (get) material: MaterialBase 8 | (set) material: MaterialBase 9 | ``` 10 | 11 | Specifies the material of the scene object. 12 | */ 13 | material: MaterialBase; 14 | /** 15 | * ``` 16 | (get) x: ScalarSignal 17 | (set) x: ScalarSignal 18 | ``` 19 | 20 | Specifies the horizontal offset, in 3D units. 21 | */ 22 | x: ScalarSignal; 23 | /** 24 | * ``` 25 | (get) y: ScalarSignal 26 | (set) y: ScalarSignal 27 | ``` 28 | 29 | Specifies the vertical offset, in 3D units. 30 | */ 31 | y: ScalarSignal; 32 | /** 33 | * ``` 34 | (get) width: ScalarSignal 35 | (set) width: ScalarSignal 36 | ``` 37 | 38 | Specifies the horizontal size, in 3D units. 39 | */ 40 | width: ScalarSignal; 41 | /** 42 | * ``` 43 | (get) height: ScalarSignal 44 | (set) height: ScalarSignal 45 | ``` 46 | 47 | Specifies the vertical size, in 3D units. 48 | */ 49 | height: ScalarSignal; 50 | /** 51 | * 52 | * getMaterial(): Promise 53 | * 54 | * 55 | * Returns a promise that is resolved with the material associated with a given scene object or null if no material was assigned. 56 | */getMaterial(): Promise; 57 | 58 | } 59 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Units/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace UnitsModule { 3 | /** 4 | * 5 | * 6 | * mm(millimeters: number): number 7 | * 8 | * 9 | * Converts the specified millimeter value to world units. 10 | * 11 | */function mm(millimeters: number): number 12 | ; 13 | 14 | /** 15 | * 16 | * 17 | * cm(centimeters: number): number 18 | * 19 | * 20 | * Converts the specified centimeter value to world units. 21 | * 22 | */function cm(centimeters: number): number 23 | ; 24 | 25 | /** 26 | * 27 | * 28 | * m(meters: number): number 29 | * 30 | * 31 | * Converts the specified meter value to world units. 32 | * 33 | */function m(meters: number): number 34 | ; 35 | 36 | /** 37 | * 38 | * 39 | * in(inches: number): number 40 | * 41 | * 42 | * Converts the specified inch value to world units. 43 | * 44 | *///function in (inches: number): number; 45 | 46 | /** 47 | * 48 | * 49 | * ft(feet: number): number 50 | * 51 | * 52 | * Converts the specified foot value to world units. 53 | * 54 | */function ft(feet: number): number 55 | ; 56 | 57 | /** 58 | * 59 | * 60 | * yd(yards: number): number 61 | * 62 | * 63 | * Converts the specified yard value to world units. 64 | * 65 | */function yd(yards: number): number 66 | ; 67 | 68 | } 69 | export = UnitsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/BoolSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface BoolSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): BoolSignal 19 | * 20 | * 21 | * Returns an `BoolSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): BoolSignal; 30 | 31 | /** 32 | * 33 | * 34 | * frame(relativeFrame: number): BoolSignal 35 | * 36 | * 37 | * Returns an `BoolSignal` for the history value at given frame relative to current one. 38 | * 39 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 40 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 41 | * 42 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 43 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 44 | * 45 | */frame(relativeFrame: number): BoolSignal; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Point4DSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface Point4DSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): Point4DSignal 19 | * 20 | * 21 | * Returns an `Point4DSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): Point4DSignal 30 | ; 31 | 32 | /** 33 | * 34 | * 35 | * frame(relativeFrame: number): Point4DSignal 36 | * 37 | * 38 | * Returns an `Point4DSignal` for the history value at given frame relative to current one. 39 | * 40 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 41 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 42 | * 43 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 44 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 45 | * 46 | */frame(relativeFrame: number): Point4DSignal 47 | ; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/StringSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface StringSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): StringSignal 19 | * 20 | * 21 | * Returns an `StringSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): StringSignal; 30 | 31 | /** 32 | * 33 | * 34 | * frame(relativeFrame: number): StringSignal 35 | * 36 | * 37 | * Returns an `StringSignal` for the history value at given frame relative to current one. 38 | * 39 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 40 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 41 | * 42 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 43 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 44 | * 45 | */frame(relativeFrame: number): StringSignal; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/VectorSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface VectorSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): VectorSignal 19 | * 20 | * 21 | * Returns an `VectorSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): VectorSignal; 30 | 31 | /** 32 | * 33 | * 34 | * frame(relativeFrame: number): VectorSignal 35 | * 36 | * 37 | * Returns an `VectorSignal` for the history value at given frame relative to current one. 38 | * 39 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 40 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 41 | * 42 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 43 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 44 | * 45 | */frame(relativeFrame: number): VectorSignal; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Point2DSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface Point2DSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): Point2DSignal 19 | * 20 | * 21 | * Returns an `Point2DSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): Point2DSignal; 30 | 31 | /** 32 | * 33 | * 34 | * frame(relativeFrame: number): Point2DSignal 35 | * 36 | * 37 | * Returns an `Point2DSignal` for the history value at given frame relative to current one. 38 | * 39 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 40 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 41 | * 42 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 43 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 44 | * 45 | */frame(relativeFrame: number): Point2DSignal; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/EventSourceHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface EventSourceHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): EventSource 19 | * 20 | * 21 | * Returns an `EventSource` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): EventSource 30 | ; 31 | 32 | /** 33 | * 34 | * 35 | * frame(relativeFrame: number): EventSource 36 | * 37 | * 38 | * Returns an `EventSource` for the history value at given frame relative to current one. 39 | * 40 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 41 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 42 | * 43 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 44 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 45 | * 46 | */frame(relativeFrame: number): EventSource 47 | ; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PointSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface PointSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): PointSignal 19 | * 20 | * 21 | * Returns an `PointSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): PointSignal 30 | ; 31 | 32 | /** 33 | * 34 | * 35 | * frame(relativeFrame: number): PointSignal 36 | * 37 | * 38 | * Returns an `PointSignal` for the history value at given frame relative to current one. 39 | * 40 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 41 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 42 | * 43 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 44 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 45 | * 46 | */frame(relativeFrame: number): PointSignal 47 | ; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/RotationSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface RotationSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): RotationSignal 19 | * 20 | * 21 | * Returns an `RotationSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): RotationSignal; 30 | 31 | /** 32 | * 33 | * 34 | * frame(relativeFrame: number): RotationSignal 35 | * 36 | * 37 | * Returns an `RotationSignal` for the history value at given frame relative to current one. 38 | * 39 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 40 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 41 | * 42 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 43 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 44 | * 45 | */frame(relativeFrame: number): RotationSignal; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/ScalarSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface ScalarSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): ScalarSignal 19 | * 20 | * 21 | * Returns an `ScalarSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): ScalarSignal 30 | ; 31 | 32 | /** 33 | * 34 | * 35 | * frame(relativeFrame: number): ScalarSignal 36 | * 37 | * 38 | * Returns an `ScalarSignal` for the history value at given frame relative to current one. 39 | * 40 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 41 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 42 | * 43 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 44 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 45 | * 46 | */frame(relativeFrame: number): ScalarSignal 47 | ; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/ShaderSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface ShaderSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): ShaderSignal 19 | * 20 | * 21 | * Returns an `ShaderSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): ShaderSignal 30 | ; 31 | 32 | /** 33 | * 34 | * 35 | * frame(relativeFrame: number): ShaderSignal 36 | * 37 | * 38 | * Returns an `ShaderSignal` for the history value at given frame relative to current one. 39 | * 40 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 41 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 42 | * 43 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 44 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 45 | * 46 | */frame(relativeFrame: number): ShaderSignal 47 | ; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Diagnostics/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | 4 | /// 5 | declare namespace DiagnosticsModule { 6 | /** 7 | * ``` 8 | (get) typeSystem: TypeSystemMetadata 9 | (set) (Not Available) 10 | ``` 11 | 12 | Object containing available module and types information. 13 | */ 14 | const typeSystem: TypeSystemMetadata; 15 | /** 16 | * 17 | * getModuleNames(): Array 18 | * 19 | * 20 | * Returns an array of names of all the scripting modules that can be loaded through a `require` call. 21 | * Note: This set of modules is based on the list of enabled capabilities. 22 | */function getModuleNames(): Array; 23 | 24 | /** 25 | * 26 | * getTypeDescriptions(): Object 27 | * 28 | * 29 | * Finds the descriptions for each type in the effect. 30 | */function getTypeDescriptions(): Object; 31 | 32 | /** 33 | * 34 | * log(content: Object): void 35 | * 36 | * 37 | * Flattens content to a string and prints it to the debug console. 38 | * Note: this function can be reassigned to any var (i.e. `foo.log = Diagnostics.log;`) 39 | */function log(content: Object): void; 40 | 41 | /** 42 | * 43 | * watch(tag: string, signal: BoolSignal | ScalarSignal | StringSignal): void 44 | * 45 | * 46 | * Adds the specified signal to the watch view in AR Studio with the specified tag. 47 | */function watch(tag: string, signal: BoolSignal | boolean | ScalarSignal | number | StringSignal | string): void; 48 | 49 | } 50 | export = DiagnosticsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/TransformSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface TransformSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): TransformSignal 19 | * 20 | * 21 | * Returns an `TransformSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): TransformSignal 30 | ; 31 | 32 | /** 33 | * 34 | * 35 | * frame(relativeFrame: number): TransformSignal 36 | * 37 | * 38 | * Returns an `TransformSignal` for the history value at given frame relative to current one. 39 | * 40 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 41 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 42 | * 43 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 44 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 45 | * 46 | */frame(relativeFrame: number): TransformSignal 47 | ; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/BoundingBoxSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface BoundingBoxSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): BoundingBoxSignal 19 | * 20 | * 21 | * Returns an `BoundingBoxSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): BoundingBoxSignal 30 | ; 31 | 32 | /** 33 | * 34 | * 35 | * frame(relativeFrame: number): BoundingBoxSignal 36 | * 37 | * 38 | * Returns an `BoundingBoxSignal` for the history value at given frame relative to current one. 39 | * 40 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 41 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 42 | * 43 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 44 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 45 | * 46 | */frame(relativeFrame: number): BoundingBoxSignal 47 | ; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PrimitiveOrShaderSignalHistory/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | declare interface PrimitiveOrShaderSignalHistory { 4 | /** 5 | * 6 | ``` 7 | (get) length: number 8 | (set) (Not Available) 9 | ``` 10 | 11 | Returns how many frames are being tracked by this history object. 12 | 13 | */ 14 | length: number; 15 | /** 16 | * 17 | * 18 | * at(index: number): PrimitiveOrShaderSignal 19 | * 20 | * 21 | * Returns an `PrimitiveOrShaderSignal` for the history value at given index. 22 | * 23 | * For example, `SignalHistory.at(0)` returns value of signal at previous frame, while 24 | * `SignalHistory.at(1)` returns value of signal at two frames ago. 25 | * 26 | * **Note**: See also `SignalHistory.frame` method which uses more intuitive negative indexing. 27 | * **Note**: You can use `SignalHistory[0]` to achieve same effect as calling `SignalHistory.at(0)` 28 | * 29 | */at(index: number): PrimitiveOrShaderSignal; 30 | 31 | /** 32 | * 33 | * 34 | * frame(relativeFrame: number): PrimitiveOrShaderSignal 35 | * 36 | * 37 | * Returns an `PrimitiveOrShaderSignal` for the history value at given frame relative to current one. 38 | * 39 | * For example, `SignalHistory.frame(-1)` returns value of signal at previous frame, while 40 | * `SignalHistory.frame(-2)` returns value of signal at two frames ago. 41 | * 42 | * **Note**: See also `SignalHistory.at` method for approach which is index based. 43 | * **Note**: You can use `SignalHistory[-1]` to achieve same effect as calling `SignalHistory.frame(-1)` 44 | * 45 | */frame(relativeFrame: number): PrimitiveOrShaderSignal; 46 | 47 | } 48 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Audio.PlaybackController/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface PlaybackController { 3 | /** 4 | * 5 | * setPlaying(playing: BoolValue): void 6 | * 7 | * 8 | * Plays or pauses the playback controller depending on the value entered. When the audio is finished playing, use `reset` to play from the beginning. 9 | */setPlaying(playing: BoolValue): void; 10 | 11 | /** 12 | * 13 | * loop(): void 14 | * 15 | * 16 | * Deprecated: Please use the `setLooping` method. Loop the playback controller, sound comes through all speakers (also known as Audio Source in the past) that reference the playback controller. 17 | */loop(): void; 18 | 19 | /** 20 | * 21 | * reset(): void 22 | * 23 | * 24 | * Resets the playback controller audio to the beginning. If the playback controller is currently playing then it will immediately re-start. 25 | */reset(): void; 26 | 27 | /** 28 | * 29 | * setLooping(looping: BoolValue): void 30 | * 31 | * 32 | * Loops the playback controller. To be used in pair with the `setPlaying` method. If set to `true`, the audio will repeat infinitely. 33 | */setLooping(looping: BoolValue): void; 34 | 35 | /** 36 | * 37 | * play(): void 38 | * 39 | * 40 | * Deprecated: Please use the `setPlaying` method. Play the playback controller, sound comes through all speakers (also known as Audio Source in the past) that reference the playback controller. 41 | */play(): void; 42 | 43 | /** 44 | * 45 | * stop(): void 46 | * 47 | * Deprecated: Please use the `setPlaying` method to pause the audio or the `reset` method to return the audio to the beginning. Stop the playback controller. 48 | */stop(): void; 49 | 50 | } 51 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/NativeUI.Picker/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface Picker { 4 | /** 5 | * ``` 6 | (set) visible: BoolSignal 7 | ``` 8 | Will instruct picker to be visible or not visible, according to passed boolean value. 9 | */ 10 | visible: BoolSignal; 11 | /** 12 | * ``` 13 | (get) selectedIndex: ScalarSignal 14 | (set) selectedIndex: ScalarSignal 15 | ``` 16 | 17 | Represents the index of the selected item in the picker. 18 | */ 19 | selectedIndex: ScalarSignal; 20 | /** 21 | * 22 | * configure(configuration: {selectedIndex: ?int, items: Array}): void 23 | * 24 | * `items` array is composed of `{image_texture: ImageTexture}` objects. 25 | * 26 | * Configures the picker with a given JSON configuration. 27 | * The configuration consists of an optional initial selected index (0 will be used if not specified) and a list of items. 28 | * For items you must specify a name of an uncompressed texture which will be used as the picker item image. 29 | */configure(configuration: { selectedIndex: number | void, items: Array }): void; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.PointTracker/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | /// 5 | declare interface PointTracker { 6 | /** 7 | * ``` 8 | (get) confidence: StringSignal 9 | (set) (Not Available) 10 | ``` 11 | 12 | Returns tracking confidence level info. 13 | This value indicates if PointTracker is currently tracking and how confident it is in reported results. 14 | Possible values: 15 | - HIGH 16 | - MEDIUM 17 | - LOW 18 | - NOT_TRACKING 19 | */ 20 | confidence: StringSignal; 21 | /** 22 | * 23 | * trackPoint(screenLocation: Point2D): void 24 | * trackPoint(screenX: number, screenY: number): void 25 | * trackPoint(screenLocation: PixelPointSignal, gestureState: StringSignal): void 26 | * 27 | * 28 | * PointTracker origin is bound to a point in 3d space, located on detected point. 29 | * This method updates PointTracker to track 3d point currently under given screen coordiantes. 30 | * This also triggers new point detection, in result this object's transform will be modified. 31 | * 32 | * Version with signal parameters can be used in touch gestures for continuous updating: 33 | * 34 | * 35 | * TouchGestures.onPan().subscribe(function(gesture) { 36 | * pointTracker.trackPoint(gesture.location, gesture.state); 37 | * }); 38 | * 39 | */trackPoint(screenLocation: Point2D): void 40 | ; 41 | 42 | trackPoint(screenX: number, screenY: number): void 43 | ; 44 | 45 | trackPoint(screenLocation: PixelPointSignal, gestureState: StringSignal | string): void 46 | ; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking.Eye/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface Eye { 4 | /** 5 | * ``` 6 | (get) center: PointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a `PointSignal` representing the center of the eye in the face local coordinate system. 11 | */ 12 | center: PointSignal; 13 | /** 14 | * ``` 15 | (get) insideCorner: PointSignal 16 | (set) (Not Available) 17 | ``` 18 | 19 | Specifies a `PointSignal` representing the inside corner of the eye in the face local coordinate system. 20 | */ 21 | insideCorner: PointSignal; 22 | /** 23 | * ``` 24 | (get) lowerEyelidCenter: PointSignal 25 | (set) (Not Available) 26 | ``` 27 | 28 | Specifies a `PointSignal` representing the center of the lower eyelid in the face local coordinate system. 29 | */ 30 | lowerEyelidCenter: PointSignal; 31 | /** 32 | * ``` 33 | (get) openness: ScalarSignal 34 | (set) (Not Available) 35 | ``` 36 | 37 | Specifies a `ScalarSignal` representing the openness of the eye. 38 | The openness of the eye is a non-negative value where 0.0 is eye closed and 1.0 eye wide open (it can also take values greater than 1.0). 39 | */ 40 | openness: ScalarSignal; 41 | /** 42 | * ``` 43 | (get) outsideCorner: PointSignal 44 | (set) (Not Available) 45 | ``` 46 | 47 | Specifies a `PointSignal` representing the outside corner of the eye in the face local coordinate system. 48 | */ 49 | outsideCorner: PointSignal; 50 | /** 51 | * ``` 52 | (get) upperEyelidCenter: PointSignal 53 | (set) (Not Available) 54 | ``` 55 | 56 | Specifies a `PointSignal` representing the center of the upper eyelid in the face local coordinate system. 57 | */ 58 | upperEyelidCenter: PointSignal; 59 | } 60 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/LiveStreaming.LiveStreamingReactions/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare interface LiveStreamingReactions { 3 | /** 4 | * ``` 5 | (get) like: ScalarSignal 6 | (set) (Not Available) 7 | ``` 8 | 9 | Specifies a `ScalarSignal` that is the count of the like reaction for this live stream. 10 | */ 11 | like: ScalarSignal; 12 | /** 13 | * ``` 14 | (get) sad: ScalarSignal 15 | (set) (Not Available) 16 | ``` 17 | 18 | Specifies a `ScalarSignal` that is the count of the sad reaction for this live stream. 19 | */ 20 | sad: ScalarSignal; 21 | /** 22 | * ``` 23 | (get) love: ScalarSignal 24 | (set) (Not Available) 25 | ``` 26 | 27 | Specifies a `ScalarSignal` that is the count of the love reaction for this live stream. 28 | */ 29 | love: ScalarSignal; 30 | /** 31 | * ``` 32 | (get) haha: ScalarSignal 33 | (set) (Not Available) 34 | ``` 35 | 36 | Specifies a `ScalarSignal` that is the count of the haha reaction for this live stream. 37 | */ 38 | haha: ScalarSignal; 39 | /** 40 | * ``` 41 | (get) wow: ScalarSignal 42 | (set) (Not Available) 43 | ``` 44 | 45 | Specifies a `ScalarSignal` that is the count of the wow reaction for this live stream. 46 | */ 47 | wow: ScalarSignal; 48 | /** 49 | * ``` 50 | (get) angry: ScalarSignal 51 | (set) (Not Available) 52 | ``` 53 | 54 | Specifies a `ScalarSignal` that is the count of the angry reaction for this live stream. 55 | */ 56 | angry: ScalarSignal; 57 | /** 58 | * ``` 59 | (get) total: ScalarSignal 60 | (set) (Not Available) 61 | ``` 62 | 63 | Specifies a `ScalarSignal` that is the total number of reactions on this live stream. This may exceed the sum of the individual reaction counts (like, love, etc.) if a seasonal reaction (such as thankful) is available and is used by viewers. 64 | */ 65 | total: ScalarSignal; 66 | } 67 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.Mesh/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | 5 | declare interface Mesh { 6 | /** 7 | * ``` 8 | (get) material: MaterialBase 9 | (set) material: MaterialBase 10 | ``` 11 | 12 | Specifies the material of the scene object. 13 | This method will throw an error if multiple materials are associated with different surfaces of the mesh. 14 | */ 15 | material: MaterialBase; 16 | /** 17 | * ``` 18 | (get) blendShapes: BlendShapesMesh 19 | (set) (Not Available) 20 | ``` 21 | 22 | Returns the set of blendshapes that this mesh contains. 23 | */ 24 | blendShapes: BlendShapesMesh; 25 | /** 26 | * ``` 27 | (get) materialIdentifier: string 28 | (set) (Not Available) 29 | ``` 30 | 31 | Specifies the unique id of material for Mesh. 32 | */ 33 | materialIdentifier: string; 34 | /** 35 | * ``` 36 | (get) prefabName: string 37 | (set) (Not Available) 38 | ``` 39 | 40 | Specifies the name of prefab for Mesh. This is the unique identifier of the prefab. 41 | */ 42 | prefabName: string; 43 | /** 44 | * 45 | * getMaterial(): Promise 46 | * 47 | * 48 | * Returns a promise that is resolved with the material associated with a given mesh object or null if no material was assigned. 49 | * This method will return an error if multiple materials are associated with different surfaces of the mesh. 50 | */getMaterial(): Promise 51 | ; 52 | 53 | /** 54 | * 55 | * getBlendShapes(): Promise> 56 | * 57 | * 58 | * Returns a `JS Promise` which will be fulfilled with `array of blend Shapes` or an error. 59 | */getBlendShapes(): Promise> 60 | ; 61 | 62 | } 63 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/CameraInfo/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | declare namespace CameraInfoModule { 7 | /** 8 | * ``` 9 | (get) isRecordingVideo: BoolSignal 10 | (set) (Not Available) 11 | ``` 12 | 13 | Specifies a `BoolSignal` that indicates whether the camera is recording video. 14 | */ 15 | const isRecordingVideo: BoolSignal; 16 | /** 17 | * ``` 18 | (get) isCapturingPhoto: BoolSignal 19 | (set) (Not Available) 20 | ``` 21 | 22 | Specifies a `BoolSignal` that indicates whether the camera is capturing a photo. 23 | */ 24 | const isCapturingPhoto: BoolSignal; 25 | /** 26 | * ``` 27 | (get) effectSafeAreaInsets: InsetsSignal 28 | (set) (Not Available) 29 | ``` 30 | 31 | Specifies an `InsetsSignal` indicating the insets of the effect safe area. 32 | */ 33 | const effectSafeAreaInsets: InsetsSignal; 34 | /** 35 | * ``` 36 | (get) previewSize: PixelSizeSignal 37 | (set) (Not Available) 38 | ``` 39 | 40 | Specifies a `PixelSizeSignal` describing the size of the preview, in pixels. 41 | */ 42 | const previewSize: PixelSizeSignal; 43 | /** 44 | * ``` 45 | (get) captureDevicePosition: Signal 46 | (set) (Not Available) 47 | ``` 48 | 49 | Specifies a `CameraPosition` enum signal identifying the current camera in use on the device. 50 | */ 51 | const captureDevicePosition: Signal; 52 | /** 53 | * ``` 54 | (get) previewScreenScale: ScalarSignal 55 | (set) (Not Available) 56 | ``` 57 | 58 | Specifies a `ScalarSignal` describing the scale of the preview's screen, i.e. the number of pixels per point. 59 | */ 60 | const previewScreenScale: ScalarSignal; 61 | } 62 | export = CameraInfoModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Reactive.BoundingBoxSignal/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | /// 5 | declare interface BoundingBoxSignal { 6 | /** 7 | * ``` 8 | (get) x: ScalarSignal 9 | (set) (Not Available) 10 | ``` 11 | 12 | Represents the X-position of top left corner of the bounding box, in normalized screen space units. 13 | */ 14 | x: ScalarSignal; 15 | /** 16 | * ``` 17 | (get) y: ScalarSignal 18 | (set) (Not Available) 19 | ``` 20 | 21 | Represents the Y-position of top left corner of the bounding box, in normalized screen space units. 22 | */ 23 | y: ScalarSignal; 24 | /** 25 | * ``` 26 | (get) width: ScalarSignal 27 | (set) (Not Available) 28 | ``` 29 | 30 | Represents the width of the bounding box, in normalized screen space units. 31 | */ 32 | width: ScalarSignal; 33 | /** 34 | * ``` 35 | (get) height: ScalarSignal 36 | (set) (Not Available) 37 | ``` 38 | 39 | Represents the height of the bounding box, in normalized screen space units. 40 | */ 41 | height: ScalarSignal; 42 | /** 43 | * ``` 44 | (get) center: Point2DSignal 45 | (set) (Not Available) 46 | ``` 47 | 48 | Represents the center of the bounding box, in normalized screen space units. 49 | */ 50 | center: Point2DSignal; 51 | /** 52 | * 53 | * history(framesCount: number): BoundingBoxSignalHistory 54 | * 55 | * 56 | * Returns an object used to access signal values from past frames. The amount of frames tracked is customizable via `framesCount` parameter. 57 | * Historical signal values are going to be initialized with signal value at call time or using `initialValues` if provided. 58 | * 59 | */history(framesCount: number): BoundingBoxSignalHistory 60 | ; 61 | 62 | } 63 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene.Speaker/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | 7 | /// 8 | declare interface Speaker { 9 | /** 10 | * ``` 11 | (get) volume: ScalarValue 12 | (set) volume: ScalarSignal 13 | ``` 14 | 15 | (get) Returns the volume of the speaker in the range of [0.0, 1.0]. 16 | (set) Specifies the volume of the speaker in the range of [0.0, 1.0]. 17 | 18 | Note: To access this property you need to enable the AudioSourceVolume API capability. 19 | */ 20 | volume: ScalarValue; 21 | /** 22 | * 23 | * play(): void 24 | * 25 | * 26 | * Creates a new playing instance of the sound associated with this AudioSource. 27 | */play(): void 28 | ; 29 | 30 | /** 31 | * 32 | * stopAll(speaker: Speaker): void 33 | * 34 | * 35 | * Stops all playing instances of this AudioSource. 36 | */stopAll(speaker: Speaker): void 37 | ; 38 | 39 | /** 40 | * 41 | * isPlaying(audioSource: AudioSource): BoolSignal 42 | * 43 | * 44 | * Returns a `BooleanSignal` indicating whether the specified audio source is playing. 45 | */isPlaying(audioSource: AudioSource): BoolSignal 46 | ; 47 | 48 | /** 49 | * 50 | * minProgress(audioSource: AudioSource): ScalarSignal 51 | * 52 | * 53 | * Returns a `ScalarSignal` indicating the timestamp of the played audio source instance with lowest timestamp. A value of zero is returned if the audio source is not currently playing. 54 | */minProgress(audioSource: AudioSource): ScalarSignal 55 | ; 56 | 57 | /** 58 | * 59 | * audioTransformsCount(): number 60 | * 61 | */audioTransformsCount(): number 62 | ; 63 | 64 | /** 65 | * 66 | * audioTransformAtIndex(index: number): AudioTransformWrapper 67 | * 68 | */audioTransformAtIndex(index: number): AudioTransformWrapper 69 | ; 70 | 71 | } 72 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Scene/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare namespace SceneModule { 6 | /** 7 | * ``` 8 | (get) root: Scene 9 | (set) (Not Available) 10 | ``` 11 | 12 | Returns an object that is the root of the scene tree. Other objects are accessed by walking down the scene tree from the root using the `SceneObjectBase.child` and `SceneObjectBase.find` methods. 13 | */ 14 | const root: Scene; 15 | /** 16 | * 17 | * unprojectToFocalPlane(location: PixelPointSignal): PointSignal 18 | * 19 | * 20 | * Returns a signal with the value that corresponds to the 3d point (in World Space, in current units) of the given screenSpace point from the PixelPointSignal. 21 | * The z coordinate of the PointSignal will be calculated so that the 3d point will always be on the canvas (which should be on the Focal Plane). 22 | * 23 | * This function can be combined with TouchGestures to create a 3d point signal. 24 | * 25 | * var S = require('Scene') 26 | * TouchGestures.onPan().subscribe(function(gesture) { 27 | * var signal = S.unprojectToFocalPlane(gesture.location); 28 | * }); 29 | * 30 | */function unprojectToFocalPlane(location: PixelPointSignal): PointSignal 31 | ; 32 | 33 | /** 34 | * 35 | * unprojectWithDepth(location: PixelPointSignal, depth: number): PointSignal 36 | * 37 | * Returns a signal with the value that corresponds to the 3d point value (in World Space, in current units) of the given screenSpace point from the PixelPointSignal 38 | * The z coordinate of the PointSignal will always be equal to the given depth value. The depth should be given in current units. 39 | * 40 | * This function can be combined with TouchGestures to create a 3d point signal. 41 | * 42 | * var Scene = require('Scene') 43 | * var TouchGestures = require('TouchGestures') 44 | * TouchGestures.onPan().subscribe(function(gesture) { 45 | * var signal = Scene.unprojectWithDepth(gesture.location, 0.5); 46 | * }); 47 | * 48 | */function unprojectWithDepth(location: PixelPointSignal, depth: number): PointSignal 49 | ; 50 | 51 | } 52 | export = SceneModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/PortalWorldModel.Person/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /// 4 | /// 5 | /// 6 | /// 7 | /// 8 | /// 9 | declare interface Person { 10 | /** 11 | * 12 | ``` 13 | (get) box: BoundingBox 14 | (set) (Not Available) 15 | ``` 16 | 17 | Gets the pose bounding box of the given person. 18 | 19 | */ 20 | box: BoundingBox; 21 | /** 22 | * 23 | ``` 24 | (get) poseId: number 25 | (set) (Not Available) 26 | ``` 27 | 28 | Gets the unique pose ID of the given person. 29 | 30 | */ 31 | poseId: number; 32 | /** 33 | * 34 | ``` 35 | (get) rightLeg: RightLeg 36 | (set) (Not Available) 37 | ``` 38 | 39 | Gets the right leg component of this person. 40 | 41 | */ 42 | rightLeg: RightLeg; 43 | /** 44 | * 45 | ``` 46 | (get) head: Head 47 | (set) (Not Available) 48 | ``` 49 | 50 | Gets the head component of this person. 51 | 52 | */ 53 | head: Head; 54 | /** 55 | * 56 | ``` 57 | (get) leftArm: LeftArm 58 | (set) (Not Available) 59 | ``` 60 | 61 | Gets the left arm component of this person. 62 | 63 | */ 64 | leftArm: LeftArm; 65 | /** 66 | * 67 | ``` 68 | (get) rightArm: RightArm 69 | (set) (Not Available) 70 | ``` 71 | 72 | Gets the right arm component of this person. 73 | 74 | */ 75 | rightArm: RightArm; 76 | /** 77 | * 78 | ``` 79 | (get) torso: Torso 80 | (set) (Not Available) 81 | ``` 82 | 83 | Gets the torso component of this person. 84 | 85 | */ 86 | torso: Torso; 87 | /** 88 | * 89 | ``` 90 | (get) leftLeg: LeftLeg 91 | (set) (Not Available) 92 | ``` 93 | 94 | Gets the left leg component of this person. 95 | 96 | */ 97 | leftLeg: LeftLeg; 98 | } 99 | -------------------------------------------------------------------------------- /scripts/compile/AddToTypedefs/MaterialBase.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | The`DefaultMaterial` class encapsulates an image - based material. 3 | */ 4 | declare interface MaterialBase { 5 | /** 6 | * Specifies a number between 0.0 and 1.0. 7 | */ 8 | alphaCutoff: ScalarSignal 9 | /* 10 | 11 | cullMode 12 | 13 | (get) cullMode: Signal 14 | (set) cullMode: Signal < MaterialsModule.CullMode > 15 | Specifies the material cull mode. 16 | */ 17 | 18 | /** 19 | * Specifies the texture that forms the basis of this material. 20 | */ 21 | diffuse: TextureBase 22 | 23 | /** 24 | * Specifies the coordinates transform of the diffuse texture of this material. 25 | */ 26 | // getDiffuseTextureTransform(): TextureTransform 27 | // setDiffuseTextureTransform(): TextureTransformSignal 28 | 29 | /** 30 | * Indicates whether the material can be seen from both sides when rendering the scene. 31 | 32 | * Note: When FALSE, only the side specified by object's Cull Mode is rendered. 33 | */ 34 | doubleSided: BoolSignal 35 | 36 | /** 37 | * Specifies the unique identifier for the material. 38 | */ 39 | getIdentifier(): string 40 | 41 | /** 42 | * Specifies the unique identifier for the material name.This value is specified in AR Studio at design time. 43 | 44 | * See Also: MaterialsModule.get. 45 | */ 46 | getName(): string 47 | 48 | /** 49 | * (get) opacity: ScalarSignal 50 | * (set) opacity: ScalarSignal 51 | * Specifies a number between 0.0 and 1.0 indicating the opacity threshold for discarding pixels. 0 is transparent and 1 is opaque. 52 | */ 53 | opacity: ScalarSignal 54 | 55 | /** 56 | * Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. 57 | */ 58 | getDiffuse(): Promise 59 | 60 | /** Assigns a ShaderSignal to the specified texture slot. */ 61 | // setTexture(signal: ShaderSignal, config: { 62 | // textureSlotName: DefaultMaterialTextures | BlendedMaterialTextures | FacePaintMaterialTextures | PhysicallyBasedMaterialTextures 63 | // }): void 64 | 65 | /** Assigns a ShaderSignal to the specified texture slot. */ 66 | setTextureSlot(textureSlotName: String, signal: ShaderSignal): void 67 | } -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Svgs/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | 4 | declare namespace SvgsModule { 5 | /** 6 | * 7 | * get(svgName: string): Svg 8 | * 9 | * 10 | * Returns a svg object identified by the `svgName` argument. 11 | * 12 | * Throws an exception if there is no such identifier in the project. 13 | */function get(svgName: string): Svg 14 | ; 15 | 16 | /** 17 | * 18 | * findUsingPattern(namePattern: string): Promise> 19 | * findUsingPattern(namePattern: string, config: {limit: number}): Promise> 20 | * 21 | * 22 | * Returns a promise that is resolved with the all of the svgs matching the name pattern or empty array if none was found. 23 | * 24 | * Pattern format: 25 | * `*` matches any characters sequence. 26 | * `\` can be used to include in pattern any of the control characters (including '\' itself) 27 | * 28 | * Examples: 29 | * `findUsingPattern("*")` will retrive all of the svgs. 30 | * `findUsingPattern("*A")` will retrieve all of the svgs suffixed with 'A'. 31 | * `findUsingPattern("A*")` will retrieve all of the svgs prefixed with 'A'. 32 | * `findUsingPattern("*A*", {limit: 10})` will retrieve at most 10 of the svgs containing 'A', 33 | * 34 | * `limit` parameter describes if `findUsingPattern` should finish the search if it finds specified number of results (default is no limit). Non-positive values for limit are treated as unlimited. 35 | * 36 | * **See Also**: `Svgs.getAll`, `Svgs.findFirst`. 37 | */function findUsingPattern(namePattern: string): Promise> 38 | ; 39 | 40 | function findUsingPattern(namePattern: string, config: { limit: number }): Promise> 41 | ; 42 | 43 | /** 44 | * 45 | * 46 | * getAll(): Promise> 47 | * 48 | * 49 | * Returns a promise that is resolved with all of the svgs. 50 | * **See Also**: `Svgs.findUsingPattern`, `Svgs.findFirst`. 51 | * 52 | */function getAll(): Promise> 53 | ; 54 | 55 | /** 56 | * 57 | * 58 | * findFirst(name: string): Promise 59 | * 60 | * 61 | * Returns a promise that is resolved with the svg of a requested name or null if none was found. 62 | * **See Also**: `Svgs.findUsingPattern`, `Svgs.getAll`. 63 | * 64 | */function findFirst(name: string): Promise 65 | ; 66 | 67 | } 68 | export = SvgsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Fonts/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | 4 | declare namespace FontsModule { 5 | /** 6 | * 7 | * get(fontName: string): FontId 8 | * 9 | * 10 | * Returns a font object identified by the `fontName` argument. 11 | * 12 | * Throws an exception if there is no such font in the project. 13 | */function get(fontName: string): FontId 14 | ; 15 | 16 | /** 17 | * 18 | * findUsingPattern(namePattern: string): Promise> 19 | * findUsingPattern(namePattern: string, config: {limit: number}): Promise> 20 | * 21 | * 22 | * Returns a promise that is resolved with the all of the font identifiers matching the name pattern or empty array if none was found. 23 | * 24 | * Pattern format: 25 | * `*` matches any characters sequence. 26 | * `\` can be used to include in pattern any of the control characters (including '\' itself) 27 | * 28 | * Examples: 29 | * `findUsingPattern("*")` will retrive all of the font identifiers. 30 | * `findUsingPattern("*A")` will retrieve all of the font identifiers suffixed with 'A'. 31 | * `findUsingPattern("A*")` will retrieve all of the font identifiers prefixed with 'A'. 32 | * `findUsingPattern("*A*", {limit: 10})` will retrieve at most 10 of the font identifiers containing 'A', 33 | * 34 | * `limit` parameter describes if `findUsingPattern` should finish the search if it finds specified number of results (default is no limit). Non-positive values for limit are treated as unlimited. 35 | * 36 | * **See Also**: `FontsModule.getAll`, `FontsModule.findFirst`. 37 | */function findUsingPattern(namePattern: string): Promise> 38 | ; 39 | 40 | function findUsingPattern(namePattern: string, config: { limit: number }): Promise> 41 | ; 42 | 43 | /** 44 | * 45 | * 46 | * getAll(): Promise> 47 | * 48 | * 49 | * Returns a promise that is resolved with all of the font identifiers. 50 | * **See Also**: `FontsModule.findUsingPattern`, `FontsModule.findFirst`. 51 | * 52 | */function getAll(): Promise> 53 | ; 54 | 55 | /** 56 | * 57 | * 58 | * findFirst(name: string): Promise 59 | * 60 | * 61 | * Returns a promise that is resolved with the font identifier of a requested name or null if none was found. 62 | * **See Also**: `FontsModule.findUsingPattern`, `FontsModule.getAll`. 63 | * 64 | */function findFirst(name: string): Promise 65 | ; 66 | 67 | } 68 | export = FontsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Prefabs/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | 4 | declare namespace PrefabsModule { 5 | /** 6 | * 7 | * get(prefabName: string): PrefabBase 8 | * 9 | * 10 | * Returns a prefab object, derived from `PrefabBase`, that is specified by `prefabName`. An exception is thrown when prefab isn't found. At the moment we have only one type: 11 | * 12 | * * `PrefabGltf` 13 | * 14 | * **See Also**: `PrefabBase.name`. 15 | */function get(prefabName: string): PrefabBase; 16 | 17 | /** 18 | * 19 | * findUsingPattern(namePattern: string): Promise> 20 | * findUsingPattern(namePattern: string, config: {limit: number}): Promise> 21 | * 22 | * 23 | * Returns a promise that is resolved with the all of the prefabs matching the name pattern or empty array if none was found. 24 | * 25 | * Pattern format: 26 | * `*` matches any characters sequence. 27 | * `\` can be used to include in pattern any of the control characters (including '\' itself) 28 | * 29 | * Examples: 30 | * `findUsingPattern("*")` will retrive all of the prefabs. 31 | * `findUsingPattern("*A")` will retrieve all of the prefabs suffixed with 'A'. 32 | * `findUsingPattern("A*")` will retrieve all of the prefabs prefixed with 'A'. 33 | * `findUsingPattern("*A*", {limit: 10})` will retrieve at most 10 of the prefabs containing 'A', 34 | * 35 | * `limit` parameter describes if `findUsingPattern` should finish the search if it finds specified number of results (default is no limit). Non-positive values for limit are treated as unlimited. 36 | * 37 | * **See Also**: `Prefabs.getAll`, `Prefabs.findFirst`. 38 | */function findUsingPattern(namePattern: string): Promise>; 39 | 40 | function findUsingPattern(namePattern: string, config: { limit: number }): Promise>; 41 | 42 | /** 43 | * 44 | * 45 | * getAll(): Promise> 46 | * 47 | * 48 | * Returns a promise that is resolved with all of the prefabs. 49 | * **See Also**: `Prefabs.findUsingPattern`, `Prefabs.findFirst`. 50 | * 51 | */function getAll(): Promise>; 52 | 53 | /** 54 | * 55 | * 56 | * findFirst(name: string): Promise 57 | * 58 | * 59 | * Returns a promise that is resolved with the prefab of a requested name or null if none was found. 60 | * **See Also**: `Prefabs.findUsingPattern`, `Prefabs.getAll`. 61 | * 62 | */function findFirst(name: string): Promise; 63 | 64 | } 65 | export = PrefabsModule; -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Materials.DefaultMaterial/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare interface DefaultMaterial { 6 | /** 7 | * ``` 8 | (get) reflective: TextureBase 9 | (set) reflective: TextureBase 10 | ``` 11 | 12 | Specifies the reflective texture of the material. 13 | */ 14 | reflective: TextureBase; 15 | /** 16 | * ``` 17 | (get) multiply: TextureBase 18 | (set) multiply: TextureBase 19 | ``` 20 | 21 | Specifies the multiplicative texture of the material. This can be used for masking and other purposes. 22 | */ 23 | multiply: TextureBase; 24 | /** 25 | * ``` 26 | (get) emissive: TextureBase 27 | (set) emissive: TextureBase 28 | ``` 29 | 30 | Specifies the emissive texture of the material. 31 | */ 32 | emissive: TextureBase; 33 | /** 34 | * ``` 35 | (get) emissiveTextureTransform: TextureTransform 36 | (set) emissiveTextureTransform: TextureTransformSignal 37 | ``` 38 | 39 | Specifies the coordinates transform of the emissive texture of this material. 40 | */ 41 | emissiveTextureTransform: TextureTransform; 42 | /** 43 | * ``` 44 | (get) multiplyTextureTransform: TextureTransform 45 | (set) multiplyTextureTransform: TextureTransformSignal 46 | ``` 47 | 48 | Specifies the coordinates transform of the multiplicative texture of this material. 49 | */ 50 | multiplyTextureTransform: TextureTransform; 51 | /** 52 | * ``` 53 | (get) blendMode: Signal 54 | (set) blendMode: Signal 55 | ``` 56 | 57 | Specifies the material blend mode. 58 | */ 59 | blendMode: BlendMode>; 60 | /** 61 | * 62 | * getReflective(): Promise 63 | * 64 | * 65 | * Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. 66 | */getReflective(): Promise 67 | ; 68 | 69 | /** 70 | * 71 | * getMultiply(): Promise 72 | * 73 | * 74 | * Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. 75 | */getMultiply(): Promise 76 | ; 77 | 78 | /** 79 | * 80 | * getEmissive(): Promise 81 | * 82 | * 83 | * Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. 84 | */getEmissive(): Promise 85 | ; 86 | 87 | } 88 | -------------------------------------------------------------------------------- /scripts/compile/SelectLetter.js: -------------------------------------------------------------------------------- 1 | const Scene = require('Scene'); 2 | export const Diagnostics = require('Diagnostics'); 3 | 4 | const Patches = require('Patches'); 5 | const Reactive = require('Reactive'); 6 | const TouchGestures = require('TouchGestures'); 7 | const Animation = require('Animation'); 8 | 9 | const canvas0 = Scene.root.findFirst('canvas0'); 10 | 11 | const aloneY = 0 12 | const togetherY = 345 13 | const endScale = Reactive.point2d(1, 1) 14 | const endings = [ 15 | 16 | { // a 17 | position: Reactive.point2d(0, aloneY), 18 | scale: endScale 19 | }, 20 | 21 | { // l 22 | position: Reactive.point2d(1.81, aloneY), 23 | scale: endScale 24 | }, 25 | 26 | { // o 27 | position: Reactive.point2d(1.38, aloneY), 28 | scale: endScale 29 | }, 30 | 31 | { // n 32 | position: Reactive.point2d(0.93, aloneY), 33 | scale: endScale 34 | }, 35 | 36 | { // e 37 | position: Reactive.point2d(0.51, aloneY), 38 | scale: endScale 39 | }, 40 | //////////////////////////// 41 | { // t 42 | position: Reactive.point2d(920, togetherY), 43 | scale: endScale 44 | }, 45 | 46 | { // o 47 | position: Reactive.point2d(580, togetherY), 48 | scale: endScale 49 | }, 50 | 51 | { // g 52 | position: Reactive.point2d(210, togetherY), 53 | scale: endScale 54 | }, 55 | 56 | { // e 57 | position: Reactive.point2d(-100, togetherY), 58 | scale: endScale 59 | }, 60 | 61 | { // t 62 | position: Reactive.point2d(-370, togetherY), 63 | scale: endScale 64 | }, 65 | 66 | { // h 67 | position: Reactive.point2d(-640, togetherY), 68 | scale: endScale 69 | }, 70 | 71 | { // e 72 | position: Reactive.point2d(-960, togetherY), 73 | scale: endScale 74 | }, 75 | 76 | { // r 77 | position: Reactive.point2d(-1280, togetherY), 78 | scale: endScale 79 | } 80 | ]; 81 | 82 | const setLetterEnding = (letterIndex) => { 83 | const ending = endings[letterIndex]; 84 | if (!ending) { 85 | throw Error("No endings for letterIndex '" + letterIndex + "'") 86 | } 87 | 88 | const endPosition = ending.position; 89 | const endScale = ending.scale; 90 | 91 | Patches.inputs.setPoint2D('endPosition', endPosition); 92 | Patches.inputs.setPoint2D('endScale', endScale); 93 | } 94 | 95 | TouchGestures.onTap(canvas0).subscribe(function () { 96 | Patches.outputs.getScalar('letterIndex') 97 | .then((letterIndexSignal) => { 98 | const letterIndex = letterIndexSignal.pinLastValue() 99 | setLetterEnding(letterIndex) 100 | 101 | letterIndexSignal.monitor().subscribe((event) => { 102 | setLetterEnding(event.newValue) 103 | }) 104 | }); 105 | }); 106 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/FaceTracking.Mouth/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare interface Mouth { 4 | /** 5 | * ``` 6 | (get) center: PointSignal 7 | (set) (Not Available) 8 | ``` 9 | 10 | Specifies a `PointSignal` representing the location of the center of the mouth in the face local coordinate system. 11 | */ 12 | center: PointSignal; 13 | /** 14 | * ``` 15 | (get) leftCorner: PointSignal 16 | (set) (Not Available) 17 | ``` 18 | 19 | Specifies a `PointSignal` representing the location of the left corner of the mouth in the face local coordinate system. 20 | */ 21 | leftCorner: PointSignal; 22 | /** 23 | * ``` 24 | (get) lowerLipCenter: PointSignal 25 | (set) (Not Available) 26 | ``` 27 | 28 | Specifies a `PointSignal` representing the location of the center of the lower lip in the face local coordinate system. 29 | */ 30 | lowerLipCenter: PointSignal; 31 | /** 32 | * ``` 33 | (get) lowerLipCurvature: ScalarSignal 34 | (set) (Not Available) 35 | ``` 36 | 37 | Specifies a `ScalarSignal` indicating how high or low the mouth angles are with respect to the lip center. 0.0 is a straight line. 38 | Mouth angles higher than the lip center yield positive curvature, lowering the mouth angles makes it negative. 39 | */ 40 | lowerLipCurvature: ScalarSignal; 41 | /** 42 | * ``` 43 | (get) openness: ScalarSignal 44 | (set) (Not Available) 45 | ``` 46 | 47 | Specifies a `ScalarSignal` representing the openness of the mouth. 48 | The openness of the mouth is a non-negative value where 0.0 is mouth closed and 1.0 mouth wide open (it can also take values greater than 1.0). 49 | */ 50 | openness: ScalarSignal; 51 | /** 52 | * ``` 53 | (get) rightCorner: PointSignal 54 | (set) (Not Available) 55 | ``` 56 | 57 | Specifies a `PointSignal` representing the location of the right corner of the mouth in the face local coordinate system. 58 | */ 59 | rightCorner: PointSignal; 60 | /** 61 | * ``` 62 | (get) upperLipCenter: PointSignal 63 | (set) (Not Available) 64 | ``` 65 | 66 | Specifies a `PointSignal` representing the location of the center of the upper lip in the face local coordinate system. 67 | */ 68 | upperLipCenter: PointSignal; 69 | /** 70 | * ``` 71 | (get) upperLipCurvature: ScalarSignal 72 | (set) (Not Available) 73 | ``` 74 | 75 | Specifies a `ScalarSignal` indicating how high or low the mouth angles are with respect to the lip center. 0.0 is a straight line. 76 | Mouth angles higher than the lip center yield positive curvature, lowering the mouth angles makes it negative. 77 | */ 78 | upperLipCurvature: ScalarSignal; 79 | } 80 | -------------------------------------------------------------------------------- /scripts/skylight-typedefs-overrides/Textures/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | /// 3 | 4 | declare namespace TexturesModule { 5 | /** 6 | * 7 | * get(textureName: string): TextureBase 8 | * 9 | * 10 | * Returns a texture object, derived from `TextureBase`, that is specified by `textureName`. An exception is thrown when the texture isn't found in the project. Possible types are: 11 | * 12 | * * `CanvasTexture` 13 | * * `ColorTexture` 14 | * * `DeepLinkTexture` 15 | * * `ExternalTexture` 16 | * * `ImageTexture` 17 | * * `SequenceTexture` 18 | * 19 | * **See Also**: `TextureBase.name`. 20 | */function get(textureName: string): TextureBase; 21 | 22 | /** 23 | * 24 | * findUsingPattern(namePattern: string): Promise> 25 | * findUsingPattern(namePattern: string, config: {limit: number}): Promise> 26 | * 27 | * 28 | * Returns a promise that is resolved with the all of the textures matching the name pattern or empty array if none was found. 29 | * 30 | * Pattern format: 31 | * `*` matches any characters sequence. 32 | * `\` can be used to include in pattern any of the control characters (including '\' itself) 33 | * 34 | * Examples: 35 | * `findUsingPattern("*")` will retrive all of the textures. 36 | * `findUsingPattern("*A")` will retrieve all of the textures suffixed with 'A'. 37 | * `findUsingPattern("A*")` will retrieve all of the textures prefixed with 'A'. 38 | * `findUsingPattern("*A*", {limit: 10})` will retrieve at most 10 of the textures containing 'A', 39 | * 40 | * `limit` parameter describes if `findUsingPattern` should finish the search if it finds specified number of results (default is no limit). Non-positive values for limit are treated as unlimited. 41 | * 42 | * **See Also**: `Textures.getAll`, `Textures.findFirst`. 43 | */function findUsingPattern(namePattern: string): Promise>; 44 | 45 | function findUsingPattern(namePattern: string, config: { limit: number }): Promise>; 46 | 47 | /** 48 | * 49 | * 50 | * getAll(): Promise> 51 | * 52 | * 53 | * Returns a promise that is resolved with all of the textures. 54 | * 55 | * **See Also**: `Textures.findUsingPattern`, `Textures.findFirst`. 56 | * 57 | */function getAll(): Promise>; 58 | 59 | /** 60 | * 61 | * 62 | * findFirst(name: string): Promise 63 | * 64 | * 65 | * Returns a promise that is resolved with the texture of a requested name or null if none was found. 66 | * 67 | * **See Also**: `Textures.findUsingPattern`, `Textures.getAll`. 68 | * 69 | */function findFirst(name: string): Promise; 70 | 71 | } 72 | export = TexturesModule; -------------------------------------------------------------------------------- /scripts/SelectLetter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | exports.__esModule = true; 3 | exports.Diagnostics = void 0; 4 | var Scene = require('Scene'); 5 | exports.Diagnostics = require('Diagnostics'); 6 | var Patches = require('Patches'); 7 | var Reactive = require('Reactive'); 8 | var TouchGestures = require('TouchGestures'); 9 | var Animation = require('Animation'); 10 | var canvas0 = Scene.root.findFirst('canvas0'); 11 | var aloneY = 0; 12 | var togetherY = 345; 13 | var endScale = Reactive.point2d(1, 1); 14 | var endings = [ 15 | { 16 | position: Reactive.point2d(0, aloneY), 17 | scale: endScale 18 | }, 19 | { 20 | position: Reactive.point2d(1.81, aloneY), 21 | scale: endScale 22 | }, 23 | { 24 | position: Reactive.point2d(1.38, aloneY), 25 | scale: endScale 26 | }, 27 | { 28 | position: Reactive.point2d(0.93, aloneY), 29 | scale: endScale 30 | }, 31 | { 32 | position: Reactive.point2d(0.51, aloneY), 33 | scale: endScale 34 | }, 35 | //////////////////////////// 36 | { 37 | position: Reactive.point2d(920, togetherY), 38 | scale: endScale 39 | }, 40 | { 41 | position: Reactive.point2d(580, togetherY), 42 | scale: endScale 43 | }, 44 | { 45 | position: Reactive.point2d(210, togetherY), 46 | scale: endScale 47 | }, 48 | { 49 | position: Reactive.point2d(-100, togetherY), 50 | scale: endScale 51 | }, 52 | { 53 | position: Reactive.point2d(-370, togetherY), 54 | scale: endScale 55 | }, 56 | { 57 | position: Reactive.point2d(-640, togetherY), 58 | scale: endScale 59 | }, 60 | { 61 | position: Reactive.point2d(-960, togetherY), 62 | scale: endScale 63 | }, 64 | { 65 | position: Reactive.point2d(-1280, togetherY), 66 | scale: endScale 67 | } 68 | ]; 69 | var setLetterEnding = function (letterIndex) { 70 | var ending = endings[letterIndex]; 71 | if (!ending) { 72 | throw Error("No endings for letterIndex '" + letterIndex + "'"); 73 | } 74 | var endPosition = ending.position; 75 | var endScale = ending.scale; 76 | Patches.inputs.setPoint2D('endPosition', endPosition); 77 | Patches.inputs.setPoint2D('endScale', endScale); 78 | }; 79 | TouchGestures.onTap(canvas0).subscribe(function () { 80 | Patches.outputs.getScalar('letterIndex') 81 | .then(function (letterIndexSignal) { 82 | var letterIndex = letterIndexSignal.pinLastValue(); 83 | setLetterEnding(letterIndex); 84 | letterIndexSignal.monitor().subscribe(function (event) { 85 | setLetterEnding(event.newValue); 86 | }); 87 | }); 88 | }); 89 | --------------------------------------------------------------------------------