Skip to content

Commit

Permalink
chore(TS): Text SVG export mixin (fabricjs#8486)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 authored and frankrousseau committed Jan 6, 2023
1 parent 4051296 commit 5b495d8
Show file tree
Hide file tree
Showing 10 changed files with 357 additions and 404 deletions.
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

0 comments on commit 5b495d8

Please sign in to comment.