From 137c2ba60b3e63dad2a43ae5fa2676b9c44f3bdd Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 14 Nov 2025 23:41:57 +0100 Subject: [PATCH] fix body --- package-lock.json | 42 +++++++++++-------- src/content/docs/api/classes/Canvas.md | 42 +++++++++---------- src/content/docs/api/classes/FabricText.md | 30 ++++++------- src/content/docs/api/classes/IText.md | 30 ++++++------- src/content/docs/api/classes/Textbox.md | 30 ++++++------- .../fabric/namespaces/filters/classes/Blur.md | 32 +++++++------- .../util/type-aliases/TAnimationCallbacks.md | 16 +++---- .../docs/api/interfaces/CanvasEvents.md | 24 +++++------ src/content/docs/api/interfaces/ITextProps.md | 24 +++++------ .../api/interfaces/SerializedITextProps.md | 24 +++++------ .../api/interfaces/SerializedTextProps.md | 24 +++++------ .../api/interfaces/SerializedTextboxProps.md | 24 +++++------ src/content/docs/api/interfaces/TextProps.md | 24 +++++------ .../docs/api/interfaces/TextboxProps.md | 24 +++++------ .../docs/api/type-aliases/ITextEvents.md | 8 ++-- src/layouts/style.css | 1 + 16 files changed, 204 insertions(+), 195 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2ab0878d..f9160042f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -356,6 +356,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.4.tgz", "integrity": "sha512-bXYxrXFubeYdvB0NhD/NBB3Qi6aZeV20GOWVI47t2dkecCEoneR4NPVcb7abpXDEvejgrUfFtG6vG/zxAKmg+g==", "license": "MIT", + "peer": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.27.1", @@ -667,6 +668,7 @@ "version": "6.10.1", "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.1.tgz", "integrity": "sha512-5GrXzrhq6k+gL5fjkAwt90nYDmjlzTIJV8THnxNFtNKWotMIlzzN+CpqxqwXOECnUdOndmSeWntVrVcv5axWRQ==", + "peer": true, "dependencies": { "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.23.0", @@ -699,12 +701,14 @@ "node_modules/@codemirror/state": { "version": "6.4.1", "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.1.tgz", - "integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==" + "integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==", + "peer": true }, "node_modules/@codemirror/view": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.26.0.tgz", "integrity": "sha512-nSSmzONpqsNzshPOxiKhK203R6BvABepugAe34QfQDbNDslyjkqBuKgrK5ZBvqNXpfxz5iLrlGTmEfhbQyH46A==", + "peer": true, "dependencies": { "@codemirror/state": "^6.4.0", "style-mod": "^4.1.0", @@ -795,6 +799,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" }, @@ -817,6 +822,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" } @@ -2532,6 +2538,7 @@ "version": "18.2.65", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.65.tgz", "integrity": "sha512-98TsY0aW4jqx/3RqsUXwMDZSWR1Z4CUlJNue8ueS2/wcxZOsz4xmW1X8ieaWVRHcmmQM3R8xVA4XWB3dJnWwDQ==", + "peer": true, "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -2542,6 +2549,7 @@ "version": "18.2.22", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.22.tgz", "integrity": "sha512-fHkBXPeNtfvri6gdsMYyW+dW7RXFo6Ad09nLFK0VQWR7yGLai/Cyvyj696gbwYvBnhGtevUG9cET0pmUbMtoPQ==", + "peer": true, "dependencies": { "@types/react": "*" } @@ -2701,6 +2709,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2905,6 +2914,7 @@ "resolved": "https://registry.npmjs.org/astro/-/astro-5.14.4.tgz", "integrity": "sha512-yqgMAO2Whi9GmZkByyiPcG7CiiPr0Me0iBSorMa6M0g+wQk/ewnIqUyr7T/uFCPTQndoKwucnYFTrf0yfb0urw==", "license": "MIT", + "peer": true, "dependencies": { "@astrojs/compiler": "^2.12.2", "@astrojs/internal-helpers": "0.7.4", @@ -3310,6 +3320,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "caniuse-lite": "^1.0.30001718", "electron-to-chromium": "^1.5.160", @@ -3399,6 +3410,7 @@ "integrity": "sha512-jk0GxrLtUEmW/TmFsk2WghvgHe8B0pxGilqCL21y8lHkPUGa6FTsnCNtHPOzT8O3y+N+m3espawV80bbBlgfTA==", "hasInstallScript": true, "license": "MIT", + "peer": true, "dependencies": { "node-addon-api": "^7.0.0", "prebuild-install": "^7.1.3" @@ -4394,22 +4406,6 @@ "jsdom": "^20.0.1" } }, - "node_modules/fabric/node_modules/canvas": { - "version": "2.11.2", - "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.2.tgz", - "integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==", - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.0", - "nan": "^2.17.0", - "simple-get": "^3.0.3" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/fabric/node_modules/cssstyle": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", @@ -7589,6 +7585,7 @@ "url": "https://github.com/sponsors/ai" } ], + "peer": true, "dependencies": { "nanoid": "^3.3.8", "picocolors": "^1.1.1", @@ -7664,6 +7661,7 @@ "version": "3.4.2", "resolved": "https://registry.npmmirror.com/prettier/-/prettier-3.4.2.tgz", "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -7804,6 +7802,7 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz", "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -7813,6 +7812,7 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.1.tgz", "integrity": "sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==", "license": "MIT", + "peer": true, "dependencies": { "scheduler": "^0.26.0" }, @@ -8281,6 +8281,7 @@ "version": "4.40.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.0.tgz", "integrity": "sha512-Noe455xmA96nnqH5piFtLobsGbCij7Tu+tb3c1vYjNbTkfzGqXqQXG3wJaYXkRZuQ0vEYN4bhwg7QnIrqB5B+w==", + "peer": true, "dependencies": { "@types/estree": "1.0.7" }, @@ -8814,6 +8815,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8947,6 +8949,7 @@ "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.11.tgz", "integrity": "sha512-1FqgrrUYGNuE3kImAiEDgAVVVacxdO4ZVTKbiOVDGkoeSB4sNwQaDpa8mta+Lw5TEzBFmGXzsg0I1NLRIoaSFw==", "license": "Apache-2.0", + "peer": true, "dependencies": { "@gerrit0/mini-shiki": "^3.9.0", "lunr": "^2.3.9", @@ -8970,6 +8973,7 @@ "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.7.0.tgz", "integrity": "sha512-PitbnAps2vpcqK2gargKoiFXLWFttvwUbyns/E6zGIFG5Gz8ZQJGttHnYR9csOlcSjB/uyjd8tnoayrtsXG17w==", "license": "MIT", + "peer": true, "engines": { "node": ">= 18" }, @@ -9018,6 +9022,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -9338,6 +9343,7 @@ "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.6.tgz", "integrity": "sha512-0msEVHJEScQbhkbVTb/4iHZdJ6SXp/AvxL2sjwYQFfBqleHtnCqv1J3sa9zbWz/6kW1m9Tfzn92vW+kZ1WV6QA==", "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", @@ -9426,6 +9432,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -10111,6 +10118,7 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/src/content/docs/api/classes/Canvas.md b/src/content/docs/api/classes/Canvas.md index fa7cc4c05..080dedfd6 100644 --- a/src/content/docs/api/classes/Canvas.md +++ b/src/content/docs/api/classes/Canvas.md @@ -1354,27 +1354,6 @@ Defined in: [src/canvas/Canvas.ts:898](https://github.com/fabricjs/fabric.js/blo *** -### \_chooseObjectsToRender() - -> **\_chooseObjectsToRender**(): [`FabricObject`](/api/classes/fabricobject/)\<`Partial`\<[`FabricObjectProps`](/api/interfaces/fabricobjectprops/)\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\>[] - -Defined in: [src/canvas/SelectableCanvas.ts:376](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/canvas/SelectableCanvas.ts#L376) - -Divides objects in two groups, one to render immediately -and one to render as activeGroup. - -#### Returns - -[`FabricObject`](/api/classes/fabricobject/)\<`Partial`\<[`FabricObjectProps`](/api/interfaces/fabricobjectprops/)\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\>[] - -objects to render immediately and pushes the other in the activeGroup. - -#### Inherited from - -`SelectableCanvas._chooseObjectsToRender` - -*** - ### \_discardActiveObject() > **\_discardActiveObject**(`e?`, `object?`): `this is { _activeObject: undefined }` @@ -1411,6 +1390,27 @@ true if the active object has been discarded *** +### \_chooseObjectsToRender() + +> **\_chooseObjectsToRender**(): [`FabricObject`](/api/classes/fabricobject/)\<`Partial`\<[`FabricObjectProps`](/api/interfaces/fabricobjectprops/)\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\>[] + +Defined in: [src/canvas/SelectableCanvas.ts:376](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/canvas/SelectableCanvas.ts#L376) + +Divides objects in two groups, one to render immediately +and one to render as activeGroup. + +#### Returns + +[`FabricObject`](/api/classes/fabricobject/)\<`Partial`\<[`FabricObjectProps`](/api/interfaces/fabricobjectprops/)\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\>[] + +objects to render immediately and pushes the other in the activeGroup. + +#### Inherited from + +`SelectableCanvas._chooseObjectsToRender` + +*** + ### \_onStackOrderChanged() > **\_onStackOrderChanged**(): `void` diff --git a/src/content/docs/api/classes/FabricText.md b/src/content/docs/api/classes/FabricText.md index 2fc11caf7..104e05f8f 100644 --- a/src/content/docs/api/classes/FabricText.md +++ b/src/content/docs/api/classes/FabricText.md @@ -377,21 +377,6 @@ when being scaled via the controls. *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:347](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L347) - -additional space between characters -expressed in thousands of em unit - -#### Implementation of - -`UniqueTextProps.charSpacing` - -*** - ### clipPath? > `optional` **clipPath**: [`BaseFabricObject`](/api/classes/basefabricobject/)\<`Partial`\<`ObjectProps`\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\> @@ -858,6 +843,21 @@ null *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:347](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L347) + +additional space between characters +expressed in thousands of em unit + +#### Implementation of + +`UniqueTextProps.charSpacing` + +*** + ### includeDefaultValues > **includeDefaultValues**: `boolean` diff --git a/src/content/docs/api/classes/IText.md b/src/content/docs/api/classes/IText.md index e9c3d91f0..c8edbc26b 100644 --- a/src/content/docs/api/classes/IText.md +++ b/src/content/docs/api/classes/IText.md @@ -482,21 +482,6 @@ when being scaled via the controls. *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:347](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L347) - -additional space between characters -expressed in thousands of em unit - -#### Inherited from - -`ITextClickBehavior.charSpacing` - -*** - ### clipPath? > `optional` **clipPath**: [`BaseFabricObject`](/api/classes/basefabricobject/)\<`Partial`\<`ObjectProps`\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\> @@ -1131,6 +1116,21 @@ null *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:347](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L347) + +additional space between characters +expressed in thousands of em unit + +#### Inherited from + +`ITextClickBehavior.charSpacing` + +*** + ### includeDefaultValues > **includeDefaultValues**: `boolean` diff --git a/src/content/docs/api/classes/Textbox.md b/src/content/docs/api/classes/Textbox.md index 597efec12..34eb8c250 100644 --- a/src/content/docs/api/classes/Textbox.md +++ b/src/content/docs/api/classes/Textbox.md @@ -436,21 +436,6 @@ when being scaled via the controls. *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:347](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L347) - -additional space between characters -expressed in thousands of em unit - -#### Inherited from - -[`IText`](/api/classes/itext/).[`charSpacing`](/api/classes/itext/#charspacing) - -*** - ### clipPath? > `optional` **clipPath**: [`BaseFabricObject`](/api/classes/basefabricobject/)\<`Partial`\<`ObjectProps`\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\> @@ -1109,6 +1094,21 @@ null *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:347](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L347) + +additional space between characters +expressed in thousands of em unit + +#### Inherited from + +[`IText`](/api/classes/itext/).[`charSpacing`](/api/classes/itext/#charspacing) + +*** + ### includeDefaultValues > **includeDefaultValues**: `boolean` diff --git a/src/content/docs/api/fabric/namespaces/filters/classes/Blur.md b/src/content/docs/api/fabric/namespaces/filters/classes/Blur.md index 43767b287..c0789b930 100644 --- a/src/content/docs/api/fabric/namespaces/filters/classes/Blur.md +++ b/src/content/docs/api/fabric/namespaces/filters/classes/Blur.md @@ -292,22 +292,6 @@ Defined in: [src/filters/BaseFilter.ts:332](https://github.com/fabricjs/fabric.j *** -### chooseRightDelta() - -> **chooseRightDelta**(): `number`[] - -Defined in: [src/filters/Blur.ts:199](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/filters/Blur.ts#L199) - -choose right value of image percentage to blur with - -#### Returns - -`number`[] - -a numeric array with delta values - -*** - ### createHelpLayer() > **createHelpLayer**(`options`): `void` @@ -514,6 +498,22 @@ Defined in: [src/filters/BaseFilter.ts:70](https://github.com/fabricjs/fabric.js *** +### chooseRightDelta() + +> **chooseRightDelta**(): `number`[] + +Defined in: [src/filters/Blur.ts:199](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/filters/Blur.ts#L199) + +choose right value of image percentage to blur with + +#### Returns + +`number`[] + +a numeric array with delta values + +*** + ### isNeutralState() > **isNeutralState**(): `boolean` diff --git a/src/content/docs/api/fabric/namespaces/util/type-aliases/TAnimationCallbacks.md b/src/content/docs/api/fabric/namespaces/util/type-aliases/TAnimationCallbacks.md index 241331792..6ee872a64 100644 --- a/src/content/docs/api/fabric/namespaces/util/type-aliases/TAnimationCallbacks.md +++ b/src/content/docs/api/fabric/namespaces/util/type-aliases/TAnimationCallbacks.md @@ -28,23 +28,23 @@ If it returns true, abort *** -### onChange +### onComplete -> **onChange**: [`TOnAnimationChangeCallback`](/api/fabric/namespaces/util/type-aliases/tonanimationchangecallback/)\<`T`\> +> **onComplete**: [`TOnAnimationChangeCallback`](/api/fabric/namespaces/util/type-aliases/tonanimationchangecallback/)\<`T`\> -Defined in: [src/util/animation/types.ts:83](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/util/animation/types.ts#L83) +Defined in: [src/util/animation/types.ts:88](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/util/animation/types.ts#L88) -Called at each frame of the animation +Called after the last frame of the animation *** -### onComplete +### onChange -> **onComplete**: [`TOnAnimationChangeCallback`](/api/fabric/namespaces/util/type-aliases/tonanimationchangecallback/)\<`T`\> +> **onChange**: [`TOnAnimationChangeCallback`](/api/fabric/namespaces/util/type-aliases/tonanimationchangecallback/)\<`T`\> -Defined in: [src/util/animation/types.ts:88](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/util/animation/types.ts#L88) +Defined in: [src/util/animation/types.ts:83](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/util/animation/types.ts#L83) -Called after the last frame of the animation +Called at each frame of the animation *** diff --git a/src/content/docs/api/interfaces/CanvasEvents.md b/src/content/docs/api/interfaces/CanvasEvents.md index 8dbbc9d19..43e184f43 100644 --- a/src/content/docs/api/interfaces/CanvasEvents.md +++ b/src/content/docs/api/interfaces/CanvasEvents.md @@ -708,18 +708,6 @@ Defined in: [src/EventTypeDefs.ts:222](https://github.com/fabricjs/fabric.js/blo *** -### text:changed - -> **text:changed**: `object` - -Defined in: [src/EventTypeDefs.ts:345](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/EventTypeDefs.ts#L345) - -#### target - -> **target**: [`IText`](/api/classes/itext/) - -*** - ### text:editing:entered > **text:editing:entered**: `object` & `Partial`\<[`TEvent`](/api/interfaces/tevent/)\<[`TPointerEvent`](/api/type-aliases/tpointerevent/)\>\> @@ -746,6 +734,18 @@ Defined in: [src/EventTypeDefs.ts:347](https://github.com/fabricjs/fabric.js/blo *** +### text:changed + +> **text:changed**: `object` + +Defined in: [src/EventTypeDefs.ts:345](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/EventTypeDefs.ts#L345) + +#### target + +> **target**: [`IText`](/api/classes/itext/) + +*** + ### text:selection:changed > **text:selection:changed**: `object` diff --git a/src/content/docs/api/interfaces/ITextProps.md b/src/content/docs/api/interfaces/ITextProps.md index e1979dee0..54ec56531 100644 --- a/src/content/docs/api/interfaces/ITextProps.md +++ b/src/content/docs/api/interfaces/ITextProps.md @@ -212,18 +212,6 @@ when being scaled via the controls. *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) - -#### Inherited from - -[`TextProps`](/api/interfaces/textprops/).[`charSpacing`](/api/interfaces/textprops/#charspacing) - -*** - ### clipPath? > `optional` **clipPath**: [`BaseFabricObject`](/api/classes/basefabricobject/)\<`Partial`\<`ObjectProps`\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\> @@ -616,6 +604,18 @@ null *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) + +#### Inherited from + +[`TextProps`](/api/interfaces/textprops/).[`charSpacing`](/api/interfaces/textprops/#charspacing) + +*** + ### includeDefaultValues > **includeDefaultValues**: `boolean` diff --git a/src/content/docs/api/interfaces/SerializedITextProps.md b/src/content/docs/api/interfaces/SerializedITextProps.md index 50bb085e1..b6f598e2b 100644 --- a/src/content/docs/api/interfaces/SerializedITextProps.md +++ b/src/content/docs/api/interfaces/SerializedITextProps.md @@ -52,18 +52,6 @@ takes css colors https://www.w3.org/TR/css-color-3/ *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) - -#### Inherited from - -[`SerializedTextProps`](/api/interfaces/serializedtextprops/).[`charSpacing`](/api/interfaces/serializedtextprops/#charspacing) - -*** - ### clipPath? > `optional` **clipPath**: `Partial`\<[`SerializedObjectProps`](/api/interfaces/serializedobjectprops/) & `ClipPathProps`\> @@ -252,6 +240,18 @@ Object height *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) + +#### Inherited from + +[`SerializedTextProps`](/api/interfaces/serializedtextprops/).[`charSpacing`](/api/interfaces/serializedtextprops/#charspacing) + +*** + ### left > **left**: `number` diff --git a/src/content/docs/api/interfaces/SerializedTextProps.md b/src/content/docs/api/interfaces/SerializedTextProps.md index a76216eb2..5f30aba8c 100644 --- a/src/content/docs/api/interfaces/SerializedTextProps.md +++ b/src/content/docs/api/interfaces/SerializedTextProps.md @@ -52,18 +52,6 @@ takes css colors https://www.w3.org/TR/css-color-3/ *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) - -#### Inherited from - -`UniqueTextProps.charSpacing` - -*** - ### clipPath? > `optional` **clipPath**: `Partial`\<[`SerializedObjectProps`](/api/interfaces/serializedobjectprops/) & `ClipPathProps`\> @@ -252,6 +240,18 @@ Object height *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) + +#### Inherited from + +`UniqueTextProps.charSpacing` + +*** + ### left > **left**: `number` diff --git a/src/content/docs/api/interfaces/SerializedTextboxProps.md b/src/content/docs/api/interfaces/SerializedTextboxProps.md index a44fb9d6b..2e672d411 100644 --- a/src/content/docs/api/interfaces/SerializedTextboxProps.md +++ b/src/content/docs/api/interfaces/SerializedTextboxProps.md @@ -48,18 +48,6 @@ takes css colors https://www.w3.org/TR/css-color-3/ *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) - -#### Inherited from - -[`SerializedITextProps`](/api/interfaces/serializeditextprops/).[`charSpacing`](/api/interfaces/serializeditextprops/#charspacing) - -*** - ### clipPath? > `optional` **clipPath**: `Partial`\<[`SerializedObjectProps`](/api/interfaces/serializedobjectprops/) & `ClipPathProps`\> @@ -248,6 +236,18 @@ Object height *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) + +#### Inherited from + +[`SerializedITextProps`](/api/interfaces/serializeditextprops/).[`charSpacing`](/api/interfaces/serializeditextprops/#charspacing) + +*** + ### left > **left**: `number` diff --git a/src/content/docs/api/interfaces/TextProps.md b/src/content/docs/api/interfaces/TextProps.md index 40db91d24..8dd5a3e2f 100644 --- a/src/content/docs/api/interfaces/TextProps.md +++ b/src/content/docs/api/interfaces/TextProps.md @@ -212,18 +212,6 @@ when being scaled via the controls. *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) - -#### Inherited from - -`UniqueTextProps.charSpacing` - -*** - ### clipPath? > `optional` **clipPath**: [`BaseFabricObject`](/api/classes/basefabricobject/)\<`Partial`\<`ObjectProps`\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\> @@ -616,6 +604,18 @@ null *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) + +#### Inherited from + +`UniqueTextProps.charSpacing` + +*** + ### includeDefaultValues > **includeDefaultValues**: `boolean` diff --git a/src/content/docs/api/interfaces/TextboxProps.md b/src/content/docs/api/interfaces/TextboxProps.md index 2dde840df..32647b03f 100644 --- a/src/content/docs/api/interfaces/TextboxProps.md +++ b/src/content/docs/api/interfaces/TextboxProps.md @@ -220,18 +220,6 @@ when being scaled via the controls. *** -### charSpacing - -> **charSpacing**: `number` - -Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) - -#### Inherited from - -[`ITextProps`](/api/interfaces/itextprops/).[`charSpacing`](/api/interfaces/itextprops/#charspacing) - -*** - ### clipPath? > `optional` **clipPath**: [`BaseFabricObject`](/api/classes/basefabricobject/)\<`Partial`\<`ObjectProps`\>, [`SerializedObjectProps`](/api/interfaces/serializedobjectprops/), [`ObjectEvents`](/api/interfaces/objectevents/)\> @@ -636,6 +624,18 @@ null *** +### charSpacing + +> **charSpacing**: `number` + +Defined in: [src/shapes/Text/Text.ts:98](https://github.com/fabricjs/fabric.js/blob/9a792f4b7b8031f02ec7ea4ce8c99f810e45cfec/src/shapes/Text/Text.ts#L98) + +#### Inherited from + +[`ITextProps`](/api/interfaces/itextprops/).[`charSpacing`](/api/interfaces/itextprops/#charspacing) + +*** + ### includeDefaultValues > **includeDefaultValues**: `boolean` diff --git a/src/content/docs/api/type-aliases/ITextEvents.md b/src/content/docs/api/type-aliases/ITextEvents.md index 0f2b20d32..d63c4ae87 100644 --- a/src/content/docs/api/type-aliases/ITextEvents.md +++ b/src/content/docs/api/type-aliases/ITextEvents.md @@ -11,10 +11,6 @@ Defined in: [src/shapes/IText/ITextBehavior.ts:30](https://github.com/fabricjs/f ## Type Declaration -### changed - -> **changed**: `never` \| \{ `action`: `string`; `index`: `number`; \} - ### editing:entered > **editing:entered**: `never` \| \{ `e`: [`TPointerEvent`](/api/type-aliases/tpointerevent/); \} @@ -23,6 +19,10 @@ Defined in: [src/shapes/IText/ITextBehavior.ts:30](https://github.com/fabricjs/f > **editing:exited**: `never` +### changed + +> **changed**: `never` \| \{ `action`: `string`; `index`: `number`; \} + ### selection:changed > **selection:changed**: `never` diff --git a/src/layouts/style.css b/src/layouts/style.css index c24665f38..c5cc61a43 100644 --- a/src/layouts/style.css +++ b/src/layouts/style.css @@ -33,6 +33,7 @@ 'century gothic', sans-serif; direction: ltr; line-height: 1.6; + width: fit-content; cursor: default; /*forces a pointer type cursor instead of selecton caret*/ /*font-feature-settings: 'kern'; text-rendering: optimizeLegibility;*/