New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@visactor/vrender-core

Package Overview
Dependencies
Maintainers
16
Versions
407
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visactor/vrender-core - npm Package Compare versions

Comparing version 0.22.0-vstory.10 to 0.22.0-vstory.11

3

cjs/canvas/util.js

@@ -388,2 +388,3 @@ "use strict";

exports.contain = contain, exports.containStroke = containStroke;
exports.contain = contain, exports.containStroke = containStroke;
//# sourceMappingURL=util.js.map

@@ -53,3 +53,2 @@ "use strict";

exports.ColorStore = ColorStore, ColorStore.store255 = {}, ColorStore.store1 = {};
//# sourceMappingURL=store.js.map
exports.ColorStore = ColorStore, ColorStore.store255 = {}, ColorStore.store1 = {};

@@ -344,3 +344,3 @@ "use strict";

return this.animates.set(animate.id, animate), animate.onRemove((() => {
this.animates.delete(animate.id);
animate.stop(), this.animates.delete(animate.id);
})), animate;

@@ -535,3 +535,3 @@ }

this.animates.forEach((a => {
a.setTimeline(timeline);
a.timeline === animate_1.defaultTimeline && a.setTimeline(timeline);
}));

@@ -636,3 +636,3 @@ }

detachShadow() {
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
}

@@ -694,3 +694,3 @@ toJson() {

release() {
this.releaseStatus = "released", application_1.application.graphicService.onRelease(this);
this.releaseStatus = "released", this.stopAnimates(), application_1.application.graphicService.onRelease(this);
}

@@ -697,0 +697,0 @@ _emitCustomEvent(type, context) {

@@ -84,3 +84,4 @@ import type { IAABBBounds, Matrix } from '@visactor/vutils';

getNoWorkAnimateAttr(): Record<string, number>;
release(all?: boolean): void;
}
export declare function createGroup(attributes: IGroupGraphicAttribute): IGroup;

@@ -193,2 +193,7 @@ "use strict";

}
release(all) {
all && this.forEachChildren((g => {
g.release(all);
})), super.release();
}
}

@@ -195,0 +200,0 @@

@@ -15,3 +15,3 @@ import type { IPointLike } from '@visactor/vutils';

getFormat(key: string): any;
getAllFormat(key: string): any;
getAllFormat(key: string, includeUndefined?: boolean): any;
}

@@ -18,0 +18,0 @@ export declare const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";

@@ -41,3 +41,3 @@ "use strict";

}
getAllFormat(key) {
getAllFormat(key, includeUndefined) {
const valSet = new Set, minCursorIdx = Math.min(this.selectionStartCursorIdx, this.curCursorIdx), maxCursorIdx = Math.max(this.selectionStartCursorIdx, this.curCursorIdx);

@@ -47,3 +47,3 @@ if (minCursorIdx === maxCursorIdx) return [ this._getFormat(key, minCursorIdx) ];

const val = this._getFormat(key, i);
val && valSet.add(val);
(includeUndefined || void 0 !== val) && valSet.add(val);
}

@@ -207,3 +207,4 @@ return Array.from(valSet.values());

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.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1),
this.selectionStartCursorIdx = this.curCursorIdx;
const pos = this.computedCursorPosByCursorIdx(this.curCursorIdx, this.currRt);

@@ -384,3 +385,5 @@ this.setCursorAndTextArea(pos.x, pos.y1, pos.y2, this.currRt), this.hideSelection();

addAnimateToLine(line) {
line.animates && line.animates.forEach((animate => {
line.setAttributes({
opacity: 1
}), line.animates && line.animates.forEach((animate => {
animate.stop(), animate.release();

@@ -387,0 +390,0 @@ }));

@@ -374,2 +374,3 @@ import { isPointInLine, pi, pi2 } from "@visactor/vutils";

return containPath(commands, lineWidth, !0, x, y);
}
}
//# sourceMappingURL=util.js.map

@@ -47,3 +47,2 @@ import { Color } from "@visactor/vutils";

ColorStore.store255 = {}, ColorStore.store1 = {};
//# sourceMappingURL=store.js.map
ColorStore.store255 = {}, ColorStore.store1 = {};

@@ -13,3 +13,3 @@ import { OBBBounds } from "@visactor/vutils";

import { Animate, DefaultStateAnimateConfig } from "../animate";
import { Animate, DefaultStateAnimateConfig, defaultTimeline } from "../animate";

@@ -363,3 +363,3 @@ import { interpolateColor } from "../color-string/interpolate";

return this.animates.set(animate.id, animate), animate.onRemove((() => {
this.animates.delete(animate.id);
animate.stop(), this.animates.delete(animate.id);
})), animate;

@@ -553,3 +553,3 @@ }

this.animates.forEach((a => {
a.setTimeline(timeline);
a.timeline === defaultTimeline && a.setTimeline(timeline);
}));

@@ -654,3 +654,3 @@ }

detachShadow() {
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
}

@@ -711,3 +711,3 @@ toJson() {

release() {
this.releaseStatus = "released", application.graphicService.onRelease(this);
this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
}

@@ -714,0 +714,0 @@ _emitCustomEvent(type, context) {

@@ -84,3 +84,4 @@ import type { IAABBBounds, Matrix } from '@visactor/vutils';

getNoWorkAnimateAttr(): Record<string, number>;
release(all?: boolean): void;
}
export declare function createGroup(attributes: IGroupGraphicAttribute): IGroup;

@@ -198,2 +198,7 @@ import { Point } from "@visactor/vutils";

}
release(all) {
all && this.forEachChildren((g => {
g.release(all);
})), super.release();
}
}

@@ -200,0 +205,0 @@

@@ -15,3 +15,3 @@ import type { IPointLike } from '@visactor/vutils';

getFormat(key: string): any;
getAllFormat(key: string): any;
getAllFormat(key: string, includeUndefined?: boolean): any;
}

@@ -18,0 +18,0 @@ export declare const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";

@@ -46,3 +46,3 @@ import { isObject, merge } from "@visactor/vutils";

}
getAllFormat(key) {
getAllFormat(key, includeUndefined) {
const valSet = new Set, minCursorIdx = Math.min(this.selectionStartCursorIdx, this.curCursorIdx), maxCursorIdx = Math.max(this.selectionStartCursorIdx, this.curCursorIdx);

@@ -52,3 +52,3 @@ if (minCursorIdx === maxCursorIdx) return [ this._getFormat(key, minCursorIdx) ];

const val = this._getFormat(key, i);
val && valSet.add(val);
(includeUndefined || void 0 !== val) && valSet.add(val);
}

@@ -210,3 +210,4 @@ return Array.from(valSet.values());

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.curCursorIdx < -.1 ? this.curCursorIdx = -.1 : this.curCursorIdx > totalCursorCount + .1 && (this.curCursorIdx = totalCursorCount + .1),
this.selectionStartCursorIdx = this.curCursorIdx;
const pos = this.computedCursorPosByCursorIdx(this.curCursorIdx, this.currRt);

@@ -385,3 +386,5 @@ this.setCursorAndTextArea(pos.x, pos.y1, pos.y2, this.currRt), this.hideSelection();

addAnimateToLine(line) {
line.animates && line.animates.forEach((animate => {
line.setAttributes({
opacity: 1
}), line.animates && line.animates.forEach((animate => {
animate.stop(), animate.release();

@@ -388,0 +391,0 @@ }));

{
"name": "@visactor/vrender-core",
"version": "0.22.0-vstory.10",
"version": "0.22.0-vstory.11",
"description": "",

@@ -5,0 +5,0 @@ "sideEffects": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc