mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-10 00:36:52 +00:00
25 lines
493 B
JavaScript
25 lines
493 B
JavaScript
// Copyright (C) 2018 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
var pt = new Point()
|
|
console.assert(pt.x == 0)
|
|
console.assert(pt.y == 0)
|
|
|
|
pt = new Point(1, 2)
|
|
console.assert(pt.x == 1)
|
|
console.assert(pt.y == 2)
|
|
|
|
var pt2 = new Point(pt)
|
|
console.assert(pt2.x == 1)
|
|
console.assert(pt2.y == 2)
|
|
|
|
pt.x = 5;
|
|
pt.y = 6;
|
|
console.assert(pt.x == 5)
|
|
console.assert(pt.y == 6)
|
|
|
|
// TODO fix this
|
|
console.log(JSON.stringify(pt))
|