Skip to content

Commit

Permalink
feat: changed flag to positive
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 28, 2024
1 parent 94323ee commit b1b2461
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api/tres-canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ renderer.shadowMap.type = PCFSoftShadowMap
| **toneMappingExposure** | Exposure level of tone mapping. | `1` |
| **useLegacyLights** | Whether to use the legacy lighting mode or not | `true` |
| **windowSize** | Whether to use the window size as the canvas size or the parent element. | `false` |
| **disableProvideBridge** | Disable the provide/inject bridge between Vue context and TresCanvas. | `false` |
| **enableProvideBridge** | Disable the provide/inject bridge between Vue context and TresCanvas. | `false` |

### Defaults

Expand Down
6 changes: 3 additions & 3 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface TresCanvasProps
windowSize?: boolean
// Misc opt-out flags
disableProvideBridge?: boolean
enableProvideBridge?: boolean
}
const props = withDefaults(defineProps<TresCanvasProps>(), {
Expand All @@ -71,7 +71,7 @@ const props = withDefaults(defineProps<TresCanvasProps>(), {
logarithmicDepthBuffer: undefined,
failIfMajorPerformanceCaveat: undefined,
renderMode: 'always',
disableProvideBridge: false,
enableProvideBridge: true,
})
// Define emits for Pointer events, pass `emit` into useTresEventManager so we can emit events off of TresCanvas
Expand Down Expand Up @@ -133,7 +133,7 @@ const createInternalComponent = (context: TresContext, empty = false) =>
}
// Start the recursion from the initial instance
if (instance?.parent && !props.disableProvideBridge) {
if (instance?.parent && props.enableProvideBridge) {
mergeProvides(instance.parent)
Object.entries(provides)
Expand Down

0 comments on commit b1b2461

Please sign in to comment.