Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build/concrete.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Concrete v3.0.6
* Concrete v3.0.7
* A lightweight Html5 Canvas framework that enables hit detection, layering, multi buffering,
* pixel ratio management, exports, and image downloads
* Release Date: 6-29-2020
* Release Date: 3-3-2021
* https://github.com/ericdrowell/concrete
* Licensed under the MIT or GPL Version 2 licenses.
*
* Copyright (C) 2020 Eric Rowell @ericdrowell
* Copyright (C) 2021 Eric Rowell @ericdrowell
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -367,7 +367,7 @@ Concrete.Scene.prototype = {
clear: function() {
var context = this.context;
if (this.contextType === '2d') {
context.clearRect(0, 0, this.width * Concrete.PIXEL_RATIO, this.height * Concrete.PIXEL_RATIO);
context.clearRect(0, 0, this.width, this.height);
}
// webgl or webgl2
else {
Expand Down Expand Up @@ -480,7 +480,7 @@ Concrete.Hit.prototype = {
clear: function() {
var context = this.context;
if (this.contextType === '2d') {
context.clearRect(0, 0, this.width * Concrete.PIXEL_RATIO, this.height * Concrete.PIXEL_RATIO);
context.clearRect(0, 0, this.width, this.height);
}
// webgl or webgl2
else {
Expand Down
8 changes: 4 additions & 4 deletions build/concrete.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "concretejs",
"version": "3.0.6",
"version": "3.0.7",
"main": "build/concrete.min.js",
"keywords": [
"html5",
Expand Down
4 changes: 2 additions & 2 deletions src/concrete.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Concrete.Scene.prototype = {
clear: function() {
var context = this.context;
if (this.contextType === '2d') {
context.clearRect(0, 0, this.width * Concrete.PIXEL_RATIO, this.height * Concrete.PIXEL_RATIO);
context.clearRect(0, 0, this.width, this.height);
}
// webgl or webgl2
else {
Expand Down Expand Up @@ -452,7 +452,7 @@ Concrete.Hit.prototype = {
clear: function() {
var context = this.context;
if (this.contextType === '2d') {
context.clearRect(0, 0, this.width * Concrete.PIXEL_RATIO, this.height * Concrete.PIXEL_RATIO);
context.clearRect(0, 0, this.width, this.height);
}
// webgl or webgl2
else {
Expand Down