//CLASS:几何类型点 function Point(x, y,radius) { Geometry.apply(this, arguments); this.radius = radius; this.x = x; this.y = y; }; Point.prototype = new Geometry(); //point类的横坐标。 Point.prototype.x = null; //point类的纵坐标。 Point.prototype.y = null; //得到点的范围。 Point.prototype.getBounds = function () { if(!this.bounds) { var x = this.x; var y = this.y; this.bounds = new CanvasSketch.Bounds(x, y, x, y); return this.bounds; } else { return this.bounds; } }; //clone方法。 Point.prototype.clone = function () { return new Point(this.x, this.y); }; Point.prototype.geoType = "Point";