-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 90e42df Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 13:59:19 2023 +0200 fix(): object caching value workaround for SSR commit 1278696 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 13:58:54 2023 +0200 ssr test commit 6761606 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 13:57:38 2023 +0200 restore jsdom cleanup in static canvas due to FabricObject to canvas method commit 8ad5647 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 13:56:41 2023 +0200 Update object.js commit d29352e Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 13:47:36 2023 +0200 SSR changes commit c98d6e0 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 13:19:49 2023 +0200 prepare for SSR commit bb66394 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 13:05:27 2023 +0200 Update package.json commit 4a3d4aa Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 12:04:21 2023 +0200 Update rollup.config.mjs commit 74299c3 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 12:01:03 2023 +0200 cleanup commit 78bf675 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 11:52:34 2023 +0200 cleanup commit c18651c Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 11:47:43 2023 +0200 node stream methods commit b7e03ca Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 11:27:39 2023 +0200 Update rollup.config.mjs commit 46eb9fd Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 11:26:05 2023 +0200 working! commit a1534c4 Author: ShaMan123 <shacharnen@gmail.com> Date: Tue Jan 31 10:26:49 2023 +0200 node build
- Loading branch information
Showing
23 changed files
with
25,770 additions
and
28,781 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * as default from './fabric'; | ||
export * from './fabric'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import './src/env/node'; | ||
|
||
import type { Canvas as NodeCanvas, JpegConfig, PngConfig } from 'canvas'; | ||
import { getEnv, StaticCanvas as Canvas } from './fabric'; | ||
import { FabricObject } from './src/shapes/Object/Object'; | ||
|
||
// TODO: move back to default values when refactoring to method | ||
FabricObject.prototype.objectCaching = false; | ||
|
||
export * from './fabric'; | ||
|
||
export class StaticCanvas extends Canvas { | ||
getNodeCanvas() { | ||
const impl = getEnv().jsdomImplForWrapper(this.lowerCanvasEl); | ||
return (impl._canvas || impl._image) as NodeCanvas; | ||
} | ||
createPNGStream(opts?: PngConfig) { | ||
return this.getNodeCanvas().createPNGStream(opts); | ||
} | ||
createJPEGStream(opts?: JpegConfig) { | ||
return this.getNodeCanvas().createJPEGStream(opts); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7d22d71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops I didn't mean to commit the dist file.
@asturur This can be a dedicated PR if you prefer