@lovelace_lol/embody 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/three.js CHANGED
@@ -7252,17 +7252,20 @@ var BETTA_FISH_PRESET = {
7252
7252
  actionInfo: AU_INFO2
7253
7253
  };
7254
7254
 
7255
+ // src/presets/registry.ts
7256
+ var EMBEDDED_PRESETS = {
7257
+ cc4: CC4_PRESET,
7258
+ fish: BETTA_FISH_PRESET
7259
+ };
7260
+ function getEmbeddedPreset(presetId) {
7261
+ const normalized = presetId.trim().toLowerCase();
7262
+ return EMBEDDED_PRESETS[normalized];
7263
+ }
7264
+
7255
7265
  // src/presets/index.ts
7256
7266
  function getPreset(presetType) {
7257
- switch (presetType) {
7258
- case "fish":
7259
- case "skeletal":
7260
- return BETTA_FISH_PRESET;
7261
- case "cc4":
7262
- case "custom":
7263
- default:
7264
- return CC4_PRESET;
7265
- }
7267
+ const compatibilityId = presetType === "skeletal" ? "fish" : presetType;
7268
+ return compatibilityId ? getEmbeddedPreset(compatibilityId) ?? CC4_PRESET : CC4_PRESET;
7266
7269
  }
7267
7270
  async function getPresetWithProfile(presetType, profile) {
7268
7271
  return extendPresetWithProfile(getPreset(presetType), profile);