From dbe9e326ba1541010b127a8ea347750c0602141e Mon Sep 17 00:00:00 2001 From: "john@roojs.com" Date: Mon, 24 Dec 2018 15:50:56 +0800 Subject: [PATCH] bezier test --- Roo/bootstrap/BezierSignature.js | 19 +-- buildSDK/dependancy_bootstrap.txt | 4 +- examples/bootstrap/BezierSignature.bjs | 32 ++++ examples/bootstrap/BezierSignature.html | 27 +++ examples/bootstrap/BezierSignature.js | 51 ++++++ roojs-bootstrap-debug.js | 218 +++++++++++++++++++++++- roojs-bootstrap.js | 10 ++ 7 files changed, 347 insertions(+), 14 deletions(-) create mode 100644 examples/bootstrap/BezierSignature.bjs create mode 100644 examples/bootstrap/BezierSignature.html create mode 100644 examples/bootstrap/BezierSignature.js diff --git a/Roo/bootstrap/BezierSignature.js b/Roo/bootstrap/BezierSignature.js index 18a1bb9d71..15f5395d9e 100644 --- a/Roo/bootstrap/BezierSignature.js +++ b/Roo/bootstrap/BezierSignature.js @@ -17,17 +17,6 @@ Roo.bootstrap.BezierSignature = function(config){ Roo.bootstrap.BezierSignature.superclass.constructor.call(this, config); - - this.addEvents({ - // raw events - /** - * @event click - * When a Brick is click - * @param {Roo.bootstrap.Brick} this - * @param {Roo.EventObject} e - */ - "click" : true - }); }; Roo.extend(Roo.bootstrap.BezierSignature, Roo.bootstrap.Component, { @@ -182,7 +171,7 @@ Roo.extend(Roo.bootstrap.BezierSignature, Roo.bootstrap.Component, { cn: [ { tag: 'canvas', - cls: 'roo-signature-footer' + cls: 'roo-signature-body-canvas' } ] } @@ -194,12 +183,18 @@ Roo.extend(Roo.bootstrap.BezierSignature, Roo.bootstrap.Component, { initEvents: function() { + Roo.bootstrap.BezierSignature.superclass.initEvents.call(this); // assign all object in here... }, isValid: function() { // form cannot detect... + }, + + canvasEl: function() + { + // catching canvas } }); diff --git a/buildSDK/dependancy_bootstrap.txt b/buildSDK/dependancy_bootstrap.txt index 991c195e60..aaa1bba5be 100644 --- a/buildSDK/dependancy_bootstrap.txt +++ b/buildSDK/dependancy_bootstrap.txt @@ -159,4 +159,6 @@ Roo.bootstrap.panel.TabItem Roo.bootstrap.PhoneInputData Roo.bootstrap.PhoneInput -Roo.bootstrap.MoneyField \ No newline at end of file +Roo.bootstrap.MoneyField + +Roo.bootstrap.BezierSignature \ No newline at end of file diff --git a/examples/bootstrap/BezierSignature.bjs b/examples/bootstrap/BezierSignature.bjs new file mode 100644 index 0000000000..7df3999ebb --- /dev/null +++ b/examples/bootstrap/BezierSignature.bjs @@ -0,0 +1,32 @@ +{ + "name" : "BezierSignature", + "parent" : "", + "title" : "BezierSignature", + "path" : "/home/veridate/gitlive/roojs1/examples/bootstrap/BezierSignature.bjs", + "permname" : "", + "modOrder" : "001", + "items" : [ + { + "xtype" : "Body", + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "listeners" : { + "render" : "function (_self)\n{\n _this.ctn = this;\n}" + }, + "xtype" : "Container", + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "listeners" : { + "render" : "function (_self)\n{\n _this.sign = this;\n}" + }, + "xtype" : "BezierSignature", + "$ xns" : "Roo.bootstrap" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/examples/bootstrap/BezierSignature.html b/examples/bootstrap/BezierSignature.html new file mode 100644 index 0000000000..3b71deb0ad --- /dev/null +++ b/examples/bootstrap/BezierSignature.html @@ -0,0 +1,27 @@ + + + + Bootstrap Bezier Signature + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/bootstrap/BezierSignature.js b/examples/bootstrap/BezierSignature.js new file mode 100644 index 0000000000..1373119677 --- /dev/null +++ b/examples/bootstrap/BezierSignature.js @@ -0,0 +1,51 @@ +//