/* NOTE: This size is changed if in iframe - see below '.iframe canvas' */ width: 400px; height: 300px; display: block; } </style> </head> <body> <canvas id="c"></canvas> <canvas id="c2"></canvas><canvas id="c3"></canvas><canvas id="c4"></canvas> </body> </html...
•1.9.12•a year ago•57dependents•0BSDpublished version1.9.12,a year ago57dependentslicensed under $0BSD 351,518 nanohtml HTML template strings for the Browser with support for Server Side Rendering in Node. choo node html template-string ...
(c) => { - let ch = String.fromCodePoint(c); - if (ch == '\n') { - console.log(app._wa_print_buf); - app._wa_print_buf = ""; - } - else { - app._wa_print_buf += ch - } + function onMouseDown(ev) { + let pt = getPointOnCanvas(ev.clientX, ev.clientY); ...
<!doctype html><html><head><metacharset="utf-8"><title>Canvas 3D球形文字云动画特效</title><style>body{background-color:#000000;color:#555555;}h4{font-family:sans-serif;color:#555555;font-size:16px;}h3{font-family:sans-serif;color:#555555;}p{font-family:sans-serif;color:#888888;font...
1, + lastPoint: { + x: 0, + y: 0 + } + }, + resizeTimer: null, + canvasImage: null + }), g = () => { + console.log(i.canvasElement); + const e = x.options; + if (e) + for (const o in e) + e[o] != null && e[o] != null && (i.config[o] = e[o...
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.13.tgz#8c320eafbb3ba2c70d8062128c5b71503e342471" integrity sha512-b02/nNKGSV85Gw9pUCI5B48AYjk0vFggDeom0S6QMP/cEDtjSh1WVfoIFNAaLA0MHWfue8KBwoGVsN7rBshs4g== esbuild-freebsd-64@0.13.13: version "...
Convenience method for loading images. This method works in both Node.js and Web browsers. const{ loadImage } =require('canvas')constmyimg = loadImage('http://server.com/image.png') myimg.then(()=>{// do something with image}).catch(err=>{console.log('oh no!', err) ...
{ 1848 "version" : "2.16.0" , 1849 "resolved" : "https://registry.npmjs.org/commander/-/commander-2.16.0.tgz" , 1850 "integrity" : "sha512-svxqklsaotk9at437sflfpyocjonxe0yst/ag9dkqkudie6iqgimv4sfaqskajbsdvejyitascrbivqhq1hqew==" , 1851 "dev" : true 1852 }, 1853 "com...
setFill(c); gc.fillRect(0, 0, canvas.getWidth(), canvas.getHeight()); tfAsArray.setText(SVColor.toStringF(c.getRed(), c.getGreen(), c.getBlue(), c.getOpacity())); } }; r.getValueObserver().addListener(valListener); g.getValueObserver().addListener(valListener); b.getValue...
"@leafer-in/html@1.0.0-rc.19": version "1.0.0-rc.19" resolved "https://registry.yarnpkg.com/@leafer-in/html/-/html-1.0.0-rc.19.tgz#53051800c72f28adc531d3a2cae912e191792a49" integrity sha512-N8xxIYZroLgH0C8aEkp3f7PzJPiAO1UW14TzZdNI+MrS1V78Z/Ez00S3aYoethXa2gy30b42H1...