OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 var api = new Object(); | 5 var api = {}; |
6 | 6 |
7 /** | 7 /** |
8 * Enumeration of scene update commands. | 8 * Enumeration of scene update commands. |
9 * @enum {number} | 9 * @enum {number} |
10 * @const | 10 * @const |
11 */ | 11 */ |
12 api.Command = { | 12 api.Command = { |
13 'ADD_ELEMENT': 0, | 13 'ADD_ELEMENT': 0, |
14 'UPDATE_ELEMENT': 1, | 14 'UPDATE_ELEMENT': 1, |
15 'REMOVE_ELEMENT': 2, | 15 'REMOVE_ELEMENT': 2, |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 * @param {number} y | 353 * @param {number} y |
354 * @param {number} z | 354 * @param {number} z |
355 */ | 355 */ |
356 setTranslation(x, y, z) { | 356 setTranslation(x, y, z) { |
357 this.property = api.Property.TRANSLATION; | 357 this.property = api.Property.TRANSLATION; |
358 this.to.x = x; | 358 this.to.x = x; |
359 this.to.y = y; | 359 this.to.y = y; |
360 this.to.z = z; | 360 this.to.z = z; |
361 } | 361 } |
362 }; | 362 }; |
OLD | NEW |