@unseenco/theatre-core 0.1.13 → 0.1.15
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/index.js +11 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -6868,7 +6868,8 @@ var SheetTemplate = class {
|
|
|
6868
6868
|
__publicField(this, "objectTemplatesP", this._objectTemplates.pointer);
|
|
6869
6869
|
__publicField(this, "_pendingOutlineNamespaces", {});
|
|
6870
6870
|
__publicField(this, "_sequenceVariants", [DEFAULT_SEQUENCE_VARIANT]);
|
|
6871
|
-
__publicField(this, "_visibleInOutline", true);
|
|
6871
|
+
__publicField(this, "_visibleInOutline", new Atom9(true));
|
|
6872
|
+
__publicField(this, "visibleInOutlineP", this._visibleInOutline.pointer);
|
|
6872
6873
|
this.address = { ...project.address, sheetId };
|
|
6873
6874
|
}
|
|
6874
6875
|
getInstance(instanceId) {
|
|
@@ -6941,10 +6942,10 @@ var SheetTemplate = class {
|
|
|
6941
6942
|
);
|
|
6942
6943
|
}
|
|
6943
6944
|
setVisibleInOutline(visible) {
|
|
6944
|
-
this._visibleInOutline
|
|
6945
|
+
this._visibleInOutline.set(visible);
|
|
6945
6946
|
}
|
|
6946
6947
|
isVisibleInOutline() {
|
|
6947
|
-
return this._visibleInOutline;
|
|
6948
|
+
return this._visibleInOutline.get();
|
|
6948
6949
|
}
|
|
6949
6950
|
};
|
|
6950
6951
|
|
|
@@ -7688,6 +7689,11 @@ function stripImageAssetsFromAhistoricStaticOverrides(ahistoricStaticOverridesBy
|
|
|
7688
7689
|
}
|
|
7689
7690
|
}
|
|
7690
7691
|
}
|
|
7692
|
+
function isDirectAssetUrl(assetId) {
|
|
7693
|
+
if (/^(?:https?:\/\/|blob:|data:)/i.test(assetId))
|
|
7694
|
+
return true;
|
|
7695
|
+
return assetId.includes("/") || assetId.includes("\\");
|
|
7696
|
+
}
|
|
7691
7697
|
|
|
7692
7698
|
// core/src/projects/Project.ts
|
|
7693
7699
|
var Project = class {
|
|
@@ -7732,7 +7738,7 @@ var Project = class {
|
|
|
7732
7738
|
this._onDiskStateAtom = onDiskStateAtom;
|
|
7733
7739
|
this._assetStorageReadyDeferred = defer();
|
|
7734
7740
|
this.assetStorage = {
|
|
7735
|
-
getAssetUrl: (assetId) => "".concat(config.assets?.baseUrl, "/").concat(assetId),
|
|
7741
|
+
getAssetUrl: (assetId) => isDirectAssetUrl(assetId) ? assetId : "".concat(config.assets?.baseUrl, "/").concat(assetId),
|
|
7736
7742
|
// Until the asset storage is ready, we'll throw an error when the user tries to use it
|
|
7737
7743
|
createAsset: () => {
|
|
7738
7744
|
throw new Error("Please wait for Project.ready to use assets.");
|
|
@@ -8351,7 +8357,7 @@ var CoreBundle = class {
|
|
|
8351
8357
|
return "Theatre_CoreBundle";
|
|
8352
8358
|
}
|
|
8353
8359
|
get version() {
|
|
8354
|
-
return "0.1.
|
|
8360
|
+
return "0.1.15";
|
|
8355
8361
|
}
|
|
8356
8362
|
getBitsForStudio(studio, callback) {
|
|
8357
8363
|
if (this._studio) {
|