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

@glideapps/glide-data-grid

Package Overview
Dependencies
Maintainers
8
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glideapps/glide-data-grid - npm Package Compare versions

Comparing version 5.1.0-alpha5 to 5.1.0-beta1

6

dist/ts/data-grid/data-grid-render.d.ts

@@ -32,2 +32,3 @@ /// <reference types="react" />

readonly mustDrawFocusOnHeader: boolean;
readonly lastBuffer: "a" | "b" | undefined;
}

@@ -46,2 +47,4 @@ interface DragAndDropState {

readonly headerCanvas: HTMLCanvasElement;
readonly bufferA: HTMLCanvasElement;
readonly bufferB: HTMLCanvasElement;
readonly width: number;

@@ -79,3 +82,3 @@ readonly height: number;

readonly imageLoader: ImageWindowLoader;
readonly lastBlitData: React.MutableRefObject<BlitData>;
readonly lastBlitData: React.MutableRefObject<BlitData | undefined>;
readonly damage: CellList | undefined;

@@ -87,2 +90,3 @@ readonly hoverValues: HoverValues;

readonly touchMode: boolean;
readonly renderStrategy: "single-buffer" | "double-buffer" | "direct";
readonly enqueue: (item: Item) => void;

@@ -89,0 +93,0 @@ readonly getCellRenderer: GetCellRendererCallback;

54

dist/ts/data-grid/data-grid.d.ts

@@ -45,3 +45,2 @@ import * as React from "react";

readonly eventTargetRef: React.MutableRefObject<HTMLDivElement | null> | undefined;
readonly className: string | undefined;
readonly getCellContent: (cell: Item) => InnerGridCell;

@@ -86,11 +85,11 @@ /**

*/
readonly onItemHovered?: (args: GridMouseEventArgs) => void;
readonly onItemHovered: (args: GridMouseEventArgs) => void;
readonly onMouseMove: (args: GridMouseEventArgs) => void;
readonly onMouseDown?: (args: GridMouseEventArgs) => void;
readonly onMouseUp?: (args: GridMouseEventArgs, isOutside: boolean) => void;
readonly onContextMenu?: (args: GridMouseEventArgs, preventDefault: () => void) => void;
readonly onCanvasFocused?: () => void;
readonly onCanvasBlur?: () => void;
readonly onCellFocused?: (args: Item) => void;
readonly onMouseMoveRaw?: (event: MouseEvent) => void;
readonly onMouseDown: (args: GridMouseEventArgs) => void;
readonly onMouseUp: (args: GridMouseEventArgs, isOutside: boolean) => void;
readonly onContextMenu: (args: GridMouseEventArgs, preventDefault: () => void) => void;
readonly onCanvasFocused: () => void;
readonly onCanvasBlur: () => void;
readonly onCellFocused: (args: Item) => void;
readonly onMouseMoveRaw: (event: MouseEvent) => void;
/**

@@ -100,3 +99,3 @@ * Emitted when the canvas receives a key down event.

*/
readonly onKeyDown?: (event: GridKeyEventArgs) => void;
readonly onKeyDown: (event: GridKeyEventArgs) => void;
/**

@@ -106,3 +105,3 @@ * Emitted when the canvas receives a key up event.

*/
readonly onKeyUp?: (event: GridKeyEventArgs) => void;
readonly onKeyUp: ((event: GridKeyEventArgs) => void) | undefined;
readonly verticalBorder: (col: number) => boolean;

@@ -113,3 +112,3 @@ /**

*/
readonly isDraggable?: boolean | "cell" | "header";
readonly isDraggable: boolean | "cell" | "header" | undefined;
/**

@@ -120,8 +119,8 @@ * If `isDraggable` is set, the grid becomes HTML draggable, and `onDragStart` will be called when dragging starts.

*/
readonly onDragStart?: (args: GridDragEventArgs) => void;
readonly onDragEnd?: () => void;
readonly onDragStart: (args: GridDragEventArgs) => void;
readonly onDragEnd: () => void;
/** @group Drag and Drop */
readonly onDragOverCell?: (cell: Item, dataTransfer: DataTransfer | null) => void;
readonly onDragOverCell: ((cell: Item, dataTransfer: DataTransfer | null) => void) | undefined;
/** @group Drag and Drop */
readonly onDragLeave?: () => void;
readonly onDragLeave: (() => void) | undefined;
/**

@@ -131,4 +130,4 @@ * Called when a HTML Drag and Drop event is ended on the data grid.

*/
readonly onDrop?: (cell: Item, dataTransfer: DataTransfer | null) => void;
readonly drawCustomCell?: DrawCustomCellCallback;
readonly onDrop: ((cell: Item, dataTransfer: DataTransfer | null) => void) | undefined;
readonly drawCustomCell: DrawCustomCellCallback | undefined;
/**

@@ -144,3 +143,3 @@ * Overrides the rendering of a header. The grid will call this for every header it needs to render. Header

*/
readonly drawHeader?: DrawHeaderCallback;
readonly drawHeader: DrawHeaderCallback | undefined;
/**

@@ -151,7 +150,7 @@ * Controls the drawing of the focus ring.

*/
readonly drawFocusRing?: boolean;
readonly dragAndDropState?: {
readonly drawFocusRing: boolean | undefined;
readonly dragAndDropState: {
src: number;
dest: number;
};
} | undefined;
/**

@@ -162,3 +161,3 @@ * Experimental features

*/
readonly experimental?: {
readonly experimental: {
readonly paddingRight?: number;

@@ -171,3 +170,4 @@ readonly paddingBottom?: number;

readonly hyperWrapping?: boolean;
};
readonly renderStrategy?: "single-buffer" | "double-buffer" | "direct";
} | undefined;
/**

@@ -187,3 +187,3 @@ * Additional header icons for use by `GridColumn`.

*/
readonly headerIcons?: SpriteMap;
readonly headerIcons: SpriteMap | undefined;
/** Controls smooth scrolling in the data grid. If smooth scrolling is not enabled the grid will always be cell

@@ -194,3 +194,3 @@ * aligned.

*/
readonly smoothScrollX?: boolean;
readonly smoothScrollX: boolean | undefined;
/** Controls smooth scrolling in the data grid. If smooth scrolling is not enabled the grid will always be cell

@@ -201,3 +201,3 @@ * aligned.

*/
readonly smoothScrollY?: boolean;
readonly smoothScrollY: boolean | undefined;
readonly theme: Theme;

@@ -204,0 +204,0 @@ readonly getCellRenderer: <T extends InnerGridCell>(cell: T) => CellRenderer<T> | undefined;

@@ -6,2 +6,3 @@ import * as React from "react";

export interface ScrollingDataGridProps extends Props {
readonly className: string | undefined;
readonly onVisibleRegionChanged: ((range: Rectangle, clientWidth: number, clientHeight: number, rightElWidth: number, tx: number, ty: number) => void) | undefined;

@@ -8,0 +9,0 @@ /**

{
"name": "@glideapps/glide-data-grid",
"version": "5.1.0-alpha5",
"version": "5.1.0-beta1",
"description": "Super fast, pure canvas Data Grid Editor",

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

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 too big to display

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