Socket
Socket
Sign inDemoInstall

js-draw

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-draw - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

dist/src/testing/createEditor.d.ts

2

dist/src/Editor.js

@@ -178,2 +178,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

key: evt.key,
ctrlKey: evt.ctrlKey,
})) {

@@ -335,3 +336,2 @@ evt.preventDefault();

result.setAttribute('height', `${rect.h}`);
console.log('res', result);
// Ensure the image can be identified as an SVG if downloaded.

@@ -338,0 +338,0 @@ // See https://jwatt.org/svg/authoring/

@@ -18,4 +18,4 @@ import Editor from './Editor';

new (element: AbstractComponent, applyByFlattening?: boolean): {
readonly "__#2@#element": AbstractComponent;
"__#2@#applyByFlattening": boolean;
readonly "__#679@#element": AbstractComponent;
"__#679@#applyByFlattening": boolean;
apply(editor: Editor): void;

@@ -22,0 +22,0 @@ unapply(editor: Editor): void;

@@ -9,2 +9,6 @@ import { EditorEventType } from '../types';

}
onPointerDown(_event) { return false; }
onPointerMove(_event) { }
onPointerUp(_event) { }
onGestureCancel() { }
onWheel(_event) {

@@ -11,0 +15,0 @@ return false;

@@ -7,4 +7,5 @@ export const defaultToolLocalization = {

twoFingerPanZoomTool: 'Panning and Zooming',
undoRedoTool: 'Undo/Redo',
toolEnabledAnnouncement: (toolName) => `${toolName} enabled`,
toolDisabledAnnouncement: (toolName) => `${toolName} disabled`,
};

@@ -8,2 +8,3 @@ import { InputEvtType, EditorEventType } from '../types';

import Color4 from '../Color4';
import UndoRedoShortcut from './UndoRedoShortcut';
export var ToolType;

@@ -16,2 +17,3 @@ (function (ToolType) {

ToolType[ToolType["PanZoom"] = 4] = "PanZoom";
ToolType[ToolType["UndoRedoShortcut"] = 5] = "UndoRedoShortcut";
})(ToolType || (ToolType = {}));

@@ -36,2 +38,3 @@ export default class ToolController {

new PanZoom(editor, PanZoomMode.TwoFingerGestures | PanZoomMode.AnyDevice, localization.twoFingerPanZoomTool),
new UndoRedoShortcut(editor),
];

@@ -38,0 +41,0 @@ primaryTools.forEach(tool => tool.setToolGroup(primaryToolEnabledGroup));

@@ -45,3 +45,9 @@ import { EditorEventType } from './types';

}
get undoStackSize() {
return this.undoStack.length;
}
get redoStackSize() {
return this.redoStack.length;
}
}
export default UndoRedoHistory;

@@ -13,3 +13,3 @@ import { CommandLocalization } from './commands/localization';

new (transform: Mat33): {
readonly "__#1@#inverseTransform": Mat33;
readonly "__#678@#inverseTransform": Mat33;
readonly transform: Mat33;

@@ -16,0 +16,0 @@ apply(editor: Editor): void;

{
"name": "js-draw",
"version": "0.0.8",
"version": "0.0.9",
"description": "Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript. ",

@@ -51,3 +51,3 @@ "main": "dist/src/Editor.js",

"_postinstall": "husky install",
"prepack": "pinst --disable",
"prepack": "yarn build && pinst --disable",
"postpack": "pinst --enable"

@@ -54,0 +54,0 @@ },

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

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