mirror of https://github.com/luileito/jsketch.git
Fixed drawing first stroke point
This commit is contained in:
parent
924b50263e
commit
c1ba4fe577
|
|
@ -411,7 +411,7 @@
|
||||||
var p = getMousePos(e);
|
var p = getMousePos(e);
|
||||||
// Mark visually 1st point of stroke.
|
// Mark visually 1st point of stroke.
|
||||||
if (options.graphics.firstPointSize > 0) {
|
if (options.graphics.firstPointSize > 0) {
|
||||||
data.sketch.fillCircle(p.x, p.y, options.graphics.firstPointSize);
|
data.sketch.beginFill(options.graphics.fillStyle).fillCircle(p.x, p.y, options.graphics.firstPointSize).endFill();
|
||||||
}
|
}
|
||||||
// Ensure that coords is properly initialized.
|
// Ensure that coords is properly initialized.
|
||||||
if (!data.coords[idx]) {
|
if (!data.coords[idx]) {
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,7 @@
|
||||||
var p = getMousePos(e);
|
var p = getMousePos(e);
|
||||||
// Mark visually 1st point of stroke.
|
// Mark visually 1st point of stroke.
|
||||||
if (options.graphics.firstPointSize > 0) {
|
if (options.graphics.firstPointSize > 0) {
|
||||||
data.sketch.fillCircle(p.x, p.y, options.graphics.firstPointSize);
|
data.sketch.beginFill(options.graphics.fillStyle).fillCircle(p.x, p.y, options.graphics.firstPointSize).endFill();
|
||||||
}
|
}
|
||||||
// Ensure that coords is properly initialized.
|
// Ensure that coords is properly initialized.
|
||||||
if (!data.coords[idx]) {
|
if (!data.coords[idx]) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue