Skip to content

Commit e89db7d

Browse files
committed
Bump A-Frame version number in docs
1 parent a987d35 commit e89db7d

13 files changed

+43
-43
lines changed

docs/components/animation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Accessed as `el.components.animation.<MEMBER>`.
114114

115115
### Controlling Animations using setAttribute
116116

117-
Like any A-Frame component, the animation component can be configured from JavaScript by calling [setAttribute()]( https://aframe.io/docs/1.6.0/introduction/javascript-events-dom-apis.html#updating-a-component-with-setattribute) on an element.
117+
Like any A-Frame component, the animation component can be configured from JavaScript by calling [setAttribute()]( https://aframe.io/docs/1.7.0/introduction/javascript-events-dom-apis.html#updating-a-component-with-setattribute) on an element.
118118

119119
By default, the animation will begin playing immediately (autoplay is true by default).
120120

@@ -149,13 +149,13 @@ We can use the `startEvents` property to animate upon events:
149149

150150
[Remix the Animating on Events Glitch][eventsglitch].
151151

152-
To start an animation by explicitly [emitting a custom event](https://aframe.io/docs/1.6.0/introduction/javascript-events-dom-apis.html#emitting-an-event-with-emit), you can do the following:
152+
To start an animation by explicitly [emitting a custom event](https://aframe.io/docs/1.7.0/introduction/javascript-events-dom-apis.html#emitting-an-event-with-emit), you can do the following:
153153

154154
```
155155
el.emit(`triggeranimation`, null, false);
156156
```
157157

158-
The [third parameter of emit](https://aframe.io/docs/1.6.0/core/entity.html#emit-name-detail-bubbles) set to "false" parameter ensures the event won't bubble up to parents, so that you can target the animation at just one particular element.
158+
The [third parameter of emit](https://aframe.io/docs/1.7.0/core/entity.html#emit-name-detail-bubbles) set to "false" parameter ensures the event won't bubble up to parents, so that you can target the animation at just one particular element.
159159

160160
This assumes that an animation has already been configured to respond to that custom start event, for example like this:
161161

docs/components/embedded.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ a-scene {
3434

3535
An inline example of an embedded scene:
3636

37-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
37+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
3838

3939
<style>
4040
#myEmbeddedScene {

docs/components/material.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ Let's walk through an [example CodePen][example] with step-by-step commentary.
417417
As always, we need to include the A-Frame script.
418418

419419
```js
420-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
420+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
421421
```
422422

423423
Next, we define any components and shaders we need after the A-Frame

docs/components/text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Lastly, you should specify the character set used in your HTML by using `<meta>`
186186
<html>
187187
<head>
188188
<meta charset="UTF-8">
189-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
189+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
190190
</head>
191191
<body>
192192
<a-scene>

docs/guides/building-a-360-image-gallery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ need to know the component's npm package name and the path:
166166
<html>
167167
<head>
168168
<title>360° Image Browser</title>
169-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
169+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
170170
<script src="https://unpkg.com/[email protected]/dist/aframe-template-component.min.js"></script>
171171
<script src="https://unpkg.com/[email protected]/dist/aframe-layout-component.min.js"></script>
172172
<script src="https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js"></script>

docs/guides/building-a-basic-scene.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ We start out with a minimal HTML structure:
4040
```html
4141
<html>
4242
<head>
43-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
43+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
4444
</head>
4545
<body>
4646
<a-scene>
@@ -223,7 +223,7 @@ First, include the environment component using a script tag after A-Frame:
223223

224224
```html
225225
<head>
226-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
226+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
227227
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
228228
</head>
229229
```

docs/guides/building-a-minecraft-demo.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mobile and desktop.
2525
We'll start off with this skeleton HTML:
2626

2727
```html
28-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
28+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
2929

3030
<body>
3131
<a-scene>
@@ -46,7 +46,7 @@ The texture of the ground we'll be using is hosted at
4646
our assets, and create a thin cylinder entity pointing to that texture:
4747

4848
```html
49-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
49+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
5050

5151
<a-scene>
5252
<a-cylinder id="ground" src="https://cdn.aframe.io/a-painter/images/floor.jpg" radius="32" height="0.1"></a-cylinder>
@@ -57,7 +57,7 @@ See a live version [here](https://aframe.io/aframe/examples/docs/aincraft/step1.
5757

5858
### Preloading Assets
5959

60-
[assets]: https://aframe.io/docs/1.6.0/core/asset-management-system.html
60+
[assets]: https://aframe.io/docs/1.7.0/core/asset-management-system.html
6161

6262
Specifying a URL via the `src` attribute will load the texture at runtime.
6363
Since network requests can negatively impact render performance, we can
@@ -73,7 +73,7 @@ Let's move our ground texture to `<a-assets>` to be preloaded using an
7373
`<img>` element:
7474

7575
```html
76-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
76+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
7777

7878
<a-scene>
7979
<a-assets>
@@ -88,7 +88,7 @@ See a live version [here](https://aframe.io/aframe/examples/docs/aincraft/step2.
8888

8989
## Adding a Background
9090

91-
[a-sky]: https://aframe.io/docs/1.6.0/primitives/a-sky.html
91+
[a-sky]: https://aframe.io/docs/1.7.0/primitives/a-sky.html
9292
[flickr]: https://www.flickr.com/groups/equirectangular/
9393

9494
[gradient]: https://github.com/mrxz/fern-aframe-components/tree/main/sky-background
@@ -109,7 +109,7 @@ half with `theta-length="90"`, and we'll give our sphere a radius of 30 meters
109109
to match the ground:
110110

111111
```html
112-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
112+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
113113

114114
<a-scene>
115115
<a-assets>
@@ -139,15 +139,15 @@ from scratch.
139139

140140
### Entity-Component Pattern
141141

142-
[entity]: https://aframe.io/docs/1.6.0/core/entity.html
142+
[entity]: https://aframe.io/docs/1.7.0/core/entity.html
143143

144144
Every single object in an A-Frame scene is [`<a-entity>`][entity], which by itself
145145
doesn't do anything, like an empty `<div>`. We plug in components (**not to be
146146
confused with Web or React Components**) to that entity to provide with
147147
appearance, behavior , and logic.
148148

149-
[geometry]: https://aframe.io/docs/1.6.0/components/geometry.html
150-
[material]: https://aframe.io/docs/1.6.0/components/material.html
149+
[geometry]: https://aframe.io/docs/1.7.0/components/geometry.html
150+
[material]: https://aframe.io/docs/1.7.0/components/material.html
151151

152152
For a box, we attach and configure A-Frame's basic [geometry] and [material]
153153
components. Components are represented as HTML attributes, and component
@@ -189,7 +189,7 @@ AFRAME.registerComponent('random-color', {
189189
});
190190
```
191191

192-
[js]: https://aframe.io/docs/1.6.0/introduction/javascript-events-dom-apis.html
192+
[js]: https://aframe.io/docs/1.7.0/introduction/javascript-events-dom-apis.html
193193

194194
For the random color component, we want to set a random color on the entity
195195
that this component is attached to. Components have a reference to the entity
@@ -234,7 +234,7 @@ to plug in the `random-color` component. We'll save the component as a JS file
234234
and include it before the scene:
235235

236236
```html
237-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
237+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
238238
<script src="components/random-color.js"></script>
239239

240240
<a-scene>
@@ -301,14 +301,14 @@ to describe all the voxels in our scene.
301301

302302
### Mixins
303303

304-
[mixin]: https://aframe.io/docs/1.6.0/core/mixins.html
304+
[mixin]: https://aframe.io/docs/1.7.0/core/mixins.html
305305

306306
We can create [a mixin][mixin] to define a reusable bundle of components.
307307
Instead of `<a-entity>`, which adds an object to the scene, we'll describe it
308308
using `<a-mixin>` which can be reused to create voxels like a prefab:
309309

310310
```html
311-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
311+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
312312
<script src="components/random-color.js"></script>
313313
<script src="components/snap.js"></script>
314314

@@ -386,7 +386,7 @@ To enable this, let's first define a `player` entity that wraps the controllers
386386
and the camera:
387387

388388
```html
389-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
389+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
390390

391391
<!-- ... -->
392392

@@ -403,7 +403,7 @@ Following the README, we add the component via a `<script>` tag and just set
403403
the `blink-controls` component on the controller on the entity:
404404

405405
```html
406-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
406+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
407407
<script src="https://cdn.jsdelivr.net/npm/aframe-blink-controls/dist/aframe-blink-controls.min.js"></script>
408408

409409
<!-- ... -->
@@ -442,7 +442,7 @@ that attaches the clicking laser to VR tracked controllers. Like the
442442
`laser-controls` component. This time to the right hand:
443443

444444
```html
445-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
445+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
446446
<script src="https://cdn.jsdelivr.net/npm/aframe-blink-controls/dist/aframe-blink-controls.min.js"></script>
447447

448448
<!-- ... -->

docs/introduction/entity-component-system.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Now we can include it into our HTML:
419419
```html
420420
<html>
421421
<head>
422-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
422+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
423423
<script src="https://unpkg.com/@c-frame/[email protected]/dist/aframe-particle-system-component.min.js"></script>
424424
</head>
425425
<body>
@@ -440,7 +440,7 @@ Now we can include it into our HTML:
440440
```html
441441
<html>
442442
<head>
443-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
443+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
444444
<script src="https://unpkg.com/@c-frame/[email protected]/dist/aframe-particle-system-component.min.js"></script>
445445
</head>
446446
<body>
@@ -475,7 +475,7 @@ Registry and using the JSDELIVR CDN. This example can also be viewed in the [A-
475475
<head>
476476
<title>Community Components Example</title>
477477
<meta name="description" content="Community Components Example">
478-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
478+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
479479
<script src="https://unpkg.com/@c-frame/[email protected]/dist/aframe-particle-system-component.min.js"></script>
480480
<script src="https://cdn.jsdelivr.net/npm/aframe-simple-sun-sky@^1.2.2/simple-sun-sky.js"></script>
481481
<script src="https://cdn.jsdelivr.net/gh/c-frame/[email protected]/dist/aframe-extras.min.js"></script>

docs/introduction/faq.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use of resources, we will need deeper understanding about 3D graphics. See
6262
[release]: https://github.com/aframevr/aframe/releases
6363
[webxr]: https://immersive-web.github.io/webxr/
6464

65-
If you are using A-Frame 1.6.0 or older you probably need to update to the [latest release][release]. Browsers are migrating to the [WebXR standard][webxr] and old versions might no longer work.
65+
If you are using A-Frame 1.7.0 or older you probably need to update to the [latest release][release]. Browsers are migrating to the [WebXR standard][webxr] and old versions might no longer work.
6666

6767
You also have to serve your content over HTTPS. The WebXR API won't be available over HTTP.
6868

@@ -372,7 +372,7 @@ You can load A-Frame as an ES module using a [side effect import](https://develo
372372
<script type="importmap">
373373
{
374374
"imports": {
375-
"aframe": "https://aframe.io/releases/1.6.0/aframe.min.js",
375+
"aframe": "https://aframe.io/releases/1.7.0/aframe.min.js",
376376
}
377377
}
378378
</script>
@@ -407,8 +407,8 @@ Make sure the three and A-Frame versions are compatible. See browser console (or
407407
{
408408
"imports": {
409409
"aframe": "https://aframe.io/releases/1.7.0/aframe.module.min.js",
410-
"three": "https://cdn.jsdelivr.net/npm/super-three@0.172.0/build/three.module.js",
411-
"three/addons/": "https://cdn.jsdelivr.net/npm/super-three@0.172.0/examples/jsm/",
410+
"three": "https://cdn.jsdelivr.net/npm/super-three@0.173.4/build/three.module.js",
411+
"three/addons/": "https://cdn.jsdelivr.net/npm/super-three@0.173.4/examples/jsm/",
412412
"aframe-extras/controls": "https://cdn.jsdelivr.net/gh/c-frame/[email protected]/dist/aframe-extras.controls.min.js"
413413
}
414414
}

docs/introduction/html-and-primitives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ environment, place the camera, etc.
5959
```html
6060
<html>
6161
<head>
62-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
62+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
6363
</head>
6464
<body>
6565
<a-scene>
@@ -130,7 +130,7 @@ the physics components via HTML attributes:
130130
```html
131131
<html>
132132
<head>
133-
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
133+
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
134134
<script src="https://unpkg.com/@c-frame/[email protected]/dist/aframe-physics-system.min.js"></script>
135135
</head>
136136
<body>

0 commit comments

Comments
 (0)