rename: canvas -> draw
This commit is contained in:
parent
75098adbdb
commit
0f07bfc9d7
26 changed files with 43 additions and 43 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { colorMap } from '@strudel/canvas';
|
||||
import { colorMap } from '@strudel/draw';
|
||||
|
||||
const Colors = () => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
||||
import { Icon } from './Icon';
|
||||
import { silence, noteToMidi, _mod } from '@strudel/core';
|
||||
import { getPunchcardPainter } from '@strudel/canvas';
|
||||
import { getPunchcardPainter } from '@strudel/draw';
|
||||
import { transpiler } from '@strudel/transpiler';
|
||||
import { getAudioContext, webaudioOutput, initAudioOnFirstClick } from '@strudel/webaudio';
|
||||
import { StrudelMirror } from '@strudel/codemirror';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { createCanvas } from 'canvas';
|
||||
import { pianoroll } from '@strudel/canvas';
|
||||
import { pianoroll } from '@strudel/draw';
|
||||
import { evaluate } from '@strudel/transpiler';
|
||||
import '../../../../test/runtime.mjs';
|
||||
import * as tunes from '../../repl/tunes.mjs';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { createCanvas } from 'canvas';
|
||||
import { pianoroll } from '@strudel/canvas';
|
||||
import { pianoroll } from '@strudel/draw';
|
||||
import { evaluate } from '@strudel/transpiler';
|
||||
import '../../../../test/runtime.mjs';
|
||||
import { getMyPatterns } from '../../my_patterns';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ This program is free software: you can redistribute it and/or modify it under th
|
|||
*/
|
||||
|
||||
import { code2hash, logger, silence } from '@strudel/core';
|
||||
import { getDrawContext } from '@strudel/canvas';
|
||||
import { getDrawContext } from '@strudel/draw';
|
||||
import cx from '@src/cx.mjs';
|
||||
import { transpiler } from '@strudel/transpiler';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export async function getRandomTune() {
|
|||
export function loadModules() {
|
||||
let modules = [
|
||||
import('@strudel/core'),
|
||||
import('@strudel/canvas'),
|
||||
import('@strudel/draw'),
|
||||
import('@strudel/tonal'),
|
||||
import('@strudel/mini'),
|
||||
import('@strudel/xen'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue