Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var createRectangle=function createRectangle(strokeColor,strokeWeight,strokeOpacity,fillColor,fillOpacity)
- {
- configurePolygonOptions.apply(this,[strokeColor,strokeWeight,strokeOpacity,fillColor,fillOpacity]);
- };
- createRectangle.prototype=Object.create(configurePolygonOptions.prototype);
- createRectangle.prototype.constructor=createRectangle;
- createRectangle.prototype.setBounds=function(bounds)
- {
- console.log('setting bounds');
- this.bounds=bounds;
- };
- var configureCircle=function configureCircle(strokeColor,strokeWeight,strokeOpacity,fillColor,fillOpacity)
- {
- configurePolygonOptions.apply(this,[strokeColor,strokeWeight,strokeOpacity,fillColor,fillOpacity]);
- //configurePolygonOptions.call(this);
- };
- configureCircle.prototype=Object.create(configurePolygonOptions.prototype);
- configureCircle.prototype.constructor=configureCircle;
- configureCircle.prototype.setCenter=function(center)
- {
- this.center=center;
- };
- configureCircle.prototype.setRadius=function(radius)
- {
- this.radius=radius;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement