From 0baf353c60ac1ac416dcb070762b62667f59db14 Mon Sep 17 00:00:00 2001 From: linghuam <1551827898@qq.com> Date: Tue, 25 Jun 2019 19:21:07 +0800 Subject: [PATCH] m --- b00-阅读笔记/zrender源码/z.md | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/b00-阅读笔记/zrender源码/z.md b/b00-阅读笔记/zrender源码/z.md index 670bb9e..5d1fdc2 100644 --- a/b00-阅读笔记/zrender源码/z.md +++ b/b00-阅读笔记/zrender源码/z.md @@ -188,8 +188,12 @@ var event = function(e) { ### fourPointsTransform.js +The algoritm is learnt from:https://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/ + ### GestureMgr.js +手势判断 + ### guid.js ```js @@ -332,3 +336,41 @@ LRUProto.get = function (key) { } }; ``` + +### matrix.js + +矩阵操作: + +* 矩阵相乘 +* 平移变换 +* 旋转变换 +* 缩放变换 +* 求逆矩阵 + +### PathProxy.js + +### timsort.js + +https://github.com/mziccard/node-timsort +https://www.infopulse.com/blog/timsort-sorting-algorithm/ + +### util.js + +```js + function inherits(clazz, baseClazz) { + var clazzPrototype = clazz.prototype; + function F() {} + F.prototype = baseClazz.prototype; + clazz.prototype = new F(); + + for (var prop in clazzPrototype) { + clazz.prototype[prop] = clazzPrototype[prop]; + } + clazz.prototype.constructor = clazz; + clazz.superClass = baseClazz; +} +``` + +### vector.js + +向量