@rtsdk/topia 0.12.5 → 0.12.6
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.cjs +3 -2
- package/dist/index.d.ts +10 -6
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39825,8 +39825,8 @@ var _DroppedAsset_updateDroppedAsset;
|
|
|
39825
39825
|
* ```
|
|
39826
39826
|
*/
|
|
39827
39827
|
class DroppedAsset extends Asset {
|
|
39828
|
-
constructor(topia, id, urlSlug, options = { attributes: {
|
|
39829
|
-
var _a;
|
|
39828
|
+
constructor(topia, id, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
39829
|
+
var _a, _b;
|
|
39830
39830
|
super(topia, id, { attributes: options.attributes, credentials: Object.assign({ assetId: id, urlSlug }, options.credentials) });
|
|
39831
39831
|
// private methods
|
|
39832
39832
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -39841,6 +39841,7 @@ class DroppedAsset extends Asset {
|
|
|
39841
39841
|
this.id = id;
|
|
39842
39842
|
this.text = (_a = options.attributes) === null || _a === void 0 ? void 0 : _a.text;
|
|
39843
39843
|
this.urlSlug = urlSlug;
|
|
39844
|
+
this.position = ((_b = options.attributes) === null || _b === void 0 ? void 0 : _b.position) || { x: 0, y: 0 };
|
|
39844
39845
|
}
|
|
39845
39846
|
/**
|
|
39846
39847
|
* @summary
|
package/dist/index.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
|
|
|
116
116
|
dataObject?: object | null;
|
|
117
117
|
isInteractive?: boolean | null;
|
|
118
118
|
interactivePublicKey?: string | null;
|
|
119
|
-
position
|
|
119
|
+
position: {
|
|
120
120
|
x: number;
|
|
121
121
|
y: number;
|
|
122
122
|
};
|
|
@@ -1480,7 +1480,7 @@ interface DroppedAssetInterface extends AssetInterface {
|
|
|
1480
1480
|
updateMediaType({ audioRadius, audioSliderVolume, isVideo, mediaLink, mediaName, mediaType, portalName, syncUserMedia, }: UpdateMediaTypeInterface): Promise<void | ResponseType$1>;
|
|
1481
1481
|
updateMuteZone(isMutezone: boolean): Promise<void | ResponseType$1>;
|
|
1482
1482
|
updateWebhookZone(isWebhookZoneEnabled: boolean): Promise<void | ResponseType$1>;
|
|
1483
|
-
updatePosition(x: number, y: number, yOrderAdjust
|
|
1483
|
+
updatePosition(x: number, y: number, yOrderAdjust?: number): Promise<void | ResponseType$1>;
|
|
1484
1484
|
updatePrivateZone({ isPrivateZone, isPrivateZoneChatDisabled, privateZoneUserCap, }: UpdatePrivateZoneInterface): Promise<void | ResponseType$1>;
|
|
1485
1485
|
updateScale(assetScale: number): Promise<void | ResponseType$1>;
|
|
1486
1486
|
updateUploadedMediaSelected(mediaId: string): Promise<void | ResponseType$1>;
|
|
@@ -1533,9 +1533,9 @@ interface DroppedAssetInterface extends AssetInterface {
|
|
|
1533
1533
|
mediaUploadedId?: string | null;
|
|
1534
1534
|
mediaUploadedLink?: string | null;
|
|
1535
1535
|
metaName?: string | null;
|
|
1536
|
-
position
|
|
1537
|
-
x
|
|
1538
|
-
y
|
|
1536
|
+
position: {
|
|
1537
|
+
x: number;
|
|
1538
|
+
y: number;
|
|
1539
1539
|
};
|
|
1540
1540
|
portalCoordsX?: number | null;
|
|
1541
1541
|
portalCoordsY?: number | null;
|
|
@@ -1562,7 +1562,11 @@ interface DroppedAssetInterface extends AssetInterface {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
interface DroppedAssetOptionalInterface {
|
|
1564
1564
|
attributes?: DroppedAssetInterface | {
|
|
1565
|
-
|
|
1565
|
+
position?: {
|
|
1566
|
+
x: number;
|
|
1567
|
+
y: number;
|
|
1568
|
+
};
|
|
1569
|
+
text?: string;
|
|
1566
1570
|
urlSlug?: string;
|
|
1567
1571
|
};
|
|
1568
1572
|
credentials?: InteractiveCredentials | object;
|
package/dist/index.js
CHANGED
|
@@ -39823,8 +39823,8 @@ var _DroppedAsset_updateDroppedAsset;
|
|
|
39823
39823
|
* ```
|
|
39824
39824
|
*/
|
|
39825
39825
|
class DroppedAsset extends Asset {
|
|
39826
|
-
constructor(topia, id, urlSlug, options = { attributes: {
|
|
39827
|
-
var _a;
|
|
39826
|
+
constructor(topia, id, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
39827
|
+
var _a, _b;
|
|
39828
39828
|
super(topia, id, { attributes: options.attributes, credentials: Object.assign({ assetId: id, urlSlug }, options.credentials) });
|
|
39829
39829
|
// private methods
|
|
39830
39830
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -39839,6 +39839,7 @@ class DroppedAsset extends Asset {
|
|
|
39839
39839
|
this.id = id;
|
|
39840
39840
|
this.text = (_a = options.attributes) === null || _a === void 0 ? void 0 : _a.text;
|
|
39841
39841
|
this.urlSlug = urlSlug;
|
|
39842
|
+
this.position = ((_b = options.attributes) === null || _b === void 0 ? void 0 : _b.position) || { x: 0, y: 0 };
|
|
39842
39843
|
}
|
|
39843
39844
|
/**
|
|
39844
39845
|
* @summary
|
package/package.json
CHANGED