@wbiokr/arrow 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -0
- package/dist/bundle.cjs.js +2 -5
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +2 -5
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.esm.js
CHANGED
|
@@ -1312,22 +1312,20 @@ var ArrowEditor2 = /*#__PURE__*/function () {
|
|
|
1312
1312
|
if (this.selected) {
|
|
1313
1313
|
this.selected = null;
|
|
1314
1314
|
}
|
|
1315
|
-
this._hideToolbar();
|
|
1316
1315
|
this.render();
|
|
1317
1316
|
}
|
|
1318
1317
|
|
|
1319
1318
|
// 删除选中的箭头
|
|
1320
1319
|
}, {
|
|
1321
1320
|
key: "deleteSelected",
|
|
1322
|
-
value:
|
|
1323
|
-
// 删除选中的箭头
|
|
1324
|
-
function deleteSelected() {
|
|
1321
|
+
value: function deleteSelected() {
|
|
1325
1322
|
var _this4 = this;
|
|
1326
1323
|
if (this.selected) {
|
|
1327
1324
|
this.arrows = this.arrows.filter(function (a) {
|
|
1328
1325
|
return a !== _this4.selected;
|
|
1329
1326
|
});
|
|
1330
1327
|
this.selected = null;
|
|
1328
|
+
this._hideToolbar();
|
|
1331
1329
|
this.render();
|
|
1332
1330
|
}
|
|
1333
1331
|
}
|
|
@@ -1406,7 +1404,6 @@ var ArrowEditor2 = /*#__PURE__*/function () {
|
|
|
1406
1404
|
this.drawing = false;
|
|
1407
1405
|
this.current = null;
|
|
1408
1406
|
this.selected = null;
|
|
1409
|
-
this._hideToolbar();
|
|
1410
1407
|
this.render();
|
|
1411
1408
|
}
|
|
1412
1409
|
}]);
|