Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(TS): Text SVG export mixin #8486

Merged
merged 19 commits into from
Dec 31, 2022
Merged
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [next]

- chore(TS): migrate text SVG export mixin [#8486](https://github.com/fabricjs/fabric.js/pull/8486)
- refactor(TS): `animate` and `AnimationRegistry` to classes [#8297](https://github.com/fabricjs/fabric.js/pull/8297)
BREAKING:
- return animation instance from animate instead of a cancel function and remove `findAnimationByXXX` from `AnimationRegistry`
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ import './src/filters/gamma_filter.class'; // optional image_filters
import './src/filters/composed_filter.class'; // optional image_filters
import './src/filters/hue_rotation.class'; // optional image_filters
import './src/shapes/text.class'; // optional text
import './src/mixins/text.svg_export'; // optional svg
import './src/shapes/itext.class'; // optional itext
import './src/mixins/itext.svg_export'; // optional itext
import './src/shapes/textbox.class'; // optional textbox
import './src/controls'; // optional interaction
import './src/brushes'; // optional freedrawing
Expand Down
3 changes: 1 addition & 2 deletions src/canvas/canvas.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ import { setStyle } from '../util/dom_style';
import type { BaseBrush } from '../brushes/base_brush.class';
import type { Textbox } from '../shapes/textbox.class';
import { pick } from '../util/misc/pick';
import { TSVGReviver } from '../mixins/object.svg_export';
import { TSVGReviver } from '../typedefs';
import { sendPointToPlane } from '../util/misc/planeChange';
import { createCanvasElement } from '../util/misc/dom';

type TDestroyedCanvas = Omit<
SelectableCanvas<CanvasEvents>,
Expand Down
2 changes: 1 addition & 1 deletion src/canvas/static_canvas.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { iMatrix, VERSION } from '../constants';
import type { CanvasEvents, StaticCanvasEvents } from '../EventTypeDefs';
import { Gradient } from '../gradient';
import { createCollectionMixin } from '../mixins/collection.mixin';
import { TSVGReviver } from '../mixins/object.svg_export';
import { CommonMethods } from '../mixins/shared_methods.mixin';
import { Pattern } from '../pattern.class';
import { Point } from '../point.class';
Expand All @@ -19,6 +18,7 @@ import {
TFiller,
TMat2D,
TSize,
TSVGReviver,
TToCanvasElementOptions,
TValidToObjectMethod,
} from '../typedefs';
Expand Down
336 changes: 0 additions & 336 deletions src/mixins/itext.svg_export.ts

This file was deleted.

Loading