You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/learn/3d-bits/for-developers/third-party-app-integrations.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,12 +114,30 @@ While we recommend the schema below for consistency across integrations, we unde
114
114
115
115
### Event Name
116
116
117
-
Use the exact namespace:
117
+
We suggest using this event name, but you could create your own namespace. We understand that you might not want to have references to a single app in your codebase.
118
118
119
119
```javascript
120
120
3dbits.productOptions.changed
121
121
```
122
122
123
+
Alternative:
124
+
125
+
```javascript
126
+
yourApp.productOptions.changed
127
+
```
128
+
129
+
**If you use `3dbits.productOptions.changed`:**
130
+
- We can detect this automatically
131
+
- Users won't need to manually select your app from our Input Collection Mode dropdown
132
+
- The integration will work out of the box
133
+
134
+
**If you choose your own event name:**
135
+
- Please [contact us](#contact-information) with your event name
136
+
- We'll add support for your specific event
137
+
- Users will need to select your app from the Input Collection Mode dropdown
138
+
139
+
This way we'll know which event to listen to when users configure your app for input collection.
140
+
123
141
### Event Data Structure (TypeScript)
124
142
125
143
The `detail` property of the event should follow this interface:
"bitbybit.advanced.navigation.zoomOn_description": "يكبّر الكاميرا لتناسب المجسمات المحددة في المشهد مع رسوم متحركة سلسة. يعمل فقط مع ArcRotateCamera. يمكن مقاطعة الرسوم المتحركة إذا تم استدعاؤها عدة مرات.",
5630
+
"animationSpeed": "سرعة الرسوم المتحركة",
5631
+
"doNotUpdateMaxZ": "لا تحدّث الحد الأقصى z",
5632
+
"bitbybit.advanced.navigation.focusFromAngle": "التركيز من زاوية",
5633
+
"focusFromAngle": "التركيز من زاوية",
5634
+
"bitbybit.advanced.navigation.focusFromAngle_description": "يركّز الكاميرا على المجسمات المحددة من زاوية معينة مع رسوم متحركة سلسة. يحسب مركز صندوق الحدود لجميع المجسمات ويضع الكاميرا عند متجه التوجيه المحدد للنظر إلى المركز. يعمل فقط مع ArcRotateCamera. يمكن مقاطعة الرسوم المتحركة إذا تم استدعاؤها عدة مرات.",
5635
+
"padding": "الحشو",
5636
+
"shadowRefreshRate": "معدل تحديث الظل",
5637
+
"labelFlipHorizontal": "قلب التسمية أفقيًا",
5638
+
"labelFlipVertical": "قلب التسمية عموديًا",
5639
+
"bitbybit.advanced.navigation.zoomOnAspect": "التكبير على النسبة",
5640
+
"zoomOnAspect": "التكبير على النسبة",
5641
+
"bitbybit.advanced.navigation.zoomOnAspect_description": "تكبير الكاميرا لتناسب المجسمات المحددة في المشهد مع رسوم متحركة سلسة، مع مراعاة نسبة العرض إلى الارتفاع الدقيقة للشاشة. على عكس zoomOn، تحسب هذه الطريقة بدقة مسافة الكاميرا بناءً على أبعاد منفذ العرض وصندوق الحدود للمجسم لضمان ملاءمة أفضل عند padding=0. يعمل فقط مع ArcRotateCamera. يمكن مقاطعة الرسوم المتحركة إذا تم استدعاؤها عدة مرات."
0 commit comments