v6.0.0-beta1
版本发布时间: 2023-02-05 07:21:12
fabricjs/fabric.js最新发布版本:v6.0.0-beta15(2023-10-27 15:42:59)
Version 6.0.0-beta1
ci(): Removed the browser publish script https://github.com/fabricjs/fabric.js/pull/8656 feat(): Node entry point https://github.com/fabricjs/fabric.js/pull/8632 chore(): Change import and export strategy https://github.com/fabricjs/fabric.js/pull/8622 chore(): rename files to modern style https://github.com/fabricjs/fabric.js/pull/8621 chore(): move and rename text & itext files and organize as folders, rename mixins https://github.com/fabricjs/fabric.js/pull/8620 chore(TS): type IText, IText behavior, IText click behavior https://github.com/fabricjs/fabric.js/pull/8610 BREAKING: refactor clone(obj, true) with cloneDeep(obj) and remove all extend, clone calls in favor of object spreads. https://github.com/fabricjs/fabric.js/pull/8600 chore(TS): Fix some error caused by ts-nocheck removals https://github.com/fabricjs/fabric.js/pull/8615 refactor(IText): extract draggable text logic to a delegate https://github.com/fabricjs/fabric.js/pull/8598 chore(TS): Update StaticCanvas to remove ts-nocheck https://github.com/fabricjs/fabric.js/pull/8606 chore(TS): Update filters to remove ts-nocheck and added types where missing https://github.com/fabricjs/fabric.js/pull/8609 chore(TS): Intersection class, finalize TS https://github.com/fabricjs/fabric.js/pull/8603 chore(TS): Update Pattern to remove ts-nocheck and added types where missing https://github.com/fabricjs/fabric.js/pull/8605 chore(TS): Followup for interactivy and controls migration to TS https://github.com/fabricjs/fabric.js/pull/8404 refactor(IText): Fixes Draggable Text for retina and viewport transform #8534 chore(TS): refactor canvas init, fix _initRetinaScaling regression #8520 chore(TS): remove all remaining empty declarations https://github.com/fabricjs/fabric.js/pull/8593 refactor(IText): modernize IText cursor animation based on animation API changes (and fix minor regression) plus leftovers from #8547 https://github.com/fabricjs/fabric.js/pull/8583 refactor(Canvas, IText): Handle cross instance text editing states to an EditingManager class https://github.com/fabricjs/fabric.js/pull/8543 chore(TS): move to export, babel, new rollup, change import statement for fabric. https://github.com/fabricjs/fabric.js/pull/8585; chore(TS): Add declare in front of properties that are type definitions. https://github.com/fabricjs/fabric.js/pull/8574 refactor(Animation): BREAKING: Animation api reduction and semplification (byValue is removed, '+=' syntax is removed, callbacks fired 100%) https://github.com/fabricjs/fabric.js/pull/8547 feat(PolyControl): modify the shape of a poly with control points https://github.com/fabricjs/fabric.js/pull/8556 BREAKING: remove Object.stateful and Object.statefulCache https://github.com/fabricjs/fabric.js/pull/8573 fix(IText): refactor clearing context top logic of itext to align with brush pattern, using the canvas rendering cycle in order to guard from edge cases #8560 fix(Canvas): _initRetinaScaling initializaing the scaling regardless of settings in Canvas. https://github.com/fabricjs/fabric.js/pull/8565 fix(Canvas): regression of canvas migration with pointer and sendPointToPlane https://github.com/fabricjs/fabric.js/pull/8563 chore(TS): Use exports from files to build fabricJS, get rid of HEADER.js https://github.com/fabricjs/fabric.js/pull/8549 chore(): rm fabric.filterBackend => getFilterBackend https://github.com/fabricjs/fabric.js/pull/8487 chore(TS): migrate text SVG export mixin https://github.com/fabricjs/fabric.js/pull/8486 refactor(TS): animate and AnimationRegistry to classes https://github.com/fabricjs/fabric.js/pull/8297 BREAKING: return animation instance from animate instead of a cancel function and remove findAnimationByXXX from AnimationRegistry change animateColor signature to match animate, removed colorEasing fix(Object Stacking): 🔙 refactor logic to support Group 🔝 chore(TS): migrate Group/ActiveSelection https://github.com/fabricjs/fabric.js/pull/8455 chore(TS): Migrate smaller mixins to classes (dataurl and serialization ) https://github.com/fabricjs/fabric.js/pull/8542 chore(TS): Convert Canvas events mixin and grouping mixin https://github.com/fabricjs/fabric.js/pull/8519 chore(TS): Remove backward compatibility initialize methods https://github.com/fabricjs/fabric.js/pull/8525/ chore(TS): replace getKlass utility with a registry that doesn't require full fabricJS to work https://github.com/fabricjs/fabric.js/pull/8500 chore(): use context in static constructors https://github.com/fabricjs/fabric.js/issues/8522 chore(TS): Convert Canvas class #8510 chore(TS): Move object classes #8511 chore(TS): polish text https://github.com/fabricjs/fabric.js/pull/8489 chore(TS): fix import cycle, extract groupSVGElements https://github.com/fabricjs/fabric.js/pull/8506 chore(TS): permissive Point typings https://github.com/fabricjs/fabric.js/pull/8434 chore(TS): polish files https://github.com/fabricjs/fabric.js/pull/8488 fix(TS): EventSpec recognition https://github.com/fabricjs/fabric.js/pull/8497 chore(): rm dead code https://github.com/fabricjs/fabric.js/pull/8493 fix(scaleObject): handle when scale is 0 to not bug flip https://github.com/fabricjs/fabric.js/pull/8490 chore(TS): migrate StatiCanvas to TS https://github.com/fabricjs/fabric.js/pull/8485 chore(): refactor Object.__uid++ => uid() https://github.com/fabricjs/fabric.js/pull/8482 chore(TS): migrate object mixins to TS https://github.com/fabricjs/fabric.js/pull/8414 chore(TS): migrate filters https://github.com/fabricjs/fabric.js/pull/8474 chore(TS): BaseBrush abstract methods https://github.com/fabricjs/fabric.js/pull/8428 feat(): Add createObjectDefaultControls and createTextboxDefaultControls to create copies of control sets. https://github.com/fabricjs/fabric.js/pull/8415 fix(PatternBrush): getPatternSrc, rm getPatternSrcFunction https://github.com/fabricjs/fabric.js/pull/8468 chore(TS): more FabricObject typing https://github.com/fabricjs/fabric.js/pull/8405 chore(TS): Observable types https://github.com/fabricjs/fabric.js/pull/8431 chore(TS): migrate Group/ActiveSelection https://github.com/fabricjs/fabric.js/pull/8455 fix(TS): migration error of itext key mixin (#8421) https://github.com/fabricjs/fabric.js/pull/8457 chore(TS): migrate text classes/mixins https://github.com/fabricjs/fabric.js/pull/8421 chore(TS): migrate Image https://github.com/fabricjs/fabric.js/pull/8443 chore(TS): migrate Shadow https://github.com/fabricjs/fabric.js/pull/8462 fix(Itext): show incorrect pointer position after scale changed chore(TS): migrate text classes/mixins https://github.com/fabricjs/fabric.js/pull/8408 chore(TS): migrate Collection https://github.com/fabricjs/fabric.js/pull/8433 ci(): Simplify filestats even more https://github.com/fabricjs/fabric.js/pull/8449 chore(TS): migrate filter backends https://github.com/fabricjs/fabric.js/pull/8403 chore(TS): migrate Text classes/mixins https://github.com/fabricjs/fabric.js/pull/8408 chore(TS): migrate Path https://github.com/fabricjs/fabric.js/pull/8412 ci(): remove unwanted build stats (from https://github.com/fabricjs/fabric.js/pull/8395) https://github.com/fabricjs/fabric.js/pull/8416 chore(TS): migrate Line https://github.com/fabricjs/fabric.js/pull/8413 chore(TS): migrate Polyline/Polygon https://github.com/fabricjs/fabric.js/pull/8417 chore(TS): migrate Rect https://github.com/fabricjs/fabric.js/pull/8411 chore(TS): migrate Ellipse https://github.com/fabricjs/fabric.js/pull/8408 chore(TS): migrate Triangle to TS https://github.com/fabricjs/fabric.js/pull/8410 chore(TS): migrate Circle to TS https://github.com/fabricjs/fabric.js/pull/8406 chore(TS): convert Object interactivity mixin to its own class https://github.com/fabricjs/fabric.js/pull/8401 chore(TS): Convert controls e6/ts https://github.com/fabricjs/fabric.js/pull/8400 ci(): remove buggy changelog action in favor of git diff bash script + direct git how to merge CHANGELOG.md https://github.com/fabricjs/fabric.js/pull/8346 fix(): skewing controls accuracy + successive interactions https://github.com/fabricjs/fabric.js/pull/8380 chore(TS): Convert Geometry and Origin to classes/e6/ts https://github.com/fabricjs/fabric.js/pull/8390 ci(): build stats report https://github.com/fabricjs/fabric.js/pull/8395 chore(TS): convert object to es6 class https://github.com/fabricjs/fabric.js/pull/8322 docs(): guides follow up, feature request template https://github.com/fabricjs/fabric.js/pull/8379 docs(): refactor guides, bug report template https://github.com/fabricjs/fabric.js/pull/8189 BREAKING fix(polyline/polygon): stroke bounding box for all line join/cap cases https://github.com/fabricjs/fabric.js/pull/8344 BREAKING: _setPositionDimensions was removed in favor of setDimensions test(): Added 2 tests for polygon shapes and transforms with translations https://github.com/fabricjs/fabric.js/pull/8370 fix(textStyles): Handle style objects with only a textBackgroundColor property in stylesToArray https://github.com/fabricjs/fabric.js/pull/8365 chore(): fix typos in intersection file https://github.com/fabricjs/fabric.js/pull/8345 fix(textStyles): Handle empty style object in stylesToArray https://github.com/fabricjs/fabric.js/pull/8357 ci(build): safeguard concurrent unlocking https://github.com/fabricjs/fabric.js/pull/8309 ci(): update stale bot https://github.com/fabricjs/fabric.js/pull/8307 ci(test): await golden generation in visual tests https://github.com/fabricjs/fabric.js/pull/8284 ci(): Add a pipeline check for verifying that CHANGELOG.md has been updated https://github.com/fabricjs/fabric.js/pull/8302 BREAKING feat(fabric.IText) rename data-fabric-hiddentextarea to data-fabric with value textarea ci(): adds a lock file to the repo when build is in progress, makes local testing wait for the build to complete https://github.com/fabricjs/fabric.js/pull/8290 fix(WebGLProbe): regression caused by https://github.com/fabricjs/fabric.js/pull/8199, https://github.com/fabricjs/fabric.js/pull/8301 fix(fabric.utils) added missing import in dom_misc https://github.com/fabricjs/fabric.js/pull/8293 fix(Object): extraParam should not be passed to options https://github.com/fabricjs/fabric.js/pull/8295 test(): add globalCompositeOperation tests https://github.com/fabricjs/fabric.js/pull/8271 fix(): use sendObjectToPlane in mergeClipPaths https://github.com/fabricjs/fabric.js/pull/8247 chore(): prettify all source code https://github.com/fabricjs/fabric.js/pull/8276 chore(lint): disallow Math.hypot, window, document https://github.com/fabricjs/fabric.js/pull/8277 ci(): Add node18 and add a check for prettier https://github.com/fabricjs/fabric.js/pull/8275 ci(test): suite fixes for browser https://github.com/fabricjs/fabric.js/pull/8176 ci(): install prettier https://github.com/fabricjs/fabric.js/pull/8242 ci(): migrate scripts to es6 modules https://github.com/fabricjs/fabric.js/pull/8266 BREAKING refactor(util): remove lang_array since there are no more use cases https://github.com/fabricjs/fabric.js/pull/8274 chore(TS): migrate Pattern https://github.com/fabricjs/fabric.js/pull/8255 ci(): add source-map-support for testing https://github.com/fabricjs/fabric.js/pull/8248 ci(): file cleanup https://github.com/fabricjs/fabric.js/pull/8254 ci(): fix test global error handlers https://github.com/fabricjs/fabric.js/pull/8267 fix(fabric.Canvas): dispose and request animation frame scheduling fix https://github.com/fabricjs/fabric.js/pull/8220 ci(test): fix golden creation from browser https://github.com/fabricjs/fabric.js/pull/8270 BREAKING refactor(util): boundingBoxFromPoints, removed transform https://github.com/fabricjs/fabric.js/pull/8269 ci(): reintroduce node 14 testing https://github.com/fabricjs/fabric.js/pull/8232 chore(TS): finish converting utils https://github.com/fabricjs/fabric.js/pull/8230 test(): Add extensive coverage for mergeClipPath https://github.com/fabricjs/fabric.js/pull/8245 ci() Nicer names for GHA https://github.com/fabricjs/fabric.js/pull/8235 Update tests.yml ci(): consolidate test workflows https://github.com/fabricjs/fabric.js/pull/8227 chore(TS): BREAKING: populateWithProperties => pick https://github.com/fabricjs/fabric.js/pull/8202 chore(TS): extract initFilterBackend from HEADER https://github.com/fabricjs/fabric.js/pull/8199 chore(TS): extract caches from HEADER https://github.com/fabricjs/fabric.js/pull/8198 Chore(TS): migrate Intersection https://github.com/fabricjs/fabric.js/pull/8121 chore(TS): es6 for util/path.ts and more utils converted https://github.com/fabricjs/fabric.js/pull/8201 fix(ci): report build script failure + fix missing logs https://github.com/fabricjs/fabric.js/pull/8188 fix(): update window => fabric.window https://github.com/fabricjs/fabric.js/pull/8209 chore(TS): extract const reNonWord from HEADER https://github.com/fabricjs/fabric.js/pull/8197 chore(TS): extract config values in its own module https://github.com/fabricjs/fabric.js/pull/8194 ci(): update code coverage action comment https://github.com/fabricjs/fabric.js/pull/8205 fix(fabric.Gradient): Guard against deep mutation on svg export for color exports https://github.com/fabricjs/fabric.js/pull/8196 chore(TS): migrate gradient https://github.com/fabricjs/fabric.js/pull/8154 Chore(TS): Convert more utilities https://github.com/fabricjs/fabric.js/pull/8193 docs(CONTRIBUTING): fix typo https://github.com/fabricjs/fabric.js/pull/8191 chore(TS): move control files under controls folder https://github.com/fabricjs/fabric.js/pull/8185 chore(TS): ElementsParser => parser/ElementsParser https://github.com/fabricjs/fabric.js/pull/8183 dep(): fabric.console https://github.com/fabricjs/fabric.js/pull/8184 chore(TS) convert more utils https://github.com/fabricjs/fabric.js/pull/8180 chore(TS): migrate brushes https://github.com/fabricjs/fabric.js/pull/8182 fix(): propagate failed exit code to the process https://github.com/fabricjs/fabric.js/pull/8187 fix(): regain focus on mouse move https://github.com/fabricjs/fabric.js/pull/8179 chore(TS): read fabric version from package.json ci(test): migrate test cmd https://github.com/fabricjs/fabric.js/pull/8138 chore(TS): Move more utils to TS https://github.com/fabricjs/fabric.js/pull/8164 chore(TS): more conversion of utils https://github.com/fabricjs/fabric.js/pull/8148 chore(): Update package.json contributors https://github.com/fabricjs/fabric.js/pull/8157 docs(contributing): rework https://github.com/fabricjs/fabric.js/pull/8158 fix(): add pointer data to drop event https://github.com/fabricjs/fabric.js/pull/8156 chore(TS): prepare for gradient migration https://github.com/fabricjs/fabric.js/pull/8155 docs(Collection): JSDOC fix item return type https://github.com/fabricjs/fabric.js/pull/8152 chore(ts): Convert some utils https://github.com/fabricjs/fabric.js/pull/8123 chore(TS): Migrate Circle to es6/ts chore(TS): migrate parser https://github.com/fabricjs/fabric.js/pull/8122 fix(TS): color merge conflict https://github.com/fabricjs/fabric.js/pull/8133 chore(TS): migrate Point to es6 class and update references. Deprecate xxxEquals methods https://github.com/fabricjs/fabric.js/pull/8120 Chore(TS) Rect to Es6, remove global scope function. https://github.com/fabricjs/fabric.js/pull/8118 chore(TS): Color https://github.com/fabricjs/fabric.js/pull/8115 chore(TS): prepare for Color migration https://github.com/fabricjs/fabric.js/pull/8116 ci(): adapt build script to rollup https://github.com/fabricjs/fabric.js/pull/8114 fix(): Delegate toJson to toObject properly and fix tests https://github.com/fabricjs/fabric.js/pull/8111 chore(TS): convert file ext https://github.com/fabricjs/fabric.js/pull/8108 ci(scripts) patch https://github.com/fabricjs/fabric.js/pull/8102 ci(): switch the old custom build for rollup https://github.com/fabricjs/fabric.js/pull/8013 feat(IText): Draggable text https://github.com/fabricjs/fabric.js/pull/7802 feat(Text): condensed styles structure v6 https://github.com/fabricjs/fabric.js/pull/8006 feat(): on discardActiveObject interrupt current transform. Also add a method to interrupt current transform programmatically https://github.com/fabricjs/fabric.js/pull/7954 fix(fabric.StaticCanvas): imageSmoothing setter for node-cavas special case https://github.com/fabricjs/fabric.js/pull/8032 feat(): support aborting loading resources that requires network calls (promises/requests) https://github.com/fabricjs/fabric.js/pull/7827 fix(fabric.IText) wrong typeof syntax https://github.com/fabricjs/fabric.js/pull/8023 ci(typescript): transformer https://github.com/fabricjs/fabric.js/pull/8020 fix(canvas): clear transform event caching on resize https://github.com/fabricjs/fabric.js/pull/8021 fix(fabric.Canvas): mouseout bug https://github.com/fabricjs/fabric.js/pull/8011 refactor(object_interactivity): draw operation for borders can be overriden https://github.com/fabricjs/fabric.js/pull/7932 feat(Group,canvas): remove canvas from object before firing removed event, filter insertAt for group tests(): fix the visual test loop to work again on fabricjs.com https://github.com/fabricjs/fabric.js/pull/8007 fix(Group): 🛠️ layout, angle and origin ⚡ https://github.com/fabricjs/fabric.js/pull/8004 chore(): move away from extend/clone https://github.com/fabricjs/fabric.js/pull/8001 fix(Canvas): flipped viewport transform coords https://github.com/fabricjs/fabric.js/pull/7515 fix(): cleanup merge conflict resolution artifact https://github.com/fabricjs/fabric.js/pull/7956 fix(Group): part 2 minors changes https://github.com/fabricjs/fabric.js/pull/7916 feat(fabric.Image.filter): Alpha support for Invert filter https://github.com/fabricjs/fabric.js/pull/7933 fix(EraserBrush): visual trace while erasing https://github.com/fabricjs/fabric.js/pull/7991 fix(Point): safeguard initialization https://github.com/fabricjs/fabric.js/pull/7961 fix(Textbox): flipped changeWidth control behavior https://github.com/fabricjs/fabric.js/pull/7980 test(): remove deleted event from test name https://github.com/fabricjs/fabric.js/pull/7992 feat(observable): BREAKING return disposer instead of context for chaining https://github.com/fabricjs/fabric.js/pull/7994 fix(util): setStyle exception https://github.com/fabricjs/fabric.js/pull/7869 test(freedrawing): test enhancement https://github.com/fabricjs/fabric.js/pull/7941 Cleanup README.md https://github.com/fabricjs/fabric.js/pull/7947 ci() update uglifyjs https://github.com/fabricjs/fabric.js/pull/7939 fix(): assigning canvas for collections https://github.com/fabricjs/fabric.js/pull/7934 fix(EraserBrush): use rendered objects for pattern https://github.com/fabricjs/fabric.js/pull/7938 fix(v6): 4th PR of Group Rewrite 🎛️ nested controls 😜 https://github.com/fabricjs/fabric.js/pull/7861 feat(path): getRegularPolygonPath https://github.com/fabricjs/fabric.js/pull/7918 fix(canvas export): regression caused by safegurading https://github.com/fabricjs/fabric.js/pull/7907 ci(): fix build script option exclude https://github.com/fabricjs/fabric.js/pull/7915 feat(Group): 2nd Patch of New Group! 🎉 https://github.com/fabricjs/fabric.js/pull/7859 chore(ci): rename option https://github.com/fabricjs/fabric.js/pull/7875 fix(Canvas): dispose race condition https://github.com/fabricjs/fabric.js/pull/7885 Update funding.yml include Shachar and Steve feat(Group): Change group code, adapt the rest around it https://github.com/fabricjs/fabric.js/pull/7858 chore(): PR template https://github.com/fabricjs/fabric.js/pull/7857 fix(Canvas): safeguard canvas add https://github.com/fabricjs/fabric.js/pull/7866 fix(fabric.Text): support text alignments in RTL text https://github.com/fabricjs/fabric.js/pull/7674 chore(canvas): minor cleanup https://github.com/fabricjs/fabric.js/pull/7851 docs(): fix typo, fix JSDOC for website, minors https://github.com/fabricjs/fabric.js/pull/7853 fix(Canvas): safeguard dispose https://github.com/fabricjs/fabric.js/pull/7775 fix(Polyline): safegurad _setPositionDimensions https://github.com/fabricjs/fabric.js/pull/7850 feat(ci): CLI logging and filter option https://github.com/fabricjs/fabric.js/pull/7844 fix(itext): stop cursor on blur https://github.com/fabricjs/fabric.js/pull/7784 fix(itext): set during text editing https://github.com/fabricjs/fabric.js/pull/7837 fix(Canvas): Safeguard from multiple initialization https://github.com/fabricjs/fabric.js/pull/7776 feat(): fire contextmenu event https://github.com/fabricjs/fabric.js/pull/7714 docs(Text): add proper type for GraphemeBBox https://github.com/fabricjs/fabric.js/pull/7834 chore(): create an alias for getSelectionContext as getTopContext https://github.com/fabricjs/fabric.js/pull/7711 fix(EraserBrush): inverted erasing https://github.com/fabricjs/fabric.js/pull/7689 fix(ci): CLI debug and recreate options https://github.com/fabricjs/fabric.js/pull/7833 feat(ci): better cli https://github.com/fabricjs/fabric.js/pull/7825 feat(fabric.util.animation): add delay option https://github.com/fabricjs/fabric.js/pull/7805 chore(): Update bug report templates https://github.com/fabricjs/fabric.js/pull/7790 fix(Textbox): expose methods for overrides + fix resize filckering https://github.com/fabricjs/fabric.js/pull/7806 fix(fabric.Canvas): canvas export, force retina scaling >= 1 fix(itext_key_behavior.mixin.js): typo https://github.com/fabricjs/fabric.js/pull/7816 feat(): dataURL export - filter objects https://github.com/fabricjs/fabric.js/pull/7788 feat(util): transform utils https://github.com/fabricjs/fabric.js/pull/7614 chore/fix(v6): prerequisites for Group https://github.com/fabricjs/fabric.js/pull/7728 tests() adding an extra controls test where the group are transformed https://github.com/fabricjs/fabric.js/pull/7736 chore(): Group prerequisite minor refactor object_origin fix(): ensure scaling factor is positive for strokeUniform https://github.com/fabricjs/fabric.js/pull/7729 MAJOR chore(v6): neutral prerequisites for fabric.Group rework https://github.com/fabricjs/fabric.js/pull/7726 fix(): add eraser to Object state/cache props https://github.com/fabricjs/fabric.js/pull/7720 feat(Object.isType): accept multiple type https://github.com/fabricjs/fabric.js/pull/7715 MAJOR feat(fabric.Point): divide, scalarDivide, scalarDivideEquals https://github.com/fabricjs/fabric.js/pull/7716 MAJOR feat(): Reuse fabric.Point logic for scaling and naming consistency https://github.com/fabricjs/fabric.js/pull/7710 feat(Canvas#getCenter): migrate to getCenterPoint https://github.com/fabricjs/fabric.js/pull/7699 MAJOR feat(fabric) remove callbacks in for Promise support https://github.com/fabricjs/fabric.js/pull/7657 chore(): BREAKING Cleanup fabric.Point for v6 https://github.com/fabricjs/fabric.js/pull/7709 7e563c7