Take the cross-cutting queries out of the model's base module
findPropertyUsages walks override sites, so Project.ts imported instance.ts while instance.ts imported Project.ts – the repo's only value-level import cycle. The queries now sit in usages.ts and Project.ts is a base type module again. requireScene has had no caller since holderId replaced sceneId. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b13b130da7
commit
a2f2f8465c
7 files changed
+70
-76
No files matched your search
@@ -9,14 +9,9 @@ import { CreateContainerCommand } from '../../src/core/commands/containerCommand
|
||||
import { SetOverrideCommand } from '../../src/core/commands/sceneObjectCommands';
|
||||
import { RemoveVariableCommand, RenameVariableCommand } from '../../src/core/commands/variableCommands';
|
||||
import type { ContainerAsset } from '../../src/core/model/Asset';
|
||||
import {
|
||||
findAsset,
|
||||
findObjectHolder,
|
||||
findUsages,
|
||||
listContainers,
|
||||
objectHolders,
|
||||
} from '../../src/core/model/Project';
|
||||
import { findAsset, findObjectHolder, listContainers, objectHolders } from '../../src/core/model/Project';
|
||||
import { instanceChildId } from '../../src/core/model/instance';
|
||||
import { findUsages } from '../../src/core/model/usages';
|
||||
import { makeBehavior, makeSpriteScene, place } from '../helpers';
|
||||
|
||||
/** A behavior with a `speed` variable, placed and overridden to 42, then wrapped in a container. */
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { CreateTextureCommand } from '../../src/core/commands/assetCommands';
|
||||
import type { TextureAsset } from '../../src/core/model/Asset';
|
||||
import { findAsset, findPropertyUsages, findUsages } from '../../src/core/model/Project';
|
||||
import { findAsset } from '../../src/core/model/Project';
|
||||
import { findPropertyUsages, findUsages } from '../../src/core/model/usages';
|
||||
import {
|
||||
DEFAULT_SLICE,
|
||||
isTextureFile,
|
||||
|
||||
Reference in new issue
Block a user