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

idraw

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idraw - npm Package Compare versions

Comparing version 0.0.2 to 0.0.4-alpha.3

dist/index.cjs.js

44

dist/index.d.ts

@@ -1,25 +0,29 @@

import { TypeBrushOptions } from '@idraw/types';
import { TypeData } from '@idraw/types';
import { TypeIDraw } from '@idraw/types';
import Core from '@idraw/core';
import { TypeConfig } from '@idraw/types';
import { TypeCoreOptions } from '@idraw/types';
declare class IDraw implements TypeIDraw {
private _canvas;
private _context;
private _watcher;
private _brush;
private _isStart;
private _data;
private _patternMap;
private _currentSize;
constructor(canvas: HTMLCanvasElement);
start(): void;
loadBrush(opts: TypeBrushOptions): Promise<void>;
setBrushSize(size: number): void;
draw(data: TypeData): Promise<void>;
play(data: TypeData): Promise<void>;
useBrush(name: string): void;
getData(): TypeData;
declare const _hasInited: unique symbol;
declare class IDraw extends Core {
private [_opts];
private [_records];
private [_hasInited];
constructor(mount: HTMLDivElement, opts: Options, config: TypeConfig);
undo(): void;
private [_initEvent];
private _pushRecord;
private _createOpts;
}
export default IDraw;
declare const _initEvent: unique symbol;
declare type Options = {
maxRecords?: number;
} & TypeCoreOptions;
declare const _opts: unique symbol;
declare const _records: unique symbol;
export { }
{
"name": "idraw",
"version": "0.0.2",
"description": "a draw lib",
"main": "dist/index.js",
"version": "0.0.4-alpha.3",
"description": "",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"unpkg": "dist/index.global.js",
"types": "dist/index.d.ts",
"scripts": {
"dev": "rollup -w -c ./scripts/rollup.config.dev.js",
"build": "rollup -c ./scripts/rollup.config.prod.js"
"test": "echo \"Error: no test specified\" && exit 1"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/chenshenhai/idraw.git"
"url": "git+https://github.com/idrawjs/idraw.git"
},
"keywords": [
"draw",
"canvas"
],
"bugs": {
"url": "https://github.com/idrawjs/idraw/issues"
},
"homepage": "https://github.com/idrawjs/idraw#readme",
"author": "chenshenhai",
"license": "MIT",
"bugs": {
"url": "https://github.com/chenshenhai/idraw/issues"
"devDependencies": {
"@idraw/types": "^0.0.4-alpha.3"
},
"homepage": "https://github.com/chenshenhai/idraw#readme",
"files": [
"dist",
"index.js"
],
"dependencies": {
"@idraw/types": "^0.0.2"
"@idraw/core": "^0.0.4-alpha.3"
},
"gitHead": "7fae64ae318bb3aec85fe1f4adf7c75552a9ba7e"
"publishConfig": {
"access": "public"
},
"gitHead": "a2b87617565e1b11616dc9b8c996781ec8e62082"
}

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