fix arrow head direction. close #501

This commit is contained in:
Anton Lavrenov
2021-05-06 08:41:34 -05:00
parent d54832865d
commit 4f11244607
3 changed files with 45 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import { assert } from 'chai';
import { Shape } from '../../src/Shape.js';
import { addStage, Konva, compareLayers } from './test-utils';
import { addStage, Konva, compareLayers, isNode } from './test-utils';
describe('Container', function () {
// ======================================================
@@ -71,6 +71,10 @@ describe('Container', function () {
// ======================================================
it('clip function', function () {
if (isNode) {
// how to use Path2D in nodejs env?
return;
}
var stage = addStage();
// cliped by circle is the same as draw circle