mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Update npm dependencies (#678)
This commit is contained in:
parent
faecef40af
commit
18a7c6a289
5 changed files with 1358 additions and 1316 deletions
|
@ -114,7 +114,7 @@ export default defineComponent({
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
updateLayout(widgetId: BigInt, value: unknown) {
|
||||
updateLayout(widgetId: bigint, value: unknown) {
|
||||
this.editor.instance.update_layout(this.layoutTarget, widgetId, value);
|
||||
},
|
||||
withoutValue(props: Record<string, unknown>): Record<string, unknown> {
|
||||
|
|
|
@ -93,7 +93,7 @@ const WidgetSection = defineComponent({
|
|||
expanded: true,
|
||||
}),
|
||||
methods: {
|
||||
updateLayout(widgetId: BigInt, value: unknown) {
|
||||
updateLayout(widgetId: bigint, value: unknown) {
|
||||
this.editor.instance.update_layout(this.layoutTarget, widgetId, value);
|
||||
},
|
||||
layoutRowType(layoutRow: LayoutSystemRow): unknown {
|
||||
|
|
|
@ -29,7 +29,7 @@ export abstract class DocumentDetails {
|
|||
|
||||
readonly is_saved!: boolean;
|
||||
|
||||
readonly id!: BigInt | string;
|
||||
readonly id!: bigint | string;
|
||||
|
||||
get displayName(): string {
|
||||
return `${this.name}${this.is_saved ? "" : "*"}`;
|
||||
|
@ -37,7 +37,7 @@ export abstract class DocumentDetails {
|
|||
}
|
||||
|
||||
export class FrontendDocumentDetails extends DocumentDetails {
|
||||
readonly id!: BigInt;
|
||||
readonly id!: bigint;
|
||||
}
|
||||
|
||||
export class UpdateNodeGraphVisibility extends JsMessage {
|
||||
|
@ -118,7 +118,7 @@ export class UpdateWorkingColors extends JsMessage {
|
|||
}
|
||||
|
||||
export class UpdateActiveDocument extends JsMessage {
|
||||
readonly document_id!: BigInt;
|
||||
readonly document_id!: bigint;
|
||||
}
|
||||
|
||||
export class DisplayDialogPanic extends JsMessage {
|
||||
|
@ -212,14 +212,14 @@ export class TriggerRasterDownload extends JsMessage {
|
|||
export class DocumentChanged extends JsMessage {}
|
||||
|
||||
export class UpdateDocumentLayerTreeStructure extends JsMessage {
|
||||
constructor(readonly layerId: BigInt, readonly children: UpdateDocumentLayerTreeStructure[]) {
|
||||
constructor(readonly layerId: bigint, readonly children: UpdateDocumentLayerTreeStructure[]) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
interface DataBuffer {
|
||||
pointer: BigInt;
|
||||
length: BigInt;
|
||||
pointer: bigint;
|
||||
length: bigint;
|
||||
}
|
||||
|
||||
export function newUpdateDocumentLayerTreeStructure(input: { data_buffer: DataBuffer }, wasm: WasmRawInstance): UpdateDocumentLayerTreeStructure {
|
||||
|
@ -331,7 +331,7 @@ export class ImageData {
|
|||
}
|
||||
|
||||
export class IndexedDbDocumentDetails extends DocumentDetails {
|
||||
@Transform(({ value }: { value: BigInt }) => value.toString())
|
||||
@Transform(({ value }: { value: bigint }) => value.toString())
|
||||
id!: string;
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ export class TriggerIndexedDbWriteDocument extends JsMessage {
|
|||
|
||||
export class TriggerIndexedDbRemoveDocument extends JsMessage {
|
||||
// Use a string since IndexedDB can not use BigInts for keys
|
||||
@Transform(({ value }: { value: BigInt }) => value.toString())
|
||||
@Transform(({ value }: { value: bigint }) => value.toString())
|
||||
document_id!: string;
|
||||
}
|
||||
|
||||
|
@ -418,7 +418,7 @@ export type WidgetKind =
|
|||
|
||||
export interface Widget {
|
||||
kind: WidgetKind;
|
||||
widget_id: BigInt;
|
||||
widget_id: bigint;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
props: any;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue