Skip to content

Commit 14f2634

Browse files
committed
rename text2d to textCore
1 parent 21167f0 commit 14f2634

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/type/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
import text2d from './text2d.js';
2+
import textCore from './textCore.js';
33
import p5font from './p5.Font.js';
44

55
export default function(p5){
6-
p5.registerAddon(text2d);
6+
p5.registerAddon(textCore);
77
p5.registerAddon(p5font);
88
}
99

src/type/text2d.js renamed to src/type/textCore.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { Renderer } from '../core/p5.Renderer';
22

33
/**
44
* @module Type
5-
* @submodule text2d
5+
* @submodule textCore
66
* @for p5
77
* @requires core
88
*/
9-
function text2d(p5, fn) {
9+
function textCore(p5, fn) {
1010

1111
// additional constants
1212
fn.IDEOGRAPHIC = 'ideographic';
@@ -1255,8 +1255,8 @@ function text2d(p5, fn) {
12551255
}
12561256
}
12571257

1258-
export default text2d;
1258+
export default textCore;
12591259

12601260
if (typeof p5 !== 'undefined') {
1261-
text2d(p5, p5.prototype);
1261+
textCore(p5, p5.prototype);
12621262
}

0 commit comments

Comments
 (0)