Skip to content
Merged
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
4 changes: 2 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const bundleSize = (name, sourcemap) => {

const modules = ['math'];
const generateModuleBuild = () => {
return modules.map((module) => {
return modules.map(module => {
return {
input: `src/${module}/index.js`,
output: [
Expand Down Expand Up @@ -83,7 +83,7 @@ const generateModuleBuild = () => {
});
};

rmSync("./dist", {
rmSync('./dist', {
force: true,
recursive: true
});
Expand Down
8 changes: 4 additions & 4 deletions src/accessibility/describe.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ function describe(p5, fn){
*
* <div>
* <code>
*
*
* function setup(){
* createCanvas(100, 100);
* };
*
*
* function draw() {
* background(200);
*
Expand All @@ -101,11 +101,11 @@ function describe(p5, fn){
*
* <div>
* <code>
*
*
* function setup(){
* createCanvas(100, 100);
* }
*
*
* function draw() {
* background(200);
*
Expand Down
3 changes: 2 additions & 1 deletion src/accessibility/gridOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ function gridOutput(p5, fn){
//if empty cell of location of shape is undefined
if (!cells[ingredients[x][y].loc.locY][ingredients[x][y].loc.locX]) {
//fill it with shape info
cells[ingredients[x][y].loc.locY][ingredients[x][y].loc.locX] = fill;
cells[ingredients[x][y].loc.locY][ingredients[x][y].loc.locX] =
fill;
//if a shape is already in that location
} else {
//add it
Expand Down
19 changes: 10 additions & 9 deletions src/accessibility/outputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ function outputs(p5, fn){
*
* <div>
* <code>
*
*
* function setup(){
* createCanvas(100, 100);
* }
*
*
* function draw() {
* // Add the text description.
* textOutput();
Expand All @@ -106,11 +106,11 @@ function outputs(p5, fn){
*
* <div>
* <code>
*
*
* function setup(){
* createCanvas(100, 100);
* }
*
*
* function draw() {
* // Add the text description and
* // display it for debugging.
Expand Down Expand Up @@ -225,11 +225,11 @@ function outputs(p5, fn){
*
* <div>
* <code>
*
*
* function setup() {
* createCanvas(100, 100);
* }
*
*
* function draw() {
* // Add the grid description.
* gridOutput();
Expand All @@ -250,11 +250,11 @@ function outputs(p5, fn){
*
* <div>
* <code>
*
*
* function setup(){
* createCanvas(100, 100);
* }
*
*
* function draw() {
* // Add the grid description and
* // display it for debugging.
Expand Down Expand Up @@ -561,7 +561,8 @@ function outputs(p5, fn){

//gets position of shape in the canvas
fn._getPos = function (x, y) {
const { x: transformedX, y: transformedY } = this.worldToScreen(new p5.Vector(x, y));
const { x: transformedX, y: transformedY } =
this.worldToScreen(new p5.Vector(x, y));
const canvasWidth = this.width;
const canvasHeight = this.height;
if (transformedX < 0.4 * canvasWidth) {
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import webgl from './webgl';
webgl(p5);

// typography
import type from './type'
import type from './type';
type(p5);

import { waitForDocumentReady, waitingForTranslator, _globalInit } from './core/init';
Expand Down
2 changes: 1 addition & 1 deletion src/color/p5.Color.culori.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Color {
export class Color {
_color;
maxes;
mode;
Expand Down
Loading
Loading