From 5dcd4684b908d7df6849256975c02e39d9c599c5 Mon Sep 17 00:00:00 2001 From: Trezy Date: Mon, 26 Aug 2024 15:30:09 +0200 Subject: [PATCH] docs: add docs for Application `extensions` property --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b3ca335..56fe6128 100644 --- a/README.md +++ b/README.md @@ -126,11 +126,15 @@ Setting `attachToDevtools` to `true` will automatically attach the application t ###### `defaultTextStyle` -`defaultTextStyle` is a convenience property. Whatever is passed will automatically be assigned to Pixi.js's[`TextStyle.defaultTextStyle`](https://pixijs.download/release/docs/text.TextStyle.html#defaultTextStyle). +`defaultTextStyle` is a convenience property. Whatever is passed will automatically be assigned to Pixi.js's [`TextStyle.defaultTextStyle`](https://pixijs.download/release/docs/text.TextStyle.html#defaultTextStyle). > [!NOTE] > This property **is not retroactive**. It will only apply to text components created after `defaultTextStyle` is set. Any text components created before setting `defaultTextStyle` will retain the base styles they had before `defaultTextStyle` was changed. +###### `extensions` + +`extensions` is an array of extensions to be loaded. Adding and removing items from this array will automatically load/unload the extensions. The first time this is handled happens before the application is initialised. See Pixi.js's [`extensions`](https://pixijs.download/release/docs/extensions.html) documentation for more info on extensions. + ###### `resizeTo` The `` component supports the `resizeTo` property, with some additional functionality: it can accept any HTML element **or** it can take a React `ref` directly.