@tldraw/core
Advanced tools
Comparing version 0.0.6 to 0.0.8
@@ -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 @@ } |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
607239
15544