Skip to content

Commit 868dafc

Browse files
Copilotspech66
andauthored
Upgrade fabric.js from 5.2.4 to 6.0.2 with breaking change migration
Agent-Logs-Url: https://github.com/spech66/lifelogbb/sessions/f1459c63-47cf-433c-b70a-f4d3474f6680 Co-authored-by: spech66 <22615238+spech66@users.noreply.github.com>
1 parent 823c35b commit 868dafc

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

LifelogBb/Views/BucketLists/VisionBoard.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
@section Scripts
2121
{
22-
<script src="~/lib/fabricjs/fabric.min.js"></script>
22+
<script src="~/lib/fabricjs/dist/index.min.js"></script>
2323
<script type="text/javascript">
2424
fitToContainer(document.getElementById('boardCanvas'));
2525
@@ -74,7 +74,7 @@
7474
}
7575
7676
images.forEach(imgData => {
77-
fabric.Image.fromURL(imgData.url, function (oImg) {
77+
fabric.Image.fromURL(imgData.url).then(function (oImg) {
7878
oImg.scale(0.4);
7979
oImg.set({
8080
left: getRandomIntInclusive(40, 600),

LifelogBb/libman.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@
5757
]
5858
},
5959
{
60-
"library": "fabric.js@5.2.4",
60+
"provider": "unpkg",
61+
"library": "fabric@6.0.2",
6162
"destination": "wwwroot/lib/fabricjs/",
6263
"files": [
63-
"fabric.min.js"
64+
"dist/index.min.js"
6465
]
6566
},
6667
{

LifelogBb/wwwroot/lib/fabricjs/dist/index.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LifelogBb/wwwroot/lib/fabricjs/fabric.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)