@visactor/vrender 0.22.0-vstory.10 → 0.22.0-vstory.11
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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +16 -9
- package/dist/index.js +16 -9
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits");
|
|
23
23
|
|
|
24
|
-
exports.version = "0.22.0-vstory.
|
|
24
|
+
exports.version = "0.22.0-vstory.11", (0, vrender_core_1.preLoadAllModule)(), (0,
|
|
25
25
|
vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
|
|
26
26
|
vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
|
|
27
27
|
(0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,kBAAkB,CAAC;AAE1C,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.22.0-vstory.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,kBAAkB,CAAC;AAE1C,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.22.0-vstory.11\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -10113,7 +10113,7 @@ class Graphic extends Node {
|
|
|
10113
10113
|
null != onStart && animate.onStart(onStart), null != onFrame && animate.onFrame(onFrame), null != onEnd && animate.onEnd(onEnd), null != onRemove && animate.onRemove(onRemove), animate.interpolateFunc = params.interpolate;
|
|
10114
10114
|
}
|
|
10115
10115
|
return this.animates.set(animate.id, animate), animate.onRemove(() => {
|
|
10116
|
-
this.animates.delete(animate.id);
|
|
10116
|
+
animate.stop(), this.animates.delete(animate.id);
|
|
10117
10117
|
}), animate;
|
|
10118
10118
|
}
|
|
10119
10119
|
onAttributeUpdate(context) {
|
|
@@ -10317,7 +10317,7 @@ class Graphic extends Node {
|
|
|
10317
10317
|
if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this.animates && this.animates.size) {
|
|
10318
10318
|
const timeline = stage.getTimeline();
|
|
10319
10319
|
this.animates.forEach(a => {
|
|
10320
|
-
a.setTimeline(timeline);
|
|
10320
|
+
a.timeline === defaultTimeline && a.setTimeline(timeline);
|
|
10321
10321
|
});
|
|
10322
10322
|
}
|
|
10323
10323
|
this._onSetStage && this._onSetStage(this, stage, layer), application.graphicService.onSetStage(this, stage);
|
|
@@ -10421,7 +10421,7 @@ class Graphic extends Node {
|
|
|
10421
10421
|
return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application.graphicService.creator.shadowRoot(this), this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
|
|
10422
10422
|
}
|
|
10423
10423
|
detachShadow() {
|
|
10424
|
-
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
|
|
10424
|
+
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
|
|
10425
10425
|
}
|
|
10426
10426
|
toJson() {
|
|
10427
10427
|
return {
|
|
@@ -10473,7 +10473,7 @@ class Graphic extends Node {
|
|
|
10473
10473
|
});
|
|
10474
10474
|
}
|
|
10475
10475
|
release() {
|
|
10476
|
-
this.releaseStatus = "released", application.graphicService.onRelease(this);
|
|
10476
|
+
this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
|
|
10477
10477
|
}
|
|
10478
10478
|
_emitCustomEvent(type, context) {
|
|
10479
10479
|
var _a, _b;
|
|
@@ -11049,6 +11049,11 @@ class Group extends Graphic {
|
|
|
11049
11049
|
getNoWorkAnimateAttr() {
|
|
11050
11050
|
return Group.NOWORK_ANIMATE_ATTR;
|
|
11051
11051
|
}
|
|
11052
|
+
release(all) {
|
|
11053
|
+
all && this.forEachChildren(g => {
|
|
11054
|
+
g.release(all);
|
|
11055
|
+
}), super.release();
|
|
11056
|
+
}
|
|
11052
11057
|
}
|
|
11053
11058
|
Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
11054
11059
|
function createGroup(attributes) {
|
|
@@ -20485,14 +20490,14 @@ class Selection {
|
|
|
20485
20490
|
getFormat(key) {
|
|
20486
20491
|
return this.getAllFormat(key)[0];
|
|
20487
20492
|
}
|
|
20488
|
-
getAllFormat(key) {
|
|
20493
|
+
getAllFormat(key, includeUndefined) {
|
|
20489
20494
|
const valSet = new Set(),
|
|
20490
20495
|
minCursorIdx = Math.min(this.selectionStartCursorIdx, this.curCursorIdx),
|
|
20491
20496
|
maxCursorIdx = Math.max(this.selectionStartCursorIdx, this.curCursorIdx);
|
|
20492
20497
|
if (minCursorIdx === maxCursorIdx) return [this._getFormat(key, minCursorIdx)];
|
|
20493
20498
|
for (let i = Math.ceil(minCursorIdx); i <= Math.floor(maxCursorIdx); i++) {
|
|
20494
20499
|
const val = this._getFormat(key, i);
|
|
20495
|
-
val && valSet.add(val);
|
|
20500
|
+
(includeUndefined || void 0 !== val) && valSet.add(val);
|
|
20496
20501
|
}
|
|
20497
20502
|
return Array.from(valSet.values());
|
|
20498
20503
|
}
|
|
@@ -20657,7 +20662,7 @@ class RichTextEditPlugin {
|
|
|
20657
20662
|
} = cache,
|
|
20658
20663
|
totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20659
20664
|
if (x) {
|
|
20660
|
-
x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1);
|
|
20665
|
+
x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1), this.selectionStartCursorIdx = this.curCursorIdx;
|
|
20661
20666
|
const pos = this.computedCursorPosByCursorIdx(this.curCursorIdx, this.currRt);
|
|
20662
20667
|
this.setCursorAndTextArea(pos.x, pos.y1, pos.y2, this.currRt), this.hideSelection();
|
|
20663
20668
|
}
|
|
@@ -20863,7 +20868,9 @@ class RichTextEditPlugin {
|
|
|
20863
20868
|
}), currRt.removeEventListener("pointerleave", this.handleLeave);
|
|
20864
20869
|
}
|
|
20865
20870
|
addAnimateToLine(line) {
|
|
20866
|
-
line.
|
|
20871
|
+
line.setAttributes({
|
|
20872
|
+
opacity: 1
|
|
20873
|
+
}), line.animates && line.animates.forEach(animate => {
|
|
20867
20874
|
animate.stop(), animate.release();
|
|
20868
20875
|
});
|
|
20869
20876
|
line.animate({
|
|
@@ -30475,7 +30482,7 @@ const registerWrapText = _registerWrapText;
|
|
|
30475
30482
|
|
|
30476
30483
|
const roughModule = _roughModule;
|
|
30477
30484
|
|
|
30478
|
-
const version = "0.22.0-vstory.
|
|
30485
|
+
const version = "0.22.0-vstory.11";
|
|
30479
30486
|
preLoadAllModule();
|
|
30480
30487
|
if (isBrowserEnv()) {
|
|
30481
30488
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -10119,7 +10119,7 @@
|
|
|
10119
10119
|
null != onStart && animate.onStart(onStart), null != onFrame && animate.onFrame(onFrame), null != onEnd && animate.onEnd(onEnd), null != onRemove && animate.onRemove(onRemove), animate.interpolateFunc = params.interpolate;
|
|
10120
10120
|
}
|
|
10121
10121
|
return this.animates.set(animate.id, animate), animate.onRemove(() => {
|
|
10122
|
-
this.animates.delete(animate.id);
|
|
10122
|
+
animate.stop(), this.animates.delete(animate.id);
|
|
10123
10123
|
}), animate;
|
|
10124
10124
|
}
|
|
10125
10125
|
onAttributeUpdate(context) {
|
|
@@ -10323,7 +10323,7 @@
|
|
|
10323
10323
|
if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this.animates && this.animates.size) {
|
|
10324
10324
|
const timeline = stage.getTimeline();
|
|
10325
10325
|
this.animates.forEach(a => {
|
|
10326
|
-
a.setTimeline(timeline);
|
|
10326
|
+
a.timeline === defaultTimeline && a.setTimeline(timeline);
|
|
10327
10327
|
});
|
|
10328
10328
|
}
|
|
10329
10329
|
this._onSetStage && this._onSetStage(this, stage, layer), application.graphicService.onSetStage(this, stage);
|
|
@@ -10427,7 +10427,7 @@
|
|
|
10427
10427
|
return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application.graphicService.creator.shadowRoot(this), this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
|
|
10428
10428
|
}
|
|
10429
10429
|
detachShadow() {
|
|
10430
|
-
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
|
|
10430
|
+
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
|
|
10431
10431
|
}
|
|
10432
10432
|
toJson() {
|
|
10433
10433
|
return {
|
|
@@ -10479,7 +10479,7 @@
|
|
|
10479
10479
|
});
|
|
10480
10480
|
}
|
|
10481
10481
|
release() {
|
|
10482
|
-
this.releaseStatus = "released", application.graphicService.onRelease(this);
|
|
10482
|
+
this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
|
|
10483
10483
|
}
|
|
10484
10484
|
_emitCustomEvent(type, context) {
|
|
10485
10485
|
var _a, _b;
|
|
@@ -11055,6 +11055,11 @@
|
|
|
11055
11055
|
getNoWorkAnimateAttr() {
|
|
11056
11056
|
return Group.NOWORK_ANIMATE_ATTR;
|
|
11057
11057
|
}
|
|
11058
|
+
release(all) {
|
|
11059
|
+
all && this.forEachChildren(g => {
|
|
11060
|
+
g.release(all);
|
|
11061
|
+
}), super.release();
|
|
11062
|
+
}
|
|
11058
11063
|
}
|
|
11059
11064
|
Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
11060
11065
|
function createGroup(attributes) {
|
|
@@ -20491,14 +20496,14 @@
|
|
|
20491
20496
|
getFormat(key) {
|
|
20492
20497
|
return this.getAllFormat(key)[0];
|
|
20493
20498
|
}
|
|
20494
|
-
getAllFormat(key) {
|
|
20499
|
+
getAllFormat(key, includeUndefined) {
|
|
20495
20500
|
const valSet = new Set(),
|
|
20496
20501
|
minCursorIdx = Math.min(this.selectionStartCursorIdx, this.curCursorIdx),
|
|
20497
20502
|
maxCursorIdx = Math.max(this.selectionStartCursorIdx, this.curCursorIdx);
|
|
20498
20503
|
if (minCursorIdx === maxCursorIdx) return [this._getFormat(key, minCursorIdx)];
|
|
20499
20504
|
for (let i = Math.ceil(minCursorIdx); i <= Math.floor(maxCursorIdx); i++) {
|
|
20500
20505
|
const val = this._getFormat(key, i);
|
|
20501
|
-
val && valSet.add(val);
|
|
20506
|
+
(includeUndefined || void 0 !== val) && valSet.add(val);
|
|
20502
20507
|
}
|
|
20503
20508
|
return Array.from(valSet.values());
|
|
20504
20509
|
}
|
|
@@ -20663,7 +20668,7 @@
|
|
|
20663
20668
|
} = cache,
|
|
20664
20669
|
totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20665
20670
|
if (x) {
|
|
20666
|
-
x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1);
|
|
20671
|
+
x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 2] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + .2 : x > 0 && columnInfo === lineInfo.paragraphs[lineInfo.paragraphs.length - 1] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx + 1 - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx > Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - .2 : x < 0 && columnInfo === lineInfo.paragraphs[0] && this.curCursorIdx < Math.round(this.curCursorIdx) ? this.curCursorIdx = this.curCursorIdx - 1 + .2 : this.curCursorIdx += x, this.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1), this.selectionStartCursorIdx = this.curCursorIdx;
|
|
20667
20672
|
const pos = this.computedCursorPosByCursorIdx(this.curCursorIdx, this.currRt);
|
|
20668
20673
|
this.setCursorAndTextArea(pos.x, pos.y1, pos.y2, this.currRt), this.hideSelection();
|
|
20669
20674
|
}
|
|
@@ -20869,7 +20874,9 @@
|
|
|
20869
20874
|
}), currRt.removeEventListener("pointerleave", this.handleLeave);
|
|
20870
20875
|
}
|
|
20871
20876
|
addAnimateToLine(line) {
|
|
20872
|
-
line.
|
|
20877
|
+
line.setAttributes({
|
|
20878
|
+
opacity: 1
|
|
20879
|
+
}), line.animates && line.animates.forEach(animate => {
|
|
20873
20880
|
animate.stop(), animate.release();
|
|
20874
20881
|
});
|
|
20875
20882
|
line.animate({
|
|
@@ -30481,7 +30488,7 @@
|
|
|
30481
30488
|
|
|
30482
30489
|
const roughModule = _roughModule;
|
|
30483
30490
|
|
|
30484
|
-
const version = "0.22.0-vstory.
|
|
30491
|
+
const version = "0.22.0-vstory.11";
|
|
30485
30492
|
preLoadAllModule();
|
|
30486
30493
|
if (isBrowserEnv()) {
|
|
30487
30494
|
loadBrowserEnv(container);
|