Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ goog.require('goog.math.Size');
* @param {number} ry The Y-radius of the ellipse.
* @param {number} fromAngle The starting angle of the arc (in degrees).
* @param {number} extent The angular length of the arc (in degrees).
* @param {boolean=} opt_addFirstPointToResult Defines whether the intial point is added to the result. It is “false”
* @param {boolean=} opt_addFirstPointToResult Defines whether the initial point is added to the result. It is “false”
* by default, and if it is set to “true”, the first pair of coordinates in the result will refer to the first point, and the curves, each defined by 3 pairs of coordinates,
* will start from the second index of the array.
* @return {!Array.<number>} The array of the parameters of the curves related to the arc. One curve is defined by 3 pairs of
Expand Down
2 changes: 1 addition & 1 deletion src/vector/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ acgraph.vector.Element.prototype.rotate = function(degrees, opt_cx, opt_cy) {

/**
Rotates a shape around the given anchor.
@param {number} degrees Rotation angle in degress.
@param {number} degrees Rotation angle in degrees.
@param {(acgraph.vector.Anchor|string)=} opt_anchor Rotation anchor.
@return {!acgraph.vector.Element} {@link acgraph.vector.Element} instance for method chaining.
*/
Expand Down
12 changes: 6 additions & 6 deletions src/vector/PathBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ acgraph.vector.PathBase.forEachSegment_ = function(callback, segments, count, po
* @param {...number} var_args Segments coordinates.
* @this {{rect: goog.math.Rect, transform: goog.math.AffineTransform}} Assumed context
* is a special object that contains a rectangle which is to be extended and which
* will contains the result, as well as trasformation object, if needed.
* will contains the result, as well as transformation object, if needed.
* @private
*/
acgraph.vector.PathBase.calcLineBounds_ = function(var_args) {
Expand Down Expand Up @@ -177,7 +177,7 @@ acgraph.vector.PathBase.calcLineBounds_ = function(var_args) {
* @param {number} endY Y coordinate of coordinate.
* @this {{rect: goog.math.Rect, transform: goog.math.AffineTransform}} Assumed context
* is a special object that contains a rectangle which is to be extended and which
* will contains the result, as well as trasformation object, if needed.
* will contains the result, as well as transformation object, if needed.
* @private
*/
acgraph.vector.PathBase.calcArcBounds_ = function(startX, startY, rx, ry, angle, extent, endX, endY) {
Expand Down Expand Up @@ -257,7 +257,7 @@ acgraph.vector.PathBase.calcArcBounds_ = function(startX, startY, rx, ry, angle,
* each including 2 control points and an endpoint. Each point is defined by a pair of coordinates – X and Y.
* @this {{rect: goog.math.Rect, transform: goog.math.AffineTransform}} Assumed context
* is a special object that contains a rectangle which is to be extended and which
* will contains the result, as well as trasformation object, if needed.
* will contains the result, as well as transformation object, if needed.
* @private
*/
acgraph.vector.PathBase.calcCurveBounds_ = function(var_args) {
Expand All @@ -275,15 +275,15 @@ acgraph.vector.PathBase.calcCurveBounds_ = function(var_args) {
* Very rough calculation of bounding rectangle (as IE does in VML) for Bezier curves.
* Each curve is defined by 3 points (6 coordinates) – 2 control points and an endpoint.
*
* Calculation is bazed on fact that any Bezier curve always contained withing trapeziod
* Calculation is bazed on fact that any Bezier curve always contained withing trapezoid
* built on start and end points and two control points. So, we can just add all 4 points
* into the boundin rectangle.
*
* @param {...number} var_args The coordinates defining the curves. First pair is the initial point, then there are sets of 3 pairs,
* each including 2 control points and an endpoint. Each point is defined by a pair of coordinates – X and Y.
* @this {{rect: goog.math.Rect, transform: goog.math.AffineTransform}} Assumed context
* is a special object that contains a rectangle which is to be extended and which
* will contains the result, as well as trasformation object, if needed.
* will contains the result, as well as transformation object, if needed.
* @private
*/
acgraph.vector.PathBase.calcRoughCurveBounds_ = function(var_args) {
Expand Down Expand Up @@ -1002,7 +1002,7 @@ acgraph.vector.PathBase.boundsCalculationMap_ = (function() {


/**
* Path lenght.
* Path length.
* @return {number} .
*/
acgraph.vector.PathBase.prototype.getLength = function() {
Expand Down
2 changes: 1 addition & 1 deletion src/vector/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ acgraph.vector.Renderer.prototype.setTransformation = goog.abstractMethod;


/**
* Sets transofrmatin to DOM path.
* Sets transformation to DOM path.
* @param {!acgraph.vector.PathBase} element Element.
*/
acgraph.vector.Renderer.prototype.setPathTransformation = goog.abstractMethod;
Expand Down
4 changes: 2 additions & 2 deletions src/vector/Stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ acgraph.vector.Stage.prototype.getDefs = function() {


/**
TODO: We need to create method to clear SVG because there is no sence to clear defs only.<br/>
TODO: We need to create method to clear SVG because there is no sense to clear defs only.<br/>
Destroy all content (e.g. gradients, some fill and etc.) in defs node.
@deprecated used only in AnyChartHTML5 v6.
*/
Expand Down Expand Up @@ -1097,7 +1097,7 @@ acgraph.vector.Stage.prototype.acquireDomChange = function(changeType) {

/**
* Tries to reserve no more than one third of all available changes.
* When rendering is async there is no sence in creating all elements and then hit the limit
* When rendering is async there is no sense in creating all elements and then hit the limit
* of adding - it is better to take into account that adding will require the same number
* of operations as creation.
* @return {number} Number of changes allowed.
Expand Down
2 changes: 1 addition & 1 deletion src/vector/vml/Defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ goog.require('acgraph.vector.vml.ShapeType');
* is a critical task. The class palys the role of an element manager: elements can be
* assigned to other VML elements (using a reference to their IDs), which will inherit their properties. In VML
* ShapeType elements are used for that. They are hidden by default, but if a ShapeType element is
* assigned using a reference to, for example, a Shape element, the latter inherits the ShapeType propeties and applies them to the shape. In a ShapeType
* assigned using a reference to, for example, a Shape element, the latter inherits the ShapeType properties and applies them to the shape. In a ShapeType
* you can also define subnodes, such as fill, stroke, skew, textpath, and so on. A Shape element to which such a ShapeType
* will be applied will inherit all its properties and will be painted with the given fill and stroke. Let us suppose there are 1000 Shape elements
* with the same fill and stroke (that require DOM elements). Without a ShapeType, one would have to assign fill and stroke as DOM elements
Expand Down