mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Rename DocumentNodeType to DocumentNodeBlueprint for clarity
This commit is contained in:
parent
377d85e46f
commit
09743dcdc4
7 changed files with 123 additions and 130 deletions
|
@ -10,7 +10,6 @@
|
|||
UpdateDocumentLayerDetails,
|
||||
UpdateDocumentLayerTreeStructureJs,
|
||||
UpdateLayerTreeOptionsLayout,
|
||||
layerTypeData,
|
||||
} from "@graphite/wasm-communication/messages";
|
||||
|
||||
import LayoutCol from "@graphite/components/layout/LayoutCol.svelte";
|
||||
|
@ -282,7 +281,7 @@
|
|||
const layerId = BigInt(item.layerId.toString());
|
||||
path.push(layerId);
|
||||
|
||||
const mapping = layerCache.get([path[path.length-1]].toString());
|
||||
const mapping = layerCache.get([path[path.length - 1]].toString());
|
||||
if (mapping) {
|
||||
mapping.layerType = item.children.length >= 1 ? "Folder" : "Layer";
|
||||
mapping.path = new BigUint64Array(path);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { isWidgetColumn, isWidgetRow, isWidgetSection, LayoutGroup, type WidgetLayout } from "@graphite/wasm-communication/messages";
|
||||
import { isWidgetColumn, isWidgetRow, isWidgetSection, type WidgetLayout } from "@graphite/wasm-communication/messages";
|
||||
|
||||
import WidgetSection from "@graphite/components/widgets/groups/WidgetSection.svelte";
|
||||
import WidgetRow from "@graphite/components/widgets/WidgetRow.svelte";
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
|
||||
import { currentDraggingElement } from "@graphite/io-managers/drag";
|
||||
|
||||
import type { LayerType, LayerTypeData } from "@graphite/wasm-communication/messages";
|
||||
import { layerTypeData } from "@graphite/wasm-communication/messages";
|
||||
import type { LayerType } from "@graphite/wasm-communication/messages";
|
||||
|
||||
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";
|
||||
import IconButton from "@graphite/components/widgets/buttons/IconButton.svelte";
|
||||
|
|
|
@ -694,11 +694,6 @@ export class LayerMetadata {
|
|||
|
||||
export type LayerType = "Folder" | "Layer";
|
||||
|
||||
export type LayerTypeData = {
|
||||
name: string;
|
||||
icon: IconName;
|
||||
};
|
||||
|
||||
export class ImaginateImageData {
|
||||
readonly path!: BigUint64Array;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue