file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
api/mediasession/setactionhandler/index.md
API - MediaSession - setActionHandler - Syntax: Example: setActionHandler(type, callback)
[ -0.640304446220398, -0.6534817218780518, -0.899207592010498, -0.017928387969732285, 0.061038702726364136, -0.2557678818702698, -0.41788387298583984, 0.7864033579826355, 0.183763325214386, -0.3179236352443695, 0.16365045309066772, -0.2757415771484375, 0.6950669288635254, 0.2509956359863281,...
api/mediasession/setactionhandler/index.md
API - MediaSession - setActionHandler - Syntax - Parameters: - `type`: A string representing an action type to listen for. It will be one of the following: - `enterpictureinpicture`: Open the media in a Picture-in-picture or Document Picture-in-picture window. - `hangup`: End a call. - `nextslide`: Move to the n...
[ -0.31031325459480286, -1.127280592918396, -0.8649430274963379, 0.4490683674812317, 0.7634026408195496, -0.6269132494926453, 0.4751436114311218, 1.0861752033233643, 0.2577884793281555, 0.10210030525922775, -0.4329529106616974, 0.23902225494384766, 0.25580349564552307, -0.15124259889125824, ...
api/mediasession/setactionhandler/index.md
API - MediaSession - setActionHandler - Syntax - Return value: None (`undefined`).
[ 0.06558584421873093, -0.5426282286643982, -1.0931392908096313, -0.38393399119377136, 0.03381732106208801, 0.8278051614761353, -0.07116974890232086, 0.825363278388977, -0.21529005467891693, -0.29015350341796875, 1.1469600200653076, -0.3120485544204712, 0.3344469964504242, 0.2162406444549560...
api/mediasession/setactionhandler/index.md
API - MediaSession - setActionHandler - Description: To remove a previously-established action handler, call `setActionHandler()` again, specifying `null` as the `callback`. The action handler receives as input a single parameter: an object which provides both the action type (so the same function can handle multiple...
[ -0.09702251851558685, -0.8501707315444946, -1.2570831775665283, 1.0491929054260254, 0.10871835052967072, -1.4996302127838135, 0.1579386591911316, 0.5779426097869873, -0.45646044611930847, 0.20228786766529083, -0.404423326253891, 0.2126118242740631, 0.5357430577278137, 0.31858187913894653, ...
api/mediasession/setactionhandler/index.md
API - MediaSession - setActionHandler - Examples - Setting up action handlers for a music player: This example creates a new media session and assigns action handlers (which don't do anything) to it. Example: if ("mediaSession" in navigator) { navigator.mediaSession.metadata = new MediaMetadata({ title: "Unfor...
[ 0.3007350265979767, -0.557293176651001, -1.0446600914001465, 0.2884535491466522, 1.1067286729812622, -0.3423534333705902, 0.7278841137886047, 1.4133155345916748, -0.5139994025230408, -0.15945343673229218, 0.24740400910377502, 0.08277438580989838, -0.2428051382303238, 0.16724346578121185, ...
api/mediasession/setactionhandler/index.md
API - MediaSession - setActionHandler - Examples - Supporting multiple actions in one handler function: You can also, if you prefer, use a single function to handle multiple action types, by checking the value of the `action` property: Example: let skipTime = 7; navigator.mediaSession.setActionHandler("seekforward"...
[ 0.11550905555486679, -0.7965008020401001, -1.029213309288025, 0.9714862108230591, 0.22315624356269836, -1.416794776916504, 0.3121771812438965, 0.6317598223686218, -0.0766671672463417, 0.20696353912353516, 0.1264687180519104, -0.24371060729026794, -0.10531507432460785, -0.3960849940776825, ...
api/mediasession/setactionhandler/index.md
API - MediaSession - setActionHandler - Examples - Using action handlers to control a slide presentation: The `"previousslide"` and `"nextslide"` action handlers can be used to handle moving forward and backward through a slide presentation, for example when the user puts their presentation into a `Picture-in-Picture`...
[ 0.769980251789093, -0.8189640045166016, -0.744456946849823, 0.6086814403533936, 0.39443308115005493, -0.5668666958808899, -0.2230617105960846, 0.48484110832214355, 0.8755173683166504, 0.6647303700447083, 0.09787282347679138, 0.08347135782241821, -0.31800252199172974, 0.054543159902095795, ...
api/webxr_device_api/index.md
API - WebXR Device API: Secure context: This feature is available only in secure contexts (HTTPS). WebXR is a group of standards which are used together to support rendering 3D scenes to hardware designed for presenting virtual worlds (virtual reality, or VR), or for adding graphical imagery to the real world, (augm...
[ 0.44948986172676086, 0.3126845061779022, -0.41420552134513855, -0.11960253864526749, 0.06200866401195526, -0.2754606604576111, 0.7123690843582153, 1.2086150646209717, -0.24211910367012024, -0.016012193635106087, -0.14470472931861877, 0.847593367099762, 0.3701460361480713, 0.539068222045898...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Initialization: - `navigator.xr` - `XRSystem` - `XRPermissionStatus` - `Permissions-Policy`: `xr-spatial-tracking`
[ -0.516252875328064, -0.5351224541664124, -0.25238218903541565, 0.34216707944869995, -0.7706086039543152, -0.7308803796768188, 0.4228023886680603, 0.37150707840919495, 0.3987129330635071, 0.147503063082695, -0.14106853306293488, 0.20364582538604736, 0.5874789357185364, -0.6360646486282349, ...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Session: - `XRSession` - `XRSessionEvent` - `XRRenderState`
[ -0.2862226068973541, -0.8156816363334656, -0.5974700450897217, 0.5235425233840942, -1.0102405548095703, -0.6591900587081909, 0.8071343898773193, 0.004681035876274109, 0.3880254030227661, 0.13657882809638977, 0.20060321688652039, 0.8321401476860046, 0.7733531594276428, -0.016397371888160706...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Frame loop: - `XRFrame`
[ -0.6731152534484863, -0.3356953561306, -0.5043926239013672, 0.21037045121192932, -0.4371039569377899, -1.4048376083374023, 0.6790213584899902, -0.19973404705524445, 0.37191054224967957, 0.4168819487094879, 0.05541227012872696, 0.9143629670143127, 0.23026475310325623, 0.24661099910736084, ...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Spaces: - `XRSpace` - `XRReferenceSpace` - `XRBoundedReferenceSpace` - `XRReferenceSpaceEvent` - `XRJointSpace`
[ -0.4046262800693512, -0.1258462369441986, -0.46907415986061096, 0.4729657769203186, -0.8466951847076416, -0.8226405382156372, 0.42611345648765564, -0.11692506819963455, 0.8753147125244141, 0.26083555817604065, -0.1694040298461914, 0.5414913296699524, 0.32829156517982483, -0.257463216781616...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Views: - `XRView` - `XRViewport` - `XRVisibilityMaskChangeEvent`
[ -0.19679920375347137, -0.281475692987442, 0.1642652302980423, 0.34677448868751526, -1.0255141258239746, -0.7089341878890991, 0.6063045263290405, 0.02508726716041565, 0.7739844918251038, 0.25079336762428284, 0.15472185611724854, 0.055664315819740295, 0.9423692226409912, -0.17245155572891235...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Geometric primitives: - `XRRigidTransform`
[ -0.9030798673629761, -0.4639603793621063, -0.1851383000612259, 0.23129349946975708, -0.5984243154525757, -1.43399977684021, 0.7730599641799927, 0.244852215051651, 0.27704617381095886, 0.5516928434371948, -0.13636203110218048, 0.4734742045402527, 0.44538813829421997, -0.201848104596138, 0...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Pose: - `XRPose` - `XRJointPose` - `XRViewerPose`
[ -0.5340337157249451, 0.06236540526151657, -0.622995138168335, 0.9332225322723389, -0.5611916780471802, -1.0337105989456177, 0.5376417636871338, 0.45367929339408875, -0.06806507706642151, 0.3403794467449188, -0.22334669530391693, 0.2420620620250702, 0.6786583065986633, 0.0072977617383003235...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Input: - `XRHand` - `XRInputSource` - `XRInputSourceArray` - `XRInputSourceEvent` - `XRInputSourcesChangeEvent`
[ -0.22030441462993622, -0.13513430953025818, -0.40838825702667236, 0.5265400409698486, -0.714590311050415, -1.0810343027114868, 0.6778591871261597, 0.44244828820228577, 0.8818203806877136, 0.2618861794471741, -0.3327467739582062, 0.7541606426239014, 1.337019920349121, -0.453177809715271, ...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Layers: - `XRLayer` - `XRLayerEvent` - `XRCompositionLayer` - `XRCubeLayer` - `XRCylinderLayer` - `XREquirectLayer` - `XRProjectionLayer` - `XRQuadLayer` - `XRMediaBinding`
[ -0.23596236109733582, -0.04599454998970032, -0.45946016907691956, 0.46778637170791626, -0.3395562171936035, -1.1951518058776855, 0.0365632101893425, 0.739020824432373, 0.3394923508167267, 0.5016794204711914, 0.020843487232923508, 0.7699719667434692, 0.528331458568573, 0.21305876970291138, ...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - WebGL binding: - `XRWebGLBinding` - `WebGLRenderingContext.makeXRCompatible()` - `XRWebGLLayer` - `XRSubImage` - `XRWebGLSubImage`
[ -1.1572819948196411, -0.26332029700279236, 0.07258116453886032, 0.406127393245697, -0.6050935387611389, -1.4044231176376343, 0.40842118859291077, 0.37140101194381714, 0.13499104976654053, -0.0938301682472229, -0.09372024238109589, 0.9415820837020874, 0.8189094066619873, 0.5494572520256042,...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Anchors: - `XRAnchor` - `XRAnchorSet`
[ -0.5430507063865662, 0.04808291420340538, -0.41939303278923035, 0.22086840867996216, -0.8611887097358704, -1.33526611328125, 0.4230682849884033, 0.39552828669548035, 0.5908747315406799, 0.08622879534959793, 0.13471265137195587, 0.5362614989280701, 0.4528234302997589, -0.16138294339179993, ...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Depth sensing: - `XRDepthInformation` - `XRCPUDepthInformation` - `XRWebGLDepthInformation`
[ -0.7886982560157776, -0.44431471824645996, -0.5609868168830872, 0.8428928256034851, -0.5818884372711182, -1.349084734916687, 0.5900045037269592, 0.22165796160697937, 0.5149009823799133, -0.1883309930562973, -0.07652518898248672, 0.31020689010620117, 0.42824092507362366, 0.20928031206130981...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Hit testing: - `XRHitTestSource` - `XRTransientInputHitTestSource` - `XRHitTestResult` - `XRTransientInputHitTestResult` - `XRRay`
[ -0.4446445405483246, -0.05966632813215256, 0.03527654707431793, 0.46757620573043823, -0.30218735337257385, -0.680672824382782, 0.4072788953781128, 0.39789748191833496, 0.5612956881523132, 0.16664522886276245, -0.16679833829402924, 0.4218951165676117, 0.7023050785064697, -0.0966031104326248...
api/webxr_device_api/index.md
API - WebXR Device API - WebXR reference docs - Lighting estimation: - `XRLightEstimate` - `XRLightProbe`
[ -1.218706488609314, -0.061772190034389496, -0.27055972814559937, 0.27588406205177307, -0.6310979127883911, -1.5470352172851562, 1.1693427562713623, 0.8036555647850037, 0.400747150182724, 0.41784217953681946, -0.19560910761356354, 0.3368779122829437, 0.12157672643661499, -0.2921617329120636...
api/webxr_device_api/index.md
API - WebXR Device API - Guides and tutorials: The following guides and tutorials are a great resource to learn how to comprehend WebXR and the underlying 3D and VR/AR graphics concepts.
[ -0.6408635973930359, -0.48578763008117676, -0.47978338599205017, 0.49350064992904663, -0.3909038007259369, -0.925900936126709, 0.30853691697120667, 0.000652015209197998, 0.22666925191879272, 0.5305073857307434, -0.14871615171432495, 0.491532564163208, 0.5711994767189026, 0.1121416687965393...
api/webxr_device_api/index.md
API - WebXR Device API - Guides and tutorials - Foundations and basics: - Fundamentals of WebXR - Matrix math for the web - WebXR application life cycle
[ -0.20900028944015503, -0.12863171100616455, -0.7218108773231506, 0.275515615940094, -0.23801036179065704, -1.469273328781128, 1.1551693677902222, -0.13114744424819946, 0.2195894420146942, 0.5252198576927185, -0.4869392514228821, 0.4678732752799988, -0.22568605840206146, 0.14805862307548523...
api/webxr_device_api/index.md
API - WebXR Device API - Guides and tutorials - Creating a mixed reality experience: - Starting up and shutting down a WebXR session - Geometry and reference spaces in WebXR - Spatial tracking in WebXR - Rendering and the WebXR frame animation callback - Viewpoints and viewers: Simulating cameras in WebXR - A perspect...
[ 0.011067354120314121, -0.06770673394203186, -0.5603127479553223, 0.2853315472602844, -0.6844952702522278, -0.683568000793457, 0.6713899970054626, 0.4375866949558258, 0.4745138883590698, 0.06328526139259338, 0.21357548236846924, 0.48388487100601196, 0.6806400418281555, 0.19991016387939453, ...
api/webxr_device_api/index.md
API - WebXR Device API - Guides and tutorials - Making it interactive: - Movement, orientation, and motion: A WebXR example - Inputs and input sources - Targeting and hit detection
[ -0.5503105521202087, -0.3147372901439667, -0.4133266806602478, 0.7230005860328674, -0.4726702868938446, -0.8000349998474121, 0.6795434951782227, 0.14693935215473175, 0.660399854183197, 0.40883004665374756, -0.08521483838558197, 0.16455841064453125, 0.38813531398773193, -0.37474533915519714...
api/webxr_device_api/index.md
API - WebXR Device API - Guides and tutorials - Performance and security: - WebXR performance guide - Permissions and security for WebXR
[ -0.5094113945960999, 0.014324301853775978, -0.974996030330658, 0.6552425622940063, -0.7186636924743652, -1.6454062461853027, 0.6988951563835144, 0.27165165543556213, 0.1297544240951538, -0.04858473688364029, 0.4674689471721649, 0.6673756241798401, 0.29380401968955994, -0.278364360332489, ...
api/svgscriptelement/index.md
API - SVGScriptElement: The `SVGScriptElement` interface corresponds to the SVG `script` element.
[ -0.1832481324672699, 0.15878871083259583, 0.6588563323020935, -0.4184736907482147, 0.011251546442508698, -2.029111385345459, 0.6861401796340942, 0.14636801183223724, -0.07528864592313766, -0.17060570418834686, 0.603291928768158, 0.6117139458656311, -0.03857901319861412, 0.32647523283958435...
api/svgscriptelement/index.md
API - SVGScriptElement - Instance properties: - `SVGScriptElement.async`: A boolean reflecting the `async` attribute of the given `script` element. It indicates whether the script should be executed asynchronously. - `SVGScriptElement.crossOrigin`: A string reflecting the `crossorigin` attribute of the given `script` ...
[ -0.6402904987335205, -0.40497341752052307, 0.342128187417984, 0.5454545021057129, 0.4065302014350891, -1.9612905979156494, 0.6277668476104736, 0.47547322511672974, 0.0900154709815979, 0.091230608522892, -0.2928212881088257, 0.5502076745033264, 0.16629339754581451, 0.002396177500486374, 0...
api/svgscriptelement/index.md
API - SVGScriptElement - Instance methods: This interface doesn't implement any specific methods, but inherits methods from its parent interface, `SVGElement`.
[ -0.1410936564207077, 0.006686735898256302, 0.4264434576034546, 0.3516468405723572, 0.11786817014217377, -1.587172508239746, 0.8166009783744812, 1.1101495027542114, 0.33403632044792175, -0.13769294321537018, 0.17355063557624817, 0.7804663777351379, 0.6677722334861755, 0.1039055734872818, ...
api/svgscriptelement/defer/index.md
API - SVGScriptElement - defer: The `defer` property of the `SVGScriptElement` interface is a boolean value that controls how the script should be executed. For classic scripts, if the `defer` property is set to `true`, the external script will be executed after the document has been parsed, but before firing the `DOM...
[ -0.8147127032279968, -0.5299571752548218, 0.18327584862709045, 0.3995485007762909, 0.412475049495697, -1.8456647396087646, 0.503286600112915, 0.8641212582588196, 0.28407150506973267, 0.19126595556735992, -0.23679520189762115, 1.526444911956787, 0.030227921903133392, 0.5596067309379578, 0...
api/svgscriptelement/defer/index.md
API - SVGScriptElement - defer - Value: A boolean.
[ -1.0724024772644043, 0.2625039517879486, -0.0061140526086091995, -0.4611538350582123, 0.012240923941135406, -1.0333071947097778, 0.7152649760246277, -0.0038405954837799072, -0.4818982481956482, -0.5558898448944092, 0.6032823324203491, 1.34157133102417, 0.11758069694042206, 0.46683239936828...
api/svgscriptelement/defer/index.md
API - SVGScriptElement - defer - Examples - Accessing the `defer` property: Example: <svg xmlns="http://www.w3.org/2000/svg" width="400" height="200"> <script id="myScript" href="script.js" defer></script> </svg> Example: const scriptElement = document.getElementById("myScript"); console.log(scriptElement.defer);...
[ -1.202303171157837, -0.22821573913097382, 0.2594139873981476, 0.02693174034357071, -0.0981144830584526, -1.5606268644332886, 0.2345954179763794, 0.2104797214269638, -0.12229892611503601, -0.08676865696907043, -0.12031329423189163, 1.1811563968658447, -0.1331932693719864, 0.1712322831153869...
api/svgscriptelement/crossorigin/index.md
API - SVGScriptElement - crossOrigin: The `crossOrigin` property of the `SVGScriptElement` interface reflects the `Cross-Origin Resource Sharing` settings for the `<script>` element. For classic scripts from other origins, this controls whether full error information will be exposed. For module scripts, it controls th...
[ -0.4290439784526825, -0.2728599011898041, -0.1590106040239334, 0.424180269241333, 0.5136973857879639, -1.4597973823547363, 0.3749781847000122, 1.1238130331039429, -0.1508108675479889, 0.26465514302253723, 0.3737129867076874, 0.8018602728843689, 0.0546850711107254, 0.15143248438835144, -0...
api/svgscriptelement/crossorigin/index.md
API - SVGScriptElement - crossOrigin - Value: A string containing a keyword specifying the CORS mode to use when fetching the resource. Possible values are: - `anonymous` or an empty string (`""`): Requests sent by the `SVGScriptElement` will use the `cors` `Request.mode` and the `same-origin` `Request.credentials` m...
[ 0.2031211256980896, -0.18998576700687408, 0.2655961513519287, 0.6041522026062012, 0.29466769099235535, -1.3634134531021118, 0.7237732410430908, 0.017963647842407227, 0.09903311729431152, -0.03561825305223465, 0.03294169157743454, 0.44847285747528076, -0.04116389900445938, -0.25846678018569...
api/svgscriptelement/crossorigin/index.md
API - SVGScriptElement - crossOrigin - Examples - Accessing the `crossOrigin` property: Example: <svg xmlns="http://www.w3.org/2000/svg" width="400" height="200"> <script id="myScript" href="https://example.com/script.js" crossorigin="anonymous"></script> </svg> Example: const scriptElement = document...
[ -0.5147024989128113, -0.19646131992340088, 0.0795993059873581, 0.3147463798522949, -0.10765759646892548, -1.391748070716858, 0.007639188319444656, 0.1569174975156784, -0.11036279797554016, 0.17285366356372833, -0.1680707037448883, 0.8376091122627258, -0.5251991748809814, -0.408816039562225...
api/svgscriptelement/async/index.md
API - SVGScriptElement - async: The `async` property of the `SVGScriptElement` interface is a boolean value that controls how the script should be executed. For classic scripts, if the `async` property is set to `true`, the external script will be fetched in parallel to parsing and evaluated as soon as it is available...
[ -0.5220412611961365, 0.17641131579875946, 0.09201960265636444, 0.25296756625175476, 0.4207042455673218, -1.3254170417785645, 0.33200788497924805, 1.7892705202102661, 0.02518393099308014, 0.07076148688793182, -0.023263398557901382, 0.9335584044456482, 0.06013990938663483, 0.45616614818573, ...
api/svgscriptelement/async/index.md
API - SVGScriptElement - async - Value: A boolean.
[ -0.7723382711410522, 0.5943629145622253, 0.4426218867301941, -0.18095050752162933, 0.20133545994758606, -1.0950870513916016, 0.8023819327354431, 0.5654553771018982, -0.5066475868225098, -0.4415184557437897, 0.6244719624519348, 1.416320562362671, -0.11295977234840393, 0.26142504811286926, ...
api/svgscriptelement/async/index.md
API - SVGScriptElement - async - Examples - Accessing the `async` property: Example: <svg xmlns="http://www.w3.org/2000/svg" width="400" height="200"> <script id="myScript" href="script.js" async></script> </svg> Example: const scriptElement = document.getElementById("myScript"); console.log(scriptElement.async);...
[ -1.1762350797653198, 0.039587028324604034, 0.13716408610343933, -0.05990414693951607, -0.1458302140235901, -1.66731858253479, 0.14928185939788818, 0.34624695777893066, -0.10398657619953156, -0.13348940014839172, 0.0854758471250534, 1.0682175159454346, -0.18988075852394104, -0.1417120546102...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. Warning: The `scriptURL` parameter passed to this method represents the URL of an external script loaded into a service worker. APIs like this are known a...
[ -0.36266079545021057, -0.2776550054550171, -0.33708131313323975, 0.5422605872154236, 0.10946519672870636, -1.0715878009796143, -0.27802708745002747, 0.850919246673584, 0.652993381023407, 0.6271297335624695, 0.4726886749267578, 0.9214075207710266, 0.5115790963172913, -0.7942365407943726, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Syntax: Example: register(scriptURL) register(scriptURL, options)
[ -1.1090538501739502, -0.06137188524007797, -1.0814825296401978, 0.7649365663528442, -0.5208516120910645, -1.3094984292984009, -0.23997299373149872, 1.085874319076538, 0.21561676263809204, 0.22644053399562836, 0.4146963059902191, 0.5185558199882507, 0.4282482862472534, -0.28578370809555054,...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Syntax - Parameters: - `scriptURL`: A `TrustedScriptURL` instance or a string defining the URL of the service worker script. The registered service worker file needs to be served with a valid JavaScript media type. - `options` (optional): An object containing registration opti...
[ -0.4608571231365204, -0.20696359872817993, -0.5254241228103638, 0.25449758768081665, 1.1318334341049194, -0.6245076656341553, 0.5134643316268921, 1.21547269821167, -0.3848615884780884, 0.25722038745880127, 0.15307632088661194, 0.5954620242118835, 0.14053766429424286, 0.34670019149780273, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Syntax - Return value: A `Promise` that resolves with a `ServiceWorkerRegistration` object.
[ -0.16997197270393372, -0.15058313310146332, 0.25708621740341187, 0.32776883244514465, 0.058271318674087524, -1.417091727256775, 0.5252200365066528, 0.3114854395389557, -0.48858642578125, 0.5147335529327393, -0.08809348940849304, 0.9687402248382568, 0.2662450969219208, 0.4016640782356262, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Syntax - Exceptions: - `TypeError`: The `scriptURL` or `scope URL` is a failure. This can happen if the URL can't be resolved to a valid URL or uses a scheme that is not `http:` or `https`. It may also happen if `scriptURL` is not a `TrustedScriptURL`, and this is a requiremen...
[ -0.5470237135887146, -0.6187455058097839, -0.50152587890625, 0.30789822340011597, 0.5650542974472046, -0.7876229882240295, 0.07662732899188995, 1.1662170886993408, 0.05369444191455841, -0.13836248219013214, -0.0033738315105438232, 0.8478894233703613, 0.5648811459541321, -0.1252319365739822...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Description: The `register()` method creates or updates a `ServiceWorkerRegistration` for the given scope. If successful, the registration associates the provided script URL to a scope, which is subsequently used for matching documents to a specific service worker. A single r...
[ 0.07625555992126465, -0.49552032351493835, -0.7541611194610596, 0.5495574474334717, 0.5332821607589722, -0.9032164216041565, 0.5788899660110474, 1.3422627449035645, 0.05834050476551056, 0.6103793382644653, 0.3339000940322876, 0.5800093412399292, 0.47620338201522827, 0.27905943989753723, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Description - Security considerations: The `scriptURL` parameter specifies the script for the service worker, which can intercept network requests for pages within its scope and return responses that are fresh, cached, new, or modified. If the input is provided by a user, this...
[ -0.9065567851066589, -0.6890263557434082, -0.6422353982925415, 0.8408071398735046, 0.270051509141922, -1.200199007987976, 0.16357377171516418, 0.5094610452651978, -0.10772742331027985, 0.667471170425415, -0.04523131996393204, 0.41956818103790283, 0.07284627109766006, -0.6714285016059875, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Examples: The examples below should be read together to understand how service worker scope applies to a page. Note that the first example shows how to use the method with trusted types. The other examples omit this step for brevity.
[ -0.3749251663684845, 0.23675653338432312, -0.33434316515922546, -0.17011712491512299, 0.293515145778656, -1.369033932685852, 0.51084303855896, 0.2758096754550934, 0.2001635730266571, -0.12310071289539337, -0.013064051046967506, 0.7464054822921753, 0.36866068840026855, 0.40548327565193176, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Examples - Using TrustedScriptURL: To mitigate the risk of XSS, we should always assign `TrustedScriptURL` instances to the `scriptURL` parameter. We also need to do this if we're enforcing trusted types for other reasons and we want to allow some script sources that have been...
[ -0.03902779147028923, -0.5409213304519653, -0.02003023400902748, 1.1180263757705688, 0.35513198375701904, -1.2821582555770874, -0.138681098818779, 0.6269969344139099, 0.31530341506004333, 0.7877179980278015, -0.48413217067718506, 0.5009941458702087, -0.262758731842041, -1.1395115852355957,...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Examples - Register a service worker with default scope: The following example uses the default value of `scope` by omitting it, which sets it to be the same location as the script URL. Suppose the service worker code is at `example.com/sw.js`, and the registration code at `e...
[ -0.2922916114330292, -0.47101807594299316, -0.3584752082824707, 0.803102970123291, 1.0649373531341553, -0.9356313943862915, 0.5835065841674805, 0.8973061442375183, -0.2287304550409317, 0.6019074320793152, 0.01966492459177971, 1.028814435005188, 0.17976628243923187, 0.3595436215400696, -0...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Examples - Register a service worker with an explicit default scope: The code below is almost identical, except we have specified the scope explicitly using `{ scope: "/" }`. We've specified the scope as site-relative so the same registration code can be used from anywhere in ...
[ -0.24674583971500397, -0.07794105261564255, -0.3348679542541504, 0.4441668391227722, 0.9120539426803589, -1.1898562908172607, 0.49190860986709595, 0.8843324780464172, 0.32957786321640015, 0.6298945546150208, 0.19084398448467255, 0.7034229040145874, 0.4840008616447449, 0.2917369306087494, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Examples - Register a service worker using page-relative URLs: There is nothing to stop you from using page-relative URLs except that this makes it harder to move your pages around, and it is easy to accidentally create unwanted registrations if you do so. In this example the...
[ -0.18084658682346344, -0.13057079911231995, -1.2793865203857422, 0.7049329876899719, 0.6487624049186707, -0.3237123191356659, 0.34972867369651794, 1.174505352973938, -0.7583389282226562, 0.5606112480163574, -0.04807158559560776, 1.0262669324874878, 0.3002904951572418, 0.15051932632923126, ...
api/serviceworkercontainer/register/index.md
API - ServiceWorkerContainer - register - Examples - Using Service-Worker-Allowed to increase service worker scope: A service worker can't have a scope broader than its own location, unless the server specifies a broader maximum scope in a `Service-Worker-Allowed` header on the service worker script. Use the `scope` o...
[ -0.31061476469039917, -0.3288775384426117, -0.1953415423631668, 0.6178353428840637, 0.7176940441131592, -0.7676291465759277, 0.1829202026128769, 1.0666731595993042, 0.10832026600837708, 0.30444982647895813, -0.38609716296195984, 0.39261943101882935, -0.30205124616622925, -0.416943013668060...
api/intersectionobserver/observe/index.md
API - IntersectionObserver - observe: The `observe()` method of the `IntersectionObserver` interface adds an element to the set of target elements being watched by the `IntersectionObserver`. One observer has one set of thresholds and one root, but can watch multiple target elements for visibility changes in keeping w...
[ 0.8290075659751892, -0.8095048666000366, -0.32788926362991333, 0.5016738176345825, 0.2931377589702606, -1.4623643159866333, 0.5505024194717407, 0.6272905468940735, 0.42526954412460327, 0.34677842259407043, -0.36004626750946045, -0.22808301448822021, 0.608414888381958, 0.43932634592056274, ...
api/intersectionobserver/observe/index.md
API - IntersectionObserver - observe - Syntax: Example: observe(targetElement)
[ -0.1287849098443985, -0.6265266537666321, -0.11548533290624619, -0.5440535545349121, 0.4299117922782898, -1.5062050819396973, -0.381663054227829, 0.08228287845849991, -0.26967185735702515, 0.127899631857872, 0.2909261882305145, -0.12107846140861511, 0.2523031234741211, 0.30359092354774475,...
api/intersectionobserver/observe/index.md
API - IntersectionObserver - observe - Syntax - Parameters: - `targetElement`: An `element` whose visibility within the root is to be monitored. This element must be a descendant of the root element (or contained within the current document, if the root is the document's viewport). If this element is already being obs...
[ 0.3349686861038208, -0.758307695388794, -0.049820344895124435, 0.08390884101390839, 0.634575605392456, -1.731195330619812, 0.11190293729305267, 0.04877568036317825, 0.5090223550796509, 0.8162948489189148, -0.38505443930625916, -0.09457274526357651, 0.08354920893907547, 0.4357319176197052, ...
api/intersectionobserver/observe/index.md
API - IntersectionObserver - observe - Syntax - Return value: None (`undefined`).
[ -0.15534020960330963, -0.316310316324234, -0.5932133793830872, -0.5831909775733948, 0.05382193624973297, -0.5528830289840698, 0.4867187738418579, 0.8803325295448303, -0.277233362197876, 0.1616056263446808, -0.2783110737800598, -0.04758512228727341, 0.18912990391254425, 0.814633846282959, ...
api/intersectionobserver/observe/index.md
API - IntersectionObserver - observe - Examples: Example: // Register IntersectionObserver const io = new IntersectionObserver((entries) => { entries.forEach((entry) => { if (entry.intersectionRatio > 0) { // Add 'active' class if observation target is inside viewport entry.target.classList.add("act...
[ 0.5882866382598877, -0.5676138401031494, -0.07101623713970184, 0.38557901978492737, 0.2900676727294922, -1.636763334274292, -0.08928260952234268, 0.5348272919654846, 0.6782467365264893, 0.14965128898620605, -0.7953857779502869, -0.583111584186554, 0.49403876066207886, -0.022330064326524734...
api/mediasource/index.md
API - MediaSource: Note: This feature is available in Web Workers. The `MediaSource` interface of the `Media Source Extensions API` represents a source of media data for an `HTMLMediaElement` object. A `MediaSource` object can be attached to a `HTMLMediaElement` to be played in the user agent.
[ -0.4448222517967224, -0.9697899222373962, -0.39067938923835754, 0.7236413955688477, -0.05301643908023834, -1.8040882349014282, -0.1728118509054184, 0.6423378586769104, 0.2585376501083374, -0.20781221985816956, -0.3786592483520508, 0.18846395611763, 0.29071593284606934, 0.3200964331626892, ...
api/mediasource/index.md
API - MediaSource - Constructor: - `MediaSource()`: Constructs and returns a new `MediaSource` object with no associated source buffers.
[ -1.5699554681777954, -0.713433563709259, -0.12374255806207657, 0.7787415981292725, 0.22243019938468933, -1.4677315950393677, 0.30809780955314636, 0.6553447842597961, -0.2103893905878067, -0.14831586182117462, -0.4328306317329407, 0.13850775361061096, 0.42815765738487244, 0.2387176752090454...
api/mediasource/index.md
API - MediaSource - Instance properties: - `MediaSource.activeSourceBuffers` (read only): Returns a `SourceBufferList` object containing a subset of the `SourceBuffer` objects contained within `MediaSource.sourceBuffers` — the list of objects providing the selected video track, enabled audio tracks, and shown/hidden t...
[ -0.10233137011528015, -0.926608681678772, -0.5243441462516785, 0.680809497833252, 0.2457030713558197, -0.7741689682006836, 0.9234588742256165, 1.258705496788025, -0.5630288124084473, -0.032366108149290085, -0.36880919337272644, -0.07302006334066391, -0.11081144213676453, -0.404084742069244...
api/mediasource/index.md
API - MediaSource - Static properties: - `MediaSource.canConstructInDedicatedWorker` (read only): A boolean; returns `true` if `MediaSource` worker support is implemented, providing a low-latency feature detection mechanism.
[ -0.5760496854782104, -0.46001577377319336, -0.484527051448822, 1.0506387948989868, 0.32577022910118103, -1.1978414058685303, 0.45342570543289185, 0.7433552742004395, 0.6320648789405823, -0.1452496200799942, -0.8320217728614807, -0.21935047209262848, 0.8593539595603943, 0.2104385495185852, ...
api/mediasource/index.md
API - MediaSource - Instance methods: Inherits methods from its parent interface, `EventTarget`. - `MediaSource.addSourceBuffer()`: Creates a new `SourceBuffer` of the given MIME type and adds it to the `MediaSource.sourceBuffers` list. - `MediaSource.clearLiveSeekableRange()`: Clears a seekable range previously set ...
[ 0.7600525617599487, -0.8310931324958801, -0.5885044932365417, 0.44768550992012024, 0.0756445825099945, -1.2777345180511475, 0.07444583624601364, 0.6420008540153503, 0.2551558017730713, 0.09003819525241852, -0.3459616005420685, -0.01629103720188141, -0.08022637665271759, -0.0022727102041244...
api/mediasource/index.md
API - MediaSource - Static methods: - `MediaSource.isTypeSupported()`: Returns a boolean value indicating whether the current user agent supports the given MIME type — this is, if it can successfully create `SourceBuffer` objects for that MIME type.
[ -0.6570131182670593, -0.767937958240509, -0.3088303208351135, 0.6914621591567993, 0.13443827629089355, -1.0876812934875488, 0.5881128907203674, 1.0687689781188965, -0.048024751245975494, -0.49512678384780884, -0.7825100421905518, -0.1690637767314911, 0.7714811563491821, -0.1265825778245926...
api/mediasource/index.md
API - MediaSource - Events: - `sourceclose`: Fired when the `MediaSource` instance is not attached to a media element anymore. - `sourceended`: Fired when the `MediaSource` instance is still attached to a media element, but `endOfStream()` has been called. - `sourceopen`: Fired when a media element has opened the `Med...
[ -0.07247809320688248, -1.2582885026931763, -0.6335957646369934, 0.48448753356933594, -0.14509928226470947, -1.2145036458969116, 0.5688325762748718, 1.1677521467208862, -0.1957901418209076, 0.4479949474334717, -0.07963180541992188, 0.19738391041755676, 0.20022472739219666, 0.441058456897735...
api/mediasource/index.md
API - MediaSource - Examples - Complete basic example: The following basic example loads a video using `XMLHttpRequest` and plays it as soon as it can. This example can be viewed live here (you can also download the source for further investigation). Example: const video = document.querySelector("video"); const ass...
[ -0.12911120057106018, -0.6413872241973877, -0.15871870517730713, 0.5150770545005798, 0.20367512106895447, -0.3358764052391052, 0.12448510527610779, 1.1183117628097534, 0.39526131749153137, 0.0001126294955611229, 0.1047050803899765, -0.2828158140182495, 0.25840383768081665, -0.0171319656074...
api/mediasource/index.md
API - MediaSource - Examples - Constructing a `MediaSource` in a dedicated worker and passing it to the main thread: The `handle` property can be accessed inside a dedicated worker, and the resulting `MediaSourceHandle` object is then transferred over to the thread that created the worker (in this case, the main threa...
[ 0.25788000226020813, -0.6307111978530884, -0.6756360530853271, 0.8998897671699524, 0.3709957003593445, -0.9659155607223511, -0.18999522924423218, 0.7771342992782593, -0.2336067110300064, 0.029775962233543396, -0.6719070076942444, -0.06561052799224854, 0.7370864152908325, 0.2268362343311309...
api/animationevent/animationevent/index.md
API - AnimationEvent: The `AnimationEvent()` constructor returns a new `AnimationEvent` object, representing an event in relation with an animation.
[ -0.41870471835136414, -0.9914997816085815, -0.03423135727643967, 0.27575501799583435, -0.3413398861885071, -1.72710382938385, 0.02698206901550293, 0.3031911551952362, -1.0661721229553223, 0.12555012106895447, 0.01824616640806198, -0.5503145456314087, -0.24199655652046204, 0.374030202627182...
api/animationevent/animationevent/index.md
API - AnimationEvent - Syntax: Example: new AnimationEvent(type) new AnimationEvent(type, options)
[ -0.39188671112060547, -0.8037230968475342, -0.012073175050318241, -0.46835821866989136, -0.3128166198730469, -1.2241060733795166, -0.2516934275627136, 0.7323955297470093, 0.099028080701828, -0.012373119592666626, 0.3306529223918915, -0.2830272316932678, -0.3004700541496277, 0.0349906012415...
api/animationevent/animationevent/index.md
API - AnimationEvent - Syntax - Parameters: - `type`: A string with the name of the type of the `AnimationEvent`. It is case-sensitive and browsers set it to `animationstart`, `animationend`, or `animationiteration`. - `options` (optional): An object that, in addition of the properties defined in `Event()`, has the fo...
[ 0.7004998922348022, -0.5954959392547607, -0.6164224743843079, 0.42933064699172974, 0.5985395908355713, -1.0998144149780273, 0.5039458274841309, 1.120460033416748, -0.9680363535881042, 0.33347368240356445, 0.27035385370254517, -0.015147894620895386, -0.3322521448135376, 0.5191364288330078, ...
api/websocket/websocket/index.md
API - WebSocket: Note: This feature is available in Web Workers. The `WebSocket()` constructor returns a new `WebSocket` object and immediately attempts to establish a connection to the specified WebSocket URL.
[ -0.554553747177124, 0.42825600504875183, -0.12234536558389664, 0.1974925547838211, -0.03186573460698128, -1.1145317554473877, 0.6806915998458862, 1.0288344621658325, -0.7431375980377197, -0.08726335316896439, -0.03249456733465195, 0.4837508797645569, 0.32411032915115356, 0.1725958287715912...
api/websocket/websocket/index.md
API - WebSocket - Syntax: Example: new WebSocket(url) new WebSocket(url, protocols)
[ -1.2474371194839478, 0.03271051123738289, 0.0970674380660057, -0.7110685706138611, 0.03279624134302139, -1.2232621908187866, -0.5410594344139099, 0.49720799922943115, -0.23258891701698303, -0.242143452167511, -0.22929513454437256, 0.420956552028656, 0.08344876021146774, -0.0686931833624839...
api/websocket/websocket/index.md
API - WebSocket - Syntax - Parameters: - `url`: The URL of the target WebSocket server to connect to. The URL must use one of the following schemes: `ws`, `wss`, `http`, or `https`, and cannot include a URL fragment. If a relative URL is provided, it is relative to the base URL of the calling script. - `protocols` (op...
[ -0.2108105570077896, -0.4338991045951843, -0.45848986506462097, 0.46004271507263184, 0.3496060073375702, -0.8474352955818176, 0.6373842358589172, 0.6038262844085693, -0.5282573699951172, 0.24966759979724884, -0.44126421213150024, 0.6722188591957092, 0.4378085732460022, -0.204966202378273, ...
api/websocket/websocket/index.md
API - WebSocket - Syntax - Exceptions: - `SyntaxError` `DOMException`: Thrown if: - parsing of `url` fails - `url` has a scheme other than `ws`, `wss`, `http`, or `https` - `url` has a fragment - any of the values in `protocols` occur more than once, or otherwise fail to match the requirements for elements tha...
[ -0.7231376767158508, -0.3565921485424042, -0.09472256153821945, 0.5685029029846191, -0.01764347404241562, -1.6556718349456787, 0.5268962383270264, 0.7754924893379211, -0.2322651445865631, 0.10093656927347183, -0.8167089223861694, 0.7046414613723755, 0.5528273582458496, -0.40694767236709595...
api/websocket/websocket/index.md
API - WebSocket - Examples: The examples below show how you might connect to a `WebSocket`. The code below shows how we can connect to a socket using a URL with the `wss` scheme: Example: const wssWebSocket = new WebSocket("wss://websocket.example.org"); console.log(wssWebSocket.url); // 'wss://websocket.example.or...
[ -0.4341559112071991, -0.19342491030693054, -0.028300726786255836, 0.31564459204673767, -0.045192912220954895, -0.8010004162788391, 0.527748703956604, 0.5951933264732361, -0.40152814984321594, 0.37264931201934814, -0.035054925829172134, 0.7812756299972534, 0.023732297122478485, -0.322663694...
api/websocket/close/index.md
API - WebSocket - close: Note: This feature is available in Web Workers. The `WebSocket.close()` method closes the `WebSocket` connection or connection attempt, if any. If the connection is already `CLOSED`, this method does nothing. Note: The process of closing the connection begins with a closing handshake, and th...
[ -0.5504446029663086, 0.24110949039459229, -0.7080335021018982, -0.05754154175519943, 0.1876285970211029, -1.0728908777236938, 0.6453956961631775, 1.4330286979675293, -0.5866492986679077, 0.1864938586950302, -0.3413107991218567, 1.2053518295288086, 1.0229172706604004, 0.09690956771373749, ...
api/websocket/close/index.md
API - WebSocket - close - Syntax: Example: close() close(code) close(code, reason)
[ -0.7032764554023743, -0.33107587695121765, -0.11323010176420212, -0.6265846490859985, -0.14846228063106537, -1.0175621509552002, -0.24008703231811523, 0.21688571572303772, -0.9567654132843018, 0.08315366506576538, -0.6580895781517029, 0.5245047211647034, -0.03225523233413696, -0.3563705980...
api/websocket/close/index.md
API - WebSocket - close - Syntax - Parameters: - `code` (optional): An integer WebSocket connection close code value indicating a reason for closure: - If unspecified, a close code for the connection is automatically set: to `1000` for a normal closure, or otherwise to another standard value in the range `1001`-`101...
[ 0.10860691219568253, -0.476167768239975, -0.9452880024909973, 0.12423323094844818, 0.6347585320472717, -0.8434618711471558, 0.7242105007171631, 1.3589019775390625, -0.2926766574382782, 0.3374589681625366, -0.47761446237564087, 0.5794965624809265, 0.4616169333457947, 0.16467849910259247, ...
api/websocket/close/index.md
API - WebSocket - close - Syntax - Return value: None (`undefined`).
[ -0.9911531805992126, 0.11209027469158173, 0.03221672773361206, -0.5905029773712158, -0.5889776945114136, -0.21602272987365723, 0.687874972820282, 0.7878196835517883, -1.1399827003479004, 0.06756158173084259, -0.36934542655944824, 0.46155381202697754, 0.41103407740592957, 0.3027565181255340...
api/websocket/close/index.md
API - WebSocket - close - Syntax - Exceptions: - `InvalidAccessError` `DOMException`: Thrown if `code` is neither an integer equal to `1000` nor an integer in the range `3000` – `4999`. - `SyntaxError` `DOMException`: Thrown if the UTF-8-encoded `reason` value is longer than 123 bytes.
[ -0.5346183776855469, -0.5584467649459839, -0.2489328384399414, -0.2834232449531555, -0.26222705841064453, -1.4912400245666504, -0.03356897458434105, -0.006667662411928177, -0.10132896155118942, -0.012548686936497688, -1.0472480058670044, 1.188085675239563, 0.23954889178276062, -0.280463427...
api/xrvisibilitymaskchangeevent/session/index.md
API - XRVisibilityMaskChangeEvent - session: Secure context: This feature is available only in secure contexts (HTTPS). The `session` read-only property of the `XRVisibilityMaskChangeEvent` interface indicates the `XRSession` to which the event belongs.
[ 0.014233173802495003, -0.060870952904224396, -0.8438377380371094, 0.8801884055137634, -0.5242493748664856, -0.5860242247581482, 0.5506557822227478, 0.4763633608818054, 0.4679480791091919, -0.09518960118293762, 0.3434640169143677, 0.36440619826316833, 0.24103274941444397, 0.0770738571882247...
api/xrvisibilitymaskchangeevent/session/index.md
API - XRVisibilityMaskChangeEvent - session - Value: An `XRSession` object indicating which WebXR session the event belongs to.
[ -0.8171381950378418, -0.4415784180164337, -0.266060471534729, 0.2529345154762268, -0.6530702710151672, -0.9384160041809082, 0.4792335033416748, -0.28980717062950134, 0.35907992720603943, -0.07918647676706314, 0.25198134779930115, 0.1870424449443817, 0.20060458779335022, -0.1611247509717941...
api/xrvisibilitymaskchangeevent/session/index.md
API - XRVisibilityMaskChangeEvent - session - Examples - Basic usage: This example indicates how you might check a custom `userRequestsSessionEnd` value when the `visibilitymaskchange` event fires to see whether the user has manually selected an option to end the XR session. If so, you can access the `XRSession` via t...
[ -0.2546776533126831, -0.37468376755714417, -0.862546443939209, 0.9053207635879517, -0.4812275171279907, -0.6644795536994934, 0.9103307723999023, 0.28837230801582336, 0.04704350233078003, 0.40554800629615784, 0.45538386702537537, 0.1519191861152649, 0.6121609807014465, 0.3141564130783081, ...
api/xrvisibilitymaskchangeevent/indices/index.md
API - XRVisibilityMaskChangeEvent - indices: Secure context: This feature is available only in secure contexts (HTTPS). The `indices` read-only property of the `XRVisibilityMaskChangeEvent` interface specifies the index position of each coordinate pair (not individual array index) inside the `vertices` array that de...
[ 0.21992191672325134, -0.5538440942764282, -0.3357982933521271, 0.5530027747154236, -0.3571963608264923, -0.348114013671875, 0.40758270025253296, 1.57476007938385, 0.1369537115097046, -0.0821869745850563, -0.033572059124708176, 0.37861859798431396, 0.5346667170524597, 0.13720108568668365, ...
api/xrvisibilitymaskchangeevent/indices/index.md
API - XRVisibilityMaskChangeEvent - indices - Value: A `Uint32Array`.
[ -0.4328502416610718, -0.8081681728363037, 0.03489907830953598, 0.1125323623418808, -0.6148322224617004, -0.9496888518333435, 0.7014609575271606, 0.39016076922416687, 0.41135498881340027, 0.1507202684879303, 0.03826729953289032, 0.245719313621521, 0.31672149896621704, 0.1609775722026825, ...
api/xrvisibilitymaskchangeevent/indices/index.md
API - XRVisibilityMaskChangeEvent - indices - Examples: See the main `XRVisibilityMaskChangeEvent` page for an example.
[ 0.04506419599056244, -0.6299841403961182, -0.4036027491092682, 0.40017613768577576, -0.8291242718696594, -0.8249025344848633, 0.3532048761844635, 0.08911675959825516, 0.5075785517692566, -0.09848789870738983, -0.02201942354440689, 0.3016480505466461, 0.059191569685935974, 0.101597443222999...
api/xrvisibilitymaskchangeevent/eye/index.md
API - XRVisibilityMaskChangeEvent - eye: Secure context: This feature is available only in secure contexts (HTTPS). The `eye` read-only property of the `XRVisibilityMaskChangeEvent` interface indicates the eye the mask applies to.
[ 0.0721624493598938, 0.20237745344638824, -0.01035582646727562, 0.44875863194465637, 0.022955141961574554, -0.9378858804702759, 0.29609039425849915, 0.944837749004364, 0.7714134454727173, -0.2853110134601593, -0.11843658983707428, 0.04886029660701752, 0.14585049450397491, 0.2646518349647522...
api/xrvisibilitymaskchangeevent/eye/index.md
API - XRVisibilityMaskChangeEvent - eye - Value: An enumerated value indicating which eye the mask applies to from the viewer's perspective. This can be one of: - `left`: The viewer's left eye. - `right`: The viewer's right eye. - `none`: A monoscopic view, or the view otherwise doesn't represent a particular eye's p...
[ -0.23502331972122192, -0.5851664543151855, -0.06482160091400146, 0.05838842689990997, -0.1067960262298584, -1.1841998100280762, 0.03629627078771591, 0.7165161371231079, 1.1897376775741577, -0.14156728982925415, -0.1985563337802887, -0.4452361762523651, 0.15131448209285736, 0.17436715960502...
api/xrvisibilitymaskchangeevent/eye/index.md
API - XRVisibilityMaskChangeEvent - eye - Examples - Basic usage: This example indicates how you might check the `eye` value when the `visibilitymaskchange` event fires and then render a suitable display update depending on the result. Example: xrSession.addEventListener("visibilitymaskchange", (e) => { if (e.eye ...
[ -0.10249269753694534, -0.47922059893608093, -0.18293188512325287, 0.3719530999660492, -0.6042938232421875, -1.6683809757232666, 0.36683768033981323, 0.485145628452301, 0.37562045454978943, -0.016085918992757797, 0.010645609349012375, -0.11268322169780731, 0.10544101893901825, 0.37223669886...
api/xrvisibilitymaskchangeevent/index/index.md
API - XRVisibilityMaskChangeEvent - index: Secure context: This feature is available only in secure contexts (HTTPS). The `index` read-only property of the `XRVisibilityMaskChangeEvent` interface indicates the index of the current `XRView` in the `XRViewerPose.views` array. For a stereo view, there will be two view...
[ 0.025877544656395912, -0.2384198009967804, -0.2958904206752777, 0.8602221012115479, -0.26706260442733765, -0.5442246198654175, 0.7301958203315735, 0.8992068767547607, 0.5419042110443115, -0.004844721406698227, 0.060034334659576416, 0.012700691819190979, 0.3917645215988159, 0.38120469450950...
api/xrvisibilitymaskchangeevent/index/index.md
API - XRVisibilityMaskChangeEvent - index - Value: A number.
[ -0.2749345898628235, -0.3162584900856018, -0.11211111396551132, -0.3977254629135132, -0.45272549986839294, -0.628627598285675, 0.8603531122207642, 0.3363731801509857, 0.10885900259017944, 0.2572426199913025, -0.14074763655662537, -0.21434514224529266, -0.2704242467880249, 0.210707008838653...
api/xrvisibilitymaskchangeevent/index/index.md
API - XRVisibilityMaskChangeEvent - index - Examples: This example indicates how you might render a display update for a particular `XRView` by querying the `index` value of the event object when a `visibilitymaskchange` event is fired. Example: xrSession.addEventListener("visibilitymaskchange", (e) => { renderNew...
[ -0.70452880859375, -0.25851696729660034, -0.1141262874007225, 0.873740017414093, -0.6976228356361389, -1.4962319135665894, 0.5698069334030151, 0.7657718658447266, -0.23576577007770538, -0.0717514306306839, 0.26914140582084656, 0.08690515160560608, 0.3562350869178772, 0.4962994456291199, ...
api/xrvisibilitymaskchangeevent/xrvisibilitymaskchangeevent/index.md
API - XRVisibilityMaskChangeEvent: Secure context: This feature is available only in secure contexts (HTTPS). The `XRVisibilityMaskChangeEvent()` constructor creates and returns a new `XRVisibilityMaskChangeEvent` object.
[ -0.21998123824596405, -0.18644839525222778, -0.25665271282196045, 0.6088880896568298, -0.14328880608081818, -0.9845280647277832, 0.11904552578926086, 0.773139476776123, 0.054819270968437195, 0.017627080902457237, 0.06396860629320145, 0.20420750975608826, 0.2844389081001282, -0.401065111160...
api/xrvisibilitymaskchangeevent/xrvisibilitymaskchangeevent/index.md
API - XRVisibilityMaskChangeEvent - Syntax: Example: new XRVisibilityMaskChangeEvent(type, options)
[ -0.45530620217323303, -0.7555016875267029, 0.11985735595226288, 0.4450971186161041, -0.5024134516716003, -1.4375091791152954, 0.1737387776374817, 0.519461452960968, 0.9900087118148804, 0.09521619230508804, -0.090394027531147, -0.42060479521751404, -0.05100693181157112, -0.06103755533695221...
api/xrvisibilitymaskchangeevent/xrvisibilitymaskchangeevent/index.md
API - XRVisibilityMaskChangeEvent - Syntax - Parameters: - `type`: A string containing the name of the event, which is always `visibilitymaskchange`. - `options`: An object that, in addition of the properties defined in `Event()`, can have the following properties: - `eye`: The `eye` the mask applies to. - `index`...
[ 0.38769853115081787, -0.4779420793056488, 0.0027576815336942673, 0.5609341859817505, -0.1378050446510315, -0.5861226916313171, 0.6583519577980042, 1.3438959121704102, 0.08382320404052734, 0.1927269846200943, 0.18240238726139069, 0.22624552249908447, 0.17573310434818268, 0.44912189245224, ...
api/xrvisibilitymaskchangeevent/xrvisibilitymaskchangeevent/index.md
API - XRVisibilityMaskChangeEvent - Syntax - Return value: A new `XRVisibilityMaskChangeEvent` object instance.
[ -0.29993653297424316, -0.7463083863258362, -0.033202219754457474, 0.05524379760026932, -0.5440443158149719, -1.1700317859649658, 0.17045192420482635, -0.011829186230897903, 0.30831074714660645, 0.0896061584353447, -0.290736585855484, -0.0549064576625824, 0.3432759642601013, 0.2349175810813...
api/xrvisibilitymaskchangeevent/xrvisibilitymaskchangeevent/index.md
API - XRVisibilityMaskChangeEvent - Examples: See the main `XRVisibilityMaskChangeEvent` page for an example.
[ -0.3970418870449066, -0.3104039132595062, -0.07718741148710251, 0.1743279993534088, -0.9556426405906677, -1.0413880348205566, 0.44655758142471313, 0.6456872820854187, 0.39777034521102905, 0.07030931115150452, -0.08876335620880127, 0.01279151439666748, -0.09231279790401459, -0.0355860963463...
api/xrvisibilitymaskchangeevent/vertices/index.md
API - XRVisibilityMaskChangeEvent - vertices: Secure context: This feature is available only in secure contexts (HTTPS). The read-only `vertices` property of the `XRVisibilityMaskChangeEvent` interface is an array representing all the coordinate values that may be used in the visibility mask. If this array is empty,...
[ 0.4409923553466797, 0.0625942125916481, -0.16745644807815552, 0.15750978887081146, -0.02763047069311142, -0.6677893400192261, 0.697027325630188, 1.4682989120483398, 0.46187400817871094, -0.1527310013771057, 0.3642875850200653, 0.2613946795463562, 0.9965362548828125, -0.14839476346969604, ...
api/xrvisibilitymaskchangeevent/vertices/index.md
API - XRVisibilityMaskChangeEvent - vertices - Value: A `Float32Array`.
[ -0.8380113840103149, -1.1057835817337036, -0.23047854006290436, -0.33186280727386475, -0.22143736481666565, -1.0535337924957275, 0.5158668160438538, -0.21953760087490082, 0.601560115814209, 0.041166357696056366, 0.23683980107307434, -0.42061907052993774, 0.09239761531352997, 0.061961866915...
api/xrvisibilitymaskchangeevent/vertices/index.md
API - XRVisibilityMaskChangeEvent - vertices - Description: Each pair of values available in the `vertices` array represents the `x` and `y` coordinate values of a point on a flat mask in clip space. So for example, a simple square mask might be represented by the following array: Example: [0, 0, 0, 1, 1, 1, 1, 0] ...
[ 0.909268856048584, -0.24497780203819275, -0.16648918390274048, -0.1091085821390152, 0.2690965533256531, -0.7800872921943665, 0.6233029365539551, 2.0944197177886963, 0.4985851049423218, -0.1035471186041832, 0.23562267422676086, 0.6002263426780701, 0.6027531623840332, 0.23165461421012878, ...
api/xrvisibilitymaskchangeevent/vertices/index.md
API - XRVisibilityMaskChangeEvent - vertices - Examples: See the main `XRVisibilityMaskChangeEvent` page for an example.
[ 0.07820986211299896, -0.3012276589870453, -0.27702397108078003, 0.04096372425556183, -0.6062323451042175, -1.1098872423171997, 0.4027511775493622, 0.36865997314453125, 0.4617408514022827, 0.09491363912820816, -0.11774522811174393, -0.1881619691848755, 0.4651179611682892, -0.042603954672813...