From fa2bc411bfffd1bd677e0bcccb947c0af94dac08 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 27 Nov 2025 19:26:11 +0100 Subject: [PATCH] Fix typos in "intializ*" Fixes a bunch of typos in initialize word (incorrectly misspelled as intialize). --- webxrlayers-1.bs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/webxrlayers-1.bs b/webxrlayers-1.bs index 3446419..f496a96 100755 --- a/webxrlayers-1.bs +++ b/webxrlayers-1.bs @@ -398,9 +398,9 @@ the user agent MUST run the following steps: {{destroy()}} will delete the underlying attachments. If there are no attachments, this function does nothing. -
+
-To intialize a composition layer with a {{XRSession}} |session| and an optional instance of a {{WebGLRenderingContext}} +To initialize a composition layer with a {{XRSession}} |session| and an optional instance of a {{WebGLRenderingContext}} or a {{WebGL2RenderingContext}} |context|, the user agent MUST run the following steps: 1. Set [=this=] [=XRCompositionLayer/session=] to |session|. 1. If |context| is defined, set [=this=] [=XRCompositionLayer/context=] to |context|. @@ -1451,7 +1451,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. Let |layer| be a [=new=] {{XRProjectionLayer}} in the [=relevant realm=] of [=this=]. 1. If |session|'s [=ended=] value is true, throw {{InvalidStateError}} and abort these steps. 1. If |context| is lost, throw {{InvalidStateError}} and abort these steps. - 1. Run [=intialize a composition layer=] on |layer| with |session| and |context|. + 1. Run [=initialize a composition layer=] on |layer| with |session| and |context|. 1. Initialize |layer|'s [=XRCompositionLayer/isStatic=] to false. 1. Initialize |layer|'s {{XRProjectionLayer/ignoreDepthValues}} as follows:
@@ -1500,7 +1500,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. If |context| is lost, throw {{InvalidStateError}} and abort these steps. 1. If |layout| is {{XRLayerLayout/"default"}}, throw {{TypeError}} and abort these steps. 1. Let |layer| be a [=new=] {{XRQuadLayer}} in the [=relevant realm=] of [=this=]. - 1. Run [=intialize a composition layer=] on |layer| with |session| and |context|. + 1. Run [=initialize a composition layer=] on |layer| with |session| and |context|. 1. Run [=initialize a quad layer=] with |layer| and |init|. 1. let |layout| be the result of [=determine the layout attribute|determining the layout attribute=] with |init|'s {{XRLayerInit/textureType}}, |context| and |init|'s {{XRLayerInit/layout}}. 1. Initialize |layer|'s {{XRCompositionLayer/layout}} to |layout|. @@ -1525,7 +1525,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. If |context| is lost, throw {{InvalidStateError}} and abort these steps. 1. If |layout| is {{XRLayerLayout/"default"}}, throw {{TypeError}} and abort these steps. 1. Let |layer| be a [=new=] {{XRCylinderLayer}} in the [=relevant realm=] of [=this=]. - 1. Run [=intialize a composition layer=] on |layer| with |session| and |context|. + 1. Run [=initialize a composition layer=] on |layer| with |session| and |context|. 1. Run [=initialize a cylinder layer=] with |layer| and |init|. 1. let |layout| be the result of [=determine the layout attribute|determining the layout attribute=] with |init|'s {{XRLayerInit/textureType}}, |context| and |init|'s {{XRLayerInit/layout}}. 1. Initialize |layer|'s {{XRCompositionLayer/layout}} to |layout|. @@ -1552,7 +1552,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{TypeError}} and abort these steps. 1. If |init|'s {{XRLayerInit/space}} has a [=XRReferenceSpace/type=] of {{XRReferenceSpaceType/"viewer"}}, throw {{TypeError}} and abort these steps. 1. Let |layer| be a [=new=] {{XREquirectLayer}} in the [=relevant realm=] of [=this=]. - 1. Run [=intialize a composition layer=] on |layer| with |session| and |context|. + 1. Run [=initialize a composition layer=] on |layer| with |session| and |context|. 1. Run [=initialize a equirect layer=] with |layer| and |init|. 1. let |layout| be the result of [=determine the layout attribute|determining the layout attribute=] with |init|'s {{XRLayerInit/textureType}}, |context| and |init|'s {{XRLayerInit/layout}}. 1. Initialize |layer|'s {{XRCompositionLayer/layout}} to |layout|. @@ -1579,7 +1579,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{TypeError}} and abort these steps. 1. If |init|'s {{XRLayerInit/space}} has a [=XRReferenceSpace/type=] of {{XRReferenceSpaceType/"viewer"}}, throw {{TypeError}} and abort these steps. 1. Let |layer| be a [=new=] {{XRCubeLayer}} in the [=relevant realm=] of [=this=]. - 1. Run [=intialize a composition layer=] on |layer| with |session| and |context|. + 1. Run [=initialize a composition layer=] on |layer| with |session| and |context|. 1. Let |layer|'s {{XRCubeLayer/space}} be the |init|'s {{XRLayerInit/space}}. 1. Initialize |layer|'s [=XRCompositionLayer/isStatic=] to |init|'s {{XRLayerInit/isStatic}} 1. Initialize |layer|'s {{XRCubeLayer/orientation}} as follows: @@ -1991,7 +1991,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. If |session|'s [=ended=] value is true, throw {{InvalidStateError}} and abort these steps. 1. If |init|'s {{XRMediaLayerInit/layout}} is {{XRLayerLayout/"default"}}, throw a {{TypeError}} and abort these steps. 1. Let |layer| be a [=new=] {{XRQuadLayer}} in the [=relevant realm=] of [=this=]. - 1. Run [=intialize a composition layer=] on |layer| with |session|. + 1. Run [=initialize a composition layer=] on |layer| with |session|. 1. Initialize |layer|'s [=XRCompositionLayer/media=] to |video|. 1. Initialize |layer|'s {{XRCompositionLayer/needsRedraw}} to false. 1. Let |aspectRatio| be the result of [=calculate the aspect ratio=] with |video| and |init|'s {{XRMediaLayerInit/layout}}. @@ -2014,7 +2014,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. If |session|'s [=ended=] value is true, throw {{InvalidStateError}} and abort these steps. 1. If |init|'s {{XRMediaLayerInit/layout}} is {{XRLayerLayout/"default"}}, throw a {{TypeError}} and abort these steps. 1. Let |layer| be a [=new=] {{XRCylinderLayer}} in the [=relevant realm=] of [=this=]. - 1. Run [=intialize a composition layer=] on |layer| with |session|. + 1. Run [=initialize a composition layer=] on |layer| with |session|. 1. Initialize |layer|'s [=XRCompositionLayer/media=] to |video|. 1. Initialize |layer|'s {{XRCompositionLayer/needsRedraw}} to false. 1. Let |aspectRatio| be the result of [=calculate the aspect ratio=] with |video| and |init|'s {{XRMediaLayerInit/layout}}. @@ -2037,7 +2037,7 @@ When this method is invoked, the user agent MUST run the following steps: 1. If |init|'s {{XRLayerInit/space}} is not an instance of type {{XRReferenceSpace}}, throw {{InvalidStateError}} and abort these steps. 1. If |init|'s {{XRLayerInit/space}} has a [=XRReferenceSpace/type=] of {{XRReferenceSpaceType/"viewer"}}, throw {{InvalidStateError}} and abort these steps. 1. Let |layer| be a [=new=] {{XREquirectLayer}} in the [=relevant realm=] of [=this=]. - 1. Run [=intialize a composition layer=] on |layer| with |session|. + 1. Run [=initialize a composition layer=] on |layer| with |session|. 1. Initialize |layer|'s [=XRCompositionLayer/media=] to |video|. 1. Initialize |layer|'s {{XRCompositionLayer/needsRedraw}} to false. 1. Run [=initialize a equirect layer=] with |layer| and |init|.