Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tldraw/core

Package Overview
Dependencies
Maintainers
2
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tldraw/core - npm Package Compare versions

Comparing version 0.0.6 to 0.0.8

1

lib/inputs.d.ts

@@ -26,2 +26,3 @@ import React from 'react';

static getPoint(e: PointerEvent | React.PointerEvent | Touch | React.Touch | WheelEvent): number[];
static getPressure(e: PointerEvent | React.PointerEvent | Touch | React.Touch | WheelEvent): number;
static commandKey(): string;

@@ -28,0 +29,0 @@ }

2

lib/renderer/components/bounds/corner-handle.d.ts
import * as React from 'react';
import { TLBoundsCorner, TLBounds } from '../../../types';
export declare const CornerHandle: React.MemoExoticComponent<({ size, corner, bounds }: {
export declare const CornerHandle: React.MemoExoticComponent<({ size, corner, bounds, }: {
size: number;

@@ -5,0 +5,0 @@ bounds: TLBounds;

@@ -12,3 +12,3 @@ import * as React from 'react';

}
export declare const Shape: React.MemoExoticComponent<({ shape, isEditing, isHovered, isSelected, isBinding, isDarkMode, isCurrentParent }: ShapeProps) => JSX.Element>;
export declare const Shape: React.MemoExoticComponent<({ shape, isEditing, isHovered, isSelected, isBinding, isDarkMode, isCurrentParent, }: ShapeProps) => JSX.Element>;
export {};

@@ -8,2 +8,2 @@ import { TLShape, TLPage, TLPageState, TLSettings, TLCallbacks, TLShapeUtils, TLTheme } from '../types';

}
export declare function Renderer<T extends TLShape>({ shapeUtils, page, pageState, theme, isReadonlyMode, isDarkMode, isDebugMode, isPenMode, ...rest }: RendererProps<T>): JSX.Element;
export declare function Renderer<T extends TLShape>({ shapeUtils, page, pageState, theme, isDarkMode, isDebugMode, isPenMode, ...rest }: RendererProps<T>): JSX.Element;

@@ -65,3 +65,2 @@ import React from 'react';

export interface TLSettings {
isReadonlyMode: boolean;
isDebugMode: boolean;

@@ -206,3 +205,3 @@ isDarkMode: boolean;

onChildrenChange(shape: T, children: TLShape[]): TLShapeUtil<T>;
onBindingChange(shape: T, bindings: Record<string, TLBinding>): TLShapeUtil<T>;
onBindingChange(shape: T, bindings: TLBinding, target: TLShape, targetBounds: TLBounds): TLShapeUtil<T>;
onHandleChange(shape: T, handle: Partial<T['handles']>, info: TLPointerInfo): TLShapeUtil<T>;

@@ -209,0 +208,0 @@ onRightPointHandle(shape: T, handle: Partial<T['handles']>, info: TLPointerInfo): TLShapeUtil<T>;

@@ -53,3 +53,3 @@ import * as React from 'react';

static getBoundsSides(bounds: TLBounds): [string, number[][]][];
static shallowEqual(objA: Record<string, unknown>, objB: Record<string, unknown>): boolean;
static shallowEqual<T extends Record<string, unknown>>(objA: T, objB: T): boolean;
/**

@@ -56,0 +56,0 @@ * Get the outer of between a circle and a point.

{
"name": "@tldraw/core",
"version": "0.0.6",
"version": "0.0.8",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": {

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

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