mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Merge pull request #1002 from sapics/curve-divide
Call curve._changed at curve.divideAtTime
This commit is contained in:
commit
345730f634
3 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,7 @@ var Point = Base.extend(/** @lends Point# */{
|
||||||
* coordinates.
|
* coordinates.
|
||||||
*
|
*
|
||||||
* @name Point#initialize
|
* @name Point#initialize
|
||||||
* @param {array} array
|
* @param {Array} array
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* // Creating a point at x: 10, y: 5 using an array of numbers:
|
* // Creating a point at x: 10, y: 5 using an array of numbers:
|
||||||
|
|
|
@ -55,7 +55,7 @@ XMLSerializer.prototype.serializeToString = function(node) {
|
||||||
function DOMParser() {
|
function DOMParser() {
|
||||||
}
|
}
|
||||||
|
|
||||||
DOMParser.prototype.parseFromString = function(string, contenType) {
|
DOMParser.prototype.parseFromString = function(string, contentType) {
|
||||||
// Create a new document, since we're supposed to always return one.
|
// Create a new document, since we're supposed to always return one.
|
||||||
var doc = document.implementation.createHTMLDocument(''),
|
var doc = document.implementation.createHTMLDocument(''),
|
||||||
body = doc.body,
|
body = doc.body,
|
||||||
|
|
|
@ -506,6 +506,7 @@ var Curve = Base.extend(/** @lends Curve# */{
|
||||||
} else {
|
} else {
|
||||||
// otherwise create it from the result of split
|
// otherwise create it from the result of split
|
||||||
this._segment2 = segment;
|
this._segment2 = segment;
|
||||||
|
this._changed();
|
||||||
res = new Curve(segment, segment2);
|
res = new Curve(segment, segment2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue