摘要: case "select": //选择 canvas.isDrawingMode = false //取消绘画模式 break; case "erase": //橡皮擦 canvas.freeDrawingBrush = new fabric.EraserBrush(canvas); canvas. 阅读全文
posted @ 2022-03-30 17:53 聂小恶 阅读(917) 评论(0) 推荐(0) 编辑
摘要: fabric.Image.fromURL( 'http://fabricjs.com/assets/mononoke.jpg', function(img) { canvas.add(img.set({ left: 400, top: 350, clipPath: new fabric.Circle 阅读全文
posted @ 2022-03-30 17:42 聂小恶 阅读(489) 评论(0) 推荐(0) 编辑
摘要: //canvas元素动画效果 function animate() { try { canvas .item(0) .animate("left", canvas.item(0).get("left") 300 ? "100" : "300", { duration: 1000, onChange: 阅读全文
posted @ 2022-03-30 17:34 聂小恶 阅读(554) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-30 16:51 聂小恶 阅读(86) 评论(0) 推荐(0) 编辑
摘要: refresh() { if (window.confirm('重置将清空已采集的数据,是否继续?')) { this.tableData = []; if (this.websock.readyState > 1) { this.websocketsend(JSON.stringify({ res 阅读全文
posted @ 2022-03-30 16:22 聂小恶 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-30 16:21 聂小恶 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 使用Directive自定义HTML组件: app.directive('hello',function(){ return { restrict:'E',//element replace:true,//用template替换自定义的directive标签 template:'<div>Hello 阅读全文
posted @ 2022-03-30 16:19 聂小恶 阅读(296) 评论(0) 推荐(0) 编辑
摘要: kernel——操作系统内部组件,包括: 》CPU调度 》物理内存管理 》虚拟内存管理 》文件系统管理 》中断处理与设备驱动 OS Kernel的特征: 并发 计算机系统中同时存在多个运行的程序,需要OS管理和调度。 共享 “同时”访问 互斥共享 虚拟 操作系统将CPU虚拟成进程,磁盘虚拟成文件,内 阅读全文
posted @ 2022-03-30 16:18 聂小恶 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-30 16:17 聂小恶 阅读(34) 评论(0) 推荐(0) 编辑
摘要: *{ -webkit-user-select:none; } 阅读全文
posted @ 2022-03-30 16:16 聂小恶 阅读(15) 评论(0) 推荐(0) 编辑
摘要: http://fabricjs.com/image-filters //上面是官网示例 //获取图片方法1 let urlImage fabric.Image.fromURL('./5678c3133aa8766011.jpg', function(img) { urlImage = img // 阅读全文
posted @ 2022-03-30 16:08 聂小恶 阅读(393) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-30 14:03 聂小恶 阅读(2134) 评论(0) 推荐(0) 编辑
摘要: var addCircle = function() { var circle = new fabric.Circle({ left: 100, top: 100, radius: 50 })//渐变样式定义 let gradient = new fabric.Gradient({ type: 'l 阅读全文
posted @ 2022-03-30 13:46 聂小恶 阅读(445) 评论(0) 推荐(0) 编辑