Skip to content

Commit 041aca0

Browse files
committed
Merge branch 'dev-2.0' into sproutleaf
2 parents b42960e + 789cd5b commit 041aca0

File tree

574 files changed

+59196
-59546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

574 files changed

+59196
-59546
lines changed

.github/ISSUE_TEMPLATE/1-p5.js-2.0-RFC-proposal.yml

Lines changed: 0 additions & 98 deletions
This file was deleted.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: 📃 p5.js 2.0 Beta Bug Report
2+
description: This template is for submitting a bug report for bugs found in the p5.js 2.0 beta releases.
3+
title: "[p5.js 2.0 Beta Bug Report]: "
4+
labels: [p5.js 2.0]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
### What falls under this category?
10+
There has been many changes to p5.js in 2.0 that is currently released as beta versions. If you suspect there may be a bug, please follow the below steps before opening a bug report using this template:
11+
12+
1. There are some differences in behavior between p5.js 1.x and 2.0 beta, please check the changelog and/or [proposal list](https://github.com/orgs/processing/projects/21) to see if the difference in behavior is intended. If in doubt, feel free to open the issue anyway and ask.
13+
2. Breaking changes may still happen between beta versions, please make sure to include the full beta version number and use the latest beta release where possible.
14+
3. We are not considering any new proposal for p5.js 2.0 at this stage and if you would like to request new features, please use the "New feature request" issue template.
15+
4. The documentation and examples may be outdated at this stage while we work on updating them.
16+
- type: checkboxes
17+
id: sub-area
18+
attributes:
19+
label: Most appropriate sub-area of p5.js?
20+
description: You may select more than one.
21+
options:
22+
- label: Accessibility
23+
- label: Color
24+
- label: Core/Environment/Rendering
25+
- label: Data
26+
- label: DOM
27+
- label: Events
28+
- label: Image
29+
- label: IO
30+
- label: Math
31+
- label: Typography
32+
- label: Utilities
33+
- label: WebGL
34+
- label: Build process
35+
- label: Unit testing
36+
- label: Internationalization
37+
- label: Friendly errors
38+
- label: Other (specify if possible)
39+
- type: input
40+
attributes:
41+
label: p5.js version
42+
description: You can find this in the first line of the p5.js file.
43+
validations:
44+
required: false
45+
- type: input
46+
attributes:
47+
label: Web browser and version
48+
description: In the address bar, on Chrome enter "chrome://version", on Firefox enter "about:support". On Safari, use "About Safari".
49+
validations:
50+
required: false
51+
- type: input
52+
attributes:
53+
label: Operating system
54+
description: "Ex: Windows/MacOSX/Linux/Android/iOS along with version"
55+
validations:
56+
required: false
57+
- type: textarea
58+
attributes:
59+
label: Steps to reproduce this
60+
description: Include a simple code snippet that demonstrates the problem, along with any console errors produced. If this isn't possible, then simply describe the issue as best you can!
61+
value: "### Steps:
62+
63+
1.
64+
65+
2.
66+
67+
3.
68+
69+
70+
### Snippet:
71+
72+
73+
```js
74+
75+
76+
// Paste your code here :)
77+
78+
79+
```"
80+
validations:
81+
required: true

.github/workflows/ci-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- dev-2.0
78
pull_request:
89
branches:
910
- '*'

.github/workflows/release-workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ jobs:
4141
run: npm ci
4242
env:
4343
CI: true
44-
- name: Run build
44+
- name: Run test
4545
run: npm test
4646
env:
4747
CI: true
48-
- run: rm ./lib/p5-test.js ./lib/p5.pre-min.js
48+
- name: Run build
49+
run: npm run build
4950

5051
# 2. Prepare release files
5152
- run: mkdir release && mkdir p5 && cp -r ./lib/* p5/

.swcrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/parameterData.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@
374374
[
375375
"Number?",
376376
"Number?",
377-
"P2D|WEBGL?",
377+
"String?",
378378
"HTMLCanvasElement?"
379379
],
380380
[
@@ -403,7 +403,7 @@
403403
[
404404
"Number",
405405
"Number",
406-
"P2D|WEBGL?",
406+
"String?",
407407
"HTMLCanvasElement?"
408408
],
409409
[
@@ -1564,16 +1564,16 @@
15641564
"String",
15651565
"Number",
15661566
"Number",
1567-
"undefined?"
1567+
"Function?"
15681568
]
15691569
]
15701570
},
15711571
"loadImage": {
15721572
"overloads": [
15731573
[
15741574
"String",
1575-
"undefined?",
1576-
"undefined?"
1575+
"Function?",
1576+
"Function?"
15771577
]
15781578
]
15791579
},
@@ -2982,21 +2982,21 @@
29822982
[
29832983
"String",
29842984
"Boolean",
2985-
"undefined?",
2986-
"undefined?",
2985+
"Function?",
2986+
"Function?",
29872987
"String?"
29882988
],
29892989
[
29902990
"String",
2991-
"undefined?",
2992-
"undefined?",
2991+
"Function?",
2992+
"Function?",
29932993
"String?"
29942994
],
29952995
[
29962996
"String",
29972997
"Object?",
2998-
"undefined?",
2999-
"undefined?",
2998+
"Function?",
2999+
"Function?",
30003000
"String?",
30013001
"Boolean?",
30023002
"Boolean?",

0 commit comments

Comments
 (0)