<commit_before><commit_msg>Adding rectangle field class<commit_after>/**
 * @fileOverview This file defines the distance field for a rectangle
 * @author <NAME></a>
 * @exports RectField
 */
var Point = require('../geometry/point');
var PathField = require('../fields/pathfield');

module.exports = (function(){

'use strict';

/**
* Creates a new RectField object
* @class
* @constructor
* @alias RectField
* @extends PathField
*/
var RectField = function(rect, order, closed, strokeWidth, bounds) {
  var points = [
    new Point(rect.left, rect.bottom),
    new Point(rect.right, rect.bottom),
    new Point(rect.right, rect.top),
    new Point(rect.left, rect.top)
  ];

  PathField.call(this, points, order, closed, strokeWidth, bounds);
};
RectField.prototype = Object.create(PathField.prototype);
RectField.prototype.constructor = RectField;

return RectField;

}());
{'fraction_non_alphanumeric': 0.14645308924485126, 'fraction_numerical': 0.0, 'mean_word_length': 4.645161290322581, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '623124', 'n_tokens_mistral': 265, 'n_tokens_neox': 261, 'n_words': 72}