1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249 |
- ht.lib = ht.lib || {};
- if (!ht.lib['矩阵']) {
- ht.lib['矩阵'] = function (x, y, width, height, angle, localVarObj, localDynamicVar, nodename) {
- _ratio = GD.getRatioWithRotation(0, ratio);
- ht.lib['矩阵'].superClass.constructor.apply(this);
- this.localVarObj = localVarObj;
- this.localDynamicVar = localDynamicVar;
- this.childNodes = [];
-
- this._styleObject = {};
- this._originWidth = 54*_ratio.ratioX;
- this._originHeight = 19*_ratio.ratioY;
- this._baseClass = "ht.lib.矩阵";
- this._background = new ht.Node();
- this._background.setWidth(this._originWidth);
- this._background.setHeight(this._originHeight);
- this._background.setPosition(this._originWidth/2, this._originHeight/2);
- this._background.setImage({
- width: width,
- height: height,
- clip: true,
- comps: [
- {
- type: 'rect',
- background: 'rgba(0,255,0,0)',
- rect: [0,0,width, height]
- }
- ]
- });
- this._background.__parentLib = nodename;
- this._background.isLibBackground = true;
- this.childNodes.push(this._background);
- dataModel.add(this._background);
- /*@PageBackgroundInit@*/
- /*@PageBeforeInit@*/
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_矩阵Node0_0type = 'rect';
- var Lib_矩阵Node0_0 = new ht.Node(),
- Lib_矩阵Node0_0BorderWidth = 1*2;
- if (Lib_矩阵Node0_0type === 'arc') {
- Lib_矩阵Node0_0BorderWidth *= 1;
- }
- Lib_矩阵Node0_0.setImage(GD.getRectJSON(54*_ratio.ratioX, 19*_ratio.ratioY, Lib_矩阵Node0_0type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_矩阵Node0_0.setPosition(27*ratio.ratioX, 9*ratio.ratioY);
- Lib_矩阵Node0_0.setSize(54*_ratio.ratioX, 19*_ratio.ratioY);
- Lib_矩阵Node0_0.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_矩阵Node0_0.a('node.width', 54*_ratio.ratioX);
- Lib_矩阵Node0_0.a('node.height', 19*_ratio.ratioY);
- Lib_矩阵Node0_0.a('node.type', Lib_矩阵Node0_0type);
- Lib_矩阵Node0_0.a('node.rect', [0, 0, 54*_ratio.ratioX, 19*_ratio.ratioY]);
- Lib_矩阵Node0_0.a('node.background', 'rgba(108,178,13,1)');
- Lib_矩阵Node0_0.a('node.gradientcolor', 'rgba(108,178,13,1)');
- Lib_矩阵Node0_0.a('node.gradient', '');
- Lib_矩阵Node0_0.a('node.borderwidth', Lib_矩阵Node0_0BorderWidth);
- Lib_矩阵Node0_0.a('node.color', 'rgba(108,178,13,1)');
- Lib_矩阵Node0_0.a('node.fillrect', [0,0,0,0]);
- Lib_矩阵Node0_0.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_0.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_0.a('node.fillgradient', '');
- if (Lib_矩阵Node0_0type !== 'rect') {
- Lib_矩阵Node0_0.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_矩阵Node0_0.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_矩阵Node0_0.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_矩阵Node0_0type === 'arc') {
- Lib_矩阵Node0_0.a('node.arcOval', true);
- }
- Lib_矩阵Node0_0.setRotation(0*Math.PI/180);
- Lib_矩阵Node0_0.borderWidth = Lib_矩阵Node0_0BorderWidth;
- Lib_矩阵Node0_0.borderFillwidth = Lib_矩阵Node0_0BorderWidth;
- dataModel.add(Lib_矩阵Node0_0);
- Lib_矩阵Node0_0._nodename = 'Lib_矩阵Node0_0'
- Lib_矩阵Node0_0._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_矩阵Node0_0,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Lib_矩阵Node0_0, Lib_矩阵Node0_0.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_矩阵Node0_1type = 'rect';
- var Lib_矩阵Node0_1 = new ht.Node(),
- Lib_矩阵Node0_1BorderWidth = 1*2;
- if (Lib_矩阵Node0_1type === 'arc') {
- Lib_矩阵Node0_1BorderWidth *= 1;
- }
- Lib_矩阵Node0_1.setImage(GD.getRectJSON(54*_ratio.ratioX, 19*_ratio.ratioY, Lib_矩阵Node0_1type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_矩阵Node0_1.setPosition(27*ratio.ratioX, 9*ratio.ratioY);
- Lib_矩阵Node0_1.setSize(54*_ratio.ratioX, 19*_ratio.ratioY);
- Lib_矩阵Node0_1.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_矩阵Node0_1.a('node.width', 54*_ratio.ratioX);
- Lib_矩阵Node0_1.a('node.height', 19*_ratio.ratioY);
- Lib_矩阵Node0_1.a('node.type', Lib_矩阵Node0_1type);
- Lib_矩阵Node0_1.a('node.rect', [0, 0, 54*_ratio.ratioX, 19*_ratio.ratioY]);
- Lib_矩阵Node0_1.a('node.background', 'rgba(146,156,163,1)');
- Lib_矩阵Node0_1.a('node.gradientcolor', 'rgba(146,156,163,1)');
- Lib_矩阵Node0_1.a('node.gradient', '');
- Lib_矩阵Node0_1.a('node.borderwidth', Lib_矩阵Node0_1BorderWidth);
- Lib_矩阵Node0_1.a('node.color', 'rgba(146,156,163,1)');
- Lib_矩阵Node0_1.a('node.fillrect', [0,0,0,0]);
- Lib_矩阵Node0_1.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_1.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_1.a('node.fillgradient', '');
- if (Lib_矩阵Node0_1type !== 'rect') {
- Lib_矩阵Node0_1.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_矩阵Node0_1.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_矩阵Node0_1.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_矩阵Node0_1type === 'arc') {
- Lib_矩阵Node0_1.a('node.arcOval', true);
- }
- Lib_矩阵Node0_1.setRotation(0*Math.PI/180);
- Lib_矩阵Node0_1.borderWidth = Lib_矩阵Node0_1BorderWidth;
- Lib_矩阵Node0_1.borderFillwidth = Lib_矩阵Node0_1BorderWidth;
- dataModel.add(Lib_矩阵Node0_1);
- Lib_矩阵Node0_1._nodename = 'Lib_矩阵Node0_1'
- Lib_矩阵Node0_1._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_矩阵Node0_1,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Lib_矩阵Node0_1, Lib_矩阵Node0_1.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_矩阵Node0_2type = 'rect';
- var Lib_矩阵Node0_2 = new ht.Node(),
- Lib_矩阵Node0_2BorderWidth = 1*2;
- if (Lib_矩阵Node0_2type === 'arc') {
- Lib_矩阵Node0_2BorderWidth *= 1;
- }
- Lib_矩阵Node0_2.setImage(GD.getRectJSON(54*_ratio.ratioX, 19*_ratio.ratioY, Lib_矩阵Node0_2type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_矩阵Node0_2.setPosition(27*ratio.ratioX, 9*ratio.ratioY);
- Lib_矩阵Node0_2.setSize(54*_ratio.ratioX, 19*_ratio.ratioY);
- Lib_矩阵Node0_2.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_矩阵Node0_2.a('node.width', 54*_ratio.ratioX);
- Lib_矩阵Node0_2.a('node.height', 19*_ratio.ratioY);
- Lib_矩阵Node0_2.a('node.type', Lib_矩阵Node0_2type);
- Lib_矩阵Node0_2.a('node.rect', [0, 0, 54*_ratio.ratioX, 19*_ratio.ratioY]);
- Lib_矩阵Node0_2.a('node.background', 'rgba(169,60,140,1)');
- Lib_矩阵Node0_2.a('node.gradientcolor', 'rgba(169,60,140,1)');
- Lib_矩阵Node0_2.a('node.gradient', '');
- Lib_矩阵Node0_2.a('node.borderwidth', Lib_矩阵Node0_2BorderWidth);
- Lib_矩阵Node0_2.a('node.color', 'rgba(169,60,140,1)');
- Lib_矩阵Node0_2.a('node.fillrect', [0,0,0,0]);
- Lib_矩阵Node0_2.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_2.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_2.a('node.fillgradient', '');
- if (Lib_矩阵Node0_2type !== 'rect') {
- Lib_矩阵Node0_2.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_矩阵Node0_2.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_矩阵Node0_2.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_矩阵Node0_2type === 'arc') {
- Lib_矩阵Node0_2.a('node.arcOval', true);
- }
- Lib_矩阵Node0_2.setRotation(0*Math.PI/180);
- Lib_矩阵Node0_2.borderWidth = Lib_矩阵Node0_2BorderWidth;
- Lib_矩阵Node0_2.borderFillwidth = Lib_矩阵Node0_2BorderWidth;
- dataModel.add(Lib_矩阵Node0_2);
- Lib_矩阵Node0_2._nodename = 'Lib_矩阵Node0_2'
- Lib_矩阵Node0_2._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_矩阵Node0_2,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Lib_矩阵Node0_2, Lib_矩阵Node0_2.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_矩阵Node0_3type = 'rect';
- var Lib_矩阵Node0_3 = new ht.Node(),
- Lib_矩阵Node0_3BorderWidth = 1*2;
- if (Lib_矩阵Node0_3type === 'arc') {
- Lib_矩阵Node0_3BorderWidth *= 1;
- }
- Lib_矩阵Node0_3.setImage(GD.getRectJSON(54*_ratio.ratioX, 19*_ratio.ratioY, Lib_矩阵Node0_3type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_矩阵Node0_3.setPosition(27*ratio.ratioX, 9*ratio.ratioY);
- Lib_矩阵Node0_3.setSize(54*_ratio.ratioX, 19*_ratio.ratioY);
- Lib_矩阵Node0_3.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_矩阵Node0_3.a('node.width', 54*_ratio.ratioX);
- Lib_矩阵Node0_3.a('node.height', 19*_ratio.ratioY);
- Lib_矩阵Node0_3.a('node.type', Lib_矩阵Node0_3type);
- Lib_矩阵Node0_3.a('node.rect', [0, 0, 54*_ratio.ratioX, 19*_ratio.ratioY]);
- Lib_矩阵Node0_3.a('node.background', 'rgba(219,51,51,1)');
- Lib_矩阵Node0_3.a('node.gradientcolor', 'rgba(219,51,51,1)');
- Lib_矩阵Node0_3.a('node.gradient', '');
- Lib_矩阵Node0_3.a('node.borderwidth', Lib_矩阵Node0_3BorderWidth);
- Lib_矩阵Node0_3.a('node.color', 'rgba(219,51,51,1)');
- Lib_矩阵Node0_3.a('node.fillrect', [0,0,0,0]);
- Lib_矩阵Node0_3.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_3.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_3.a('node.fillgradient', '');
- if (Lib_矩阵Node0_3type !== 'rect') {
- Lib_矩阵Node0_3.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_矩阵Node0_3.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_矩阵Node0_3.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_矩阵Node0_3type === 'arc') {
- Lib_矩阵Node0_3.a('node.arcOval', true);
- }
- Lib_矩阵Node0_3.setRotation(0*Math.PI/180);
- Lib_矩阵Node0_3.borderWidth = Lib_矩阵Node0_3BorderWidth;
- Lib_矩阵Node0_3.borderFillwidth = Lib_矩阵Node0_3BorderWidth;
- dataModel.add(Lib_矩阵Node0_3);
- Lib_矩阵Node0_3._nodename = 'Lib_矩阵Node0_3'
- Lib_矩阵Node0_3._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_矩阵Node0_3,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Lib_矩阵Node0_3, Lib_矩阵Node0_3.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_矩阵Node0_4type = 'rect';
- var Lib_矩阵Node0_4 = new ht.Node(),
- Lib_矩阵Node0_4BorderWidth = 1*2;
- if (Lib_矩阵Node0_4type === 'arc') {
- Lib_矩阵Node0_4BorderWidth *= 1;
- }
- Lib_矩阵Node0_4.setImage(GD.getRectJSON(54*_ratio.ratioX, 19*_ratio.ratioY, Lib_矩阵Node0_4type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_矩阵Node0_4.setPosition(27*ratio.ratioX, 9*ratio.ratioY);
- Lib_矩阵Node0_4.setSize(54*_ratio.ratioX, 19*_ratio.ratioY);
- Lib_矩阵Node0_4.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_矩阵Node0_4.a('node.width', 54*_ratio.ratioX);
- Lib_矩阵Node0_4.a('node.height', 19*_ratio.ratioY);
- Lib_矩阵Node0_4.a('node.type', Lib_矩阵Node0_4type);
- Lib_矩阵Node0_4.a('node.rect', [0, 0, 54*_ratio.ratioX, 19*_ratio.ratioY]);
- Lib_矩阵Node0_4.a('node.background', 'rgba(255,114,14,1)');
- Lib_矩阵Node0_4.a('node.gradientcolor', 'rgba(255,114,14,1)');
- Lib_矩阵Node0_4.a('node.gradient', '');
- Lib_矩阵Node0_4.a('node.borderwidth', Lib_矩阵Node0_4BorderWidth);
- Lib_矩阵Node0_4.a('node.color', 'rgba(255,114,14,1)');
- Lib_矩阵Node0_4.a('node.fillrect', [0,0,0,0]);
- Lib_矩阵Node0_4.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_4.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_4.a('node.fillgradient', '');
- if (Lib_矩阵Node0_4type !== 'rect') {
- Lib_矩阵Node0_4.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_矩阵Node0_4.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_矩阵Node0_4.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_矩阵Node0_4type === 'arc') {
- Lib_矩阵Node0_4.a('node.arcOval', true);
- }
- Lib_矩阵Node0_4.setRotation(0*Math.PI/180);
- Lib_矩阵Node0_4.borderWidth = Lib_矩阵Node0_4BorderWidth;
- Lib_矩阵Node0_4.borderFillwidth = Lib_矩阵Node0_4BorderWidth;
- dataModel.add(Lib_矩阵Node0_4);
- Lib_矩阵Node0_4._nodename = 'Lib_矩阵Node0_4'
- Lib_矩阵Node0_4._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_矩阵Node0_4,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Lib_矩阵Node0_4, Lib_矩阵Node0_4.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_矩阵Node0_5type = 'rect';
- var Lib_矩阵Node0_5 = new ht.Node(),
- Lib_矩阵Node0_5BorderWidth = 1*2;
- if (Lib_矩阵Node0_5type === 'arc') {
- Lib_矩阵Node0_5BorderWidth *= 1;
- }
- Lib_矩阵Node0_5.setImage(GD.getRectJSON(54*_ratio.ratioX, 19*_ratio.ratioY, Lib_矩阵Node0_5type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_矩阵Node0_5.setPosition(27*ratio.ratioX, 9*ratio.ratioY);
- Lib_矩阵Node0_5.setSize(54*_ratio.ratioX, 19*_ratio.ratioY);
- Lib_矩阵Node0_5.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_矩阵Node0_5.a('node.width', 54*_ratio.ratioX);
- Lib_矩阵Node0_5.a('node.height', 19*_ratio.ratioY);
- Lib_矩阵Node0_5.a('node.type', Lib_矩阵Node0_5type);
- Lib_矩阵Node0_5.a('node.rect', [0, 0, 54*_ratio.ratioX, 19*_ratio.ratioY]);
- Lib_矩阵Node0_5.a('node.background', 'rgba(0,164,218,1)');
- Lib_矩阵Node0_5.a('node.gradientcolor', 'rgba(0,164,218,1)');
- Lib_矩阵Node0_5.a('node.gradient', '');
- Lib_矩阵Node0_5.a('node.borderwidth', Lib_矩阵Node0_5BorderWidth);
- Lib_矩阵Node0_5.a('node.color', 'rgba(0,164,218,1)');
- Lib_矩阵Node0_5.a('node.fillrect', [0,0,0,0]);
- Lib_矩阵Node0_5.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_5.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_矩阵Node0_5.a('node.fillgradient', '');
- if (Lib_矩阵Node0_5type !== 'rect') {
- Lib_矩阵Node0_5.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_矩阵Node0_5.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_矩阵Node0_5.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_矩阵Node0_5type === 'arc') {
- Lib_矩阵Node0_5.a('node.arcOval', true);
- }
- Lib_矩阵Node0_5.setRotation(0*Math.PI/180);
- Lib_矩阵Node0_5.borderWidth = Lib_矩阵Node0_5BorderWidth;
- Lib_矩阵Node0_5.borderFillwidth = Lib_矩阵Node0_5BorderWidth;
- dataModel.add(Lib_矩阵Node0_5);
- Lib_矩阵Node0_5._nodename = 'Lib_矩阵Node0_5'
- Lib_矩阵Node0_5._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_矩阵Node0_5,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Lib_矩阵Node0_5, Lib_矩阵Node0_5.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_矩阵Node0_6 = new ht.Node();
- var Lib_矩阵Node0_6textStart, Lib_矩阵Node0_6textWidth, Lib_矩阵Node0_6lineStart, Lib_矩阵Node0_6align = 'center', Lib_矩阵Node0_6fontSize = 9.33331*_ratio.ratioY,Lib_矩阵Node0_6width = 39*_ratio.ratioX, Lib_矩阵Node0_6height = 16*_ratio.ratioY;
- (function () {
- if (Lib_矩阵Node0_6align === 'left') {
- Lib_矩阵Node0_6textStart = Lib_矩阵Node0_6fontSize * 0.2 > 2 ? Lib_矩阵Node0_6fontSize * 0.2 - 4 : Lib_矩阵Node0_6fontSize * 0.2 - 9;
- Lib_矩阵Node0_6textWidth = Lib_矩阵Node0_6width;
- Lib_矩阵Node0_6lineStart = 1;
- } else if (Lib_矩阵Node0_6align === 'right') {
- Lib_矩阵Node0_6textStart = 0;
- Lib_矩阵Node0_6textWidth =Lib_矩阵Node0_6fontSize <= 8 ? Lib_矩阵Node0_6width + Lib_矩阵Node0_6fontSize * 0.2 + 6 : Lib_矩阵Node0_6width - Lib_矩阵Node0_6fontSize * 0.2;
- Lib_矩阵Node0_6lineStart = (Lib_矩阵Node0_6width - (ht.Default.getTextSize('TEXT', ' '+ Lib_矩阵Node0_6fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Lib_矩阵Node0_6align === 'center') {
- Lib_矩阵Node0_6textStart = -3;
- Lib_矩阵Node0_6textWidth = Lib_矩阵Node0_6width;
- Lib_矩阵Node0_6lineStart = Lib_矩阵Node0_6width - ht.Default.getTextSize('TEXT', ' '+ Lib_矩阵Node0_6fontSize + 'px "Arial"').width - 11;
- }
- })();
- Lib_矩阵Node0_6.setImage(GD.getTextJSON(Lib_矩阵Node0_6width, Lib_矩阵Node0_6height, true, false, false, ' '+ Lib_矩阵Node0_6fontSize + 'px "Arial"'))
- Lib_矩阵Node0_6.setPosition(27*ratio.ratioX, 10*ratio.ratioY);
- Lib_矩阵Node0_6.setWidth(Lib_矩阵Node0_6width);
- Lib_矩阵Node0_6.setHeight(Lib_矩阵Node0_6height);
- Lib_矩阵Node0_6._nodeType = 'text';
- Lib_矩阵Node0_6._disallowEvert = true;
- Lib_矩阵Node0_6.setRotation(0*Math.PI/180);
- Lib_矩阵Node0_6.a('node.width', Lib_矩阵Node0_6width);
- Lib_矩阵Node0_6.a('node.height', Lib_矩阵Node0_6height);
- Lib_矩阵Node0_6.a('node.rect', [0, 0, Lib_矩阵Node0_6width, Lib_矩阵Node0_6height]);
- Lib_矩阵Node0_6.a('node.bordercolor','rgba(0,0,0,1)');
- Lib_矩阵Node0_6.a('node.borderwidth', 0);
- Lib_矩阵Node0_6.a('node.background','' || 'rgba(0,0,0,0)');
- Lib_矩阵Node0_6.a('node.gradient','');
- Lib_矩阵Node0_6.a('node.gradientcolor','');
- Lib_矩阵Node0_6.a('node.text','TEXT');
- Lib_矩阵Node0_6.a('node.textalign','center');
- Lib_矩阵Node0_6.a('node.textvAlign','middle');
- Lib_矩阵Node0_6.a('node.textrect', [Lib_矩阵Node0_6textStart, 0, Lib_矩阵Node0_6textWidth, Lib_矩阵Node0_6height]);
- Lib_矩阵Node0_6.a('node.color','rgba(0,0,0,1)');
- Lib_矩阵Node0_6.a('node.font',' '+ Lib_矩阵Node0_6fontSize + 'px "Arial"');
- Lib_矩阵Node0_6.a('node.textvisible',true);
- Lib_矩阵Node0_6.a('node.linefeed',false);
- if (false) {
- Lib_矩阵Node0_6.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Lib_矩阵Node0_6.a('node.text') || 'TEXT';
- var color=Lib_矩阵Node0_6.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,9.33331*0.5*_ratio.ratioY,Lib_矩阵Node0_6width,Lib_矩阵Node0_6height,9.33331*_ratio.ratioY,"center",color,' '+ Lib_矩阵Node0_6fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Lib_矩阵Node0_6.a('node.underlinepoints',[Lib_矩阵Node0_6lineStart, (16 - 9.33331) * 0.5 * _ratio.ratioY + Lib_矩阵Node0_6fontSize + 2 , ht.Default.getTextSize('TEXT', ' '+ Lib_矩阵Node0_6fontSize + 'px "Arial"').width + 6, (Lib_矩阵Node0_6height - Lib_矩阵Node0_6fontSize) * 0.5*_ratio.ratioY + Lib_矩阵Node0_6fontSize + 2 ]);
- Lib_矩阵Node0_6.a('node.underlinevisible',false);
- Lib_矩阵Node0_6.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Lib_矩阵Node0_6);
- zoomNodeList.push({
- node: Lib_矩阵Node0_6,
- borderWidth: 0,
- attr: 'node.borderwidth'
- });
- /*@GraphList@*/
- /*@PageInit@*/
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
- var fjzt= localVarObj.fjzt || localDynamicVarObj.fjzt;
- var A= localVarObj.A || localDynamicVarObj.A;
- var B= localVarObj.B || localDynamicVarObj.B;
- var C= localVarObj.C || localDynamicVarObj.C;
- var E= localVarObj.E || localDynamicVarObj.E;
- var F= localVarObj.F || localDynamicVarObj.F;
- var G= localVarObj.G || localDynamicVarObj.G;
- var H= localVarObj.H || localDynamicVarObj.H;
- var I= localVarObj.I || localDynamicVarObj.I;
- this['Lib_矩阵Node0_0'] = Lib_矩阵Node0_0;
- Lib_矩阵Node0_0.__parentLib = nodename;
- Lib_矩阵Node0_0.__parent = this;
- this.childNodes.push(Lib_矩阵Node0_0);
- this['Lib_矩阵Node0_1'] = Lib_矩阵Node0_1;
- Lib_矩阵Node0_1.__parentLib = nodename;
- Lib_矩阵Node0_1.__parent = this;
- this.childNodes.push(Lib_矩阵Node0_1);
- this['Lib_矩阵Node0_2'] = Lib_矩阵Node0_2;
- Lib_矩阵Node0_2.__parentLib = nodename;
- Lib_矩阵Node0_2.__parent = this;
- this.childNodes.push(Lib_矩阵Node0_2);
- this['Lib_矩阵Node0_3'] = Lib_矩阵Node0_3;
- Lib_矩阵Node0_3.__parentLib = nodename;
- Lib_矩阵Node0_3.__parent = this;
- this.childNodes.push(Lib_矩阵Node0_3);
- this['Lib_矩阵Node0_4'] = Lib_矩阵Node0_4;
- Lib_矩阵Node0_4.__parentLib = nodename;
- Lib_矩阵Node0_4.__parent = this;
- this.childNodes.push(Lib_矩阵Node0_4);
- this['Lib_矩阵Node0_5'] = Lib_矩阵Node0_5;
- Lib_矩阵Node0_5.__parentLib = nodename;
- Lib_矩阵Node0_5.__parent = this;
- this.childNodes.push(Lib_矩阵Node0_5);
- this['Lib_矩阵Node0_6'] = Lib_矩阵Node0_6;
- Lib_矩阵Node0_6.__parentLib = nodename;
- Lib_矩阵Node0_6.__parent = this;
- this.childNodes.push(Lib_矩阵Node0_6);
- /*@ControlContextMenu@*/
- /*@Declare@*/
- this.init(x, y, width, height, angle);
- };
- ht.Default.def('ht.lib.矩阵', Object, {
- refresh10ms: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
- var fjzt= localVarObj.fjzt || localDynamicVarObj.fjzt;
- var A= localVarObj.A || localDynamicVarObj.A;
- var B= localVarObj.B || localDynamicVarObj.B;
- var C= localVarObj.C || localDynamicVarObj.C;
- var E= localVarObj.E || localDynamicVarObj.E;
- var F= localVarObj.F || localDynamicVarObj.F;
- var G= localVarObj.G || localDynamicVarObj.G;
- var H= localVarObj.H || localDynamicVarObj.H;
- var I= localVarObj.I || localDynamicVarObj.I;
- var Lib_矩阵Node0_0= this.Lib_矩阵Node0_0;
- var Lib_矩阵Node0_1= this.Lib_矩阵Node0_1;
- var Lib_矩阵Node0_2= this.Lib_矩阵Node0_2;
- var Lib_矩阵Node0_3= this.Lib_矩阵Node0_3;
- var Lib_矩阵Node0_4= this.Lib_矩阵Node0_4;
- var Lib_矩阵Node0_5= this.Lib_矩阵Node0_5;
- var Lib_矩阵Node0_6= this.Lib_矩阵Node0_6;
- /*@refresh10ms@*/
- },
- refresh100ms: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
- var fjzt= localVarObj.fjzt || localDynamicVarObj.fjzt;
- var A= localVarObj.A || localDynamicVarObj.A;
- var B= localVarObj.B || localDynamicVarObj.B;
- var C= localVarObj.C || localDynamicVarObj.C;
- var E= localVarObj.E || localDynamicVarObj.E;
- var F= localVarObj.F || localDynamicVarObj.F;
- var G= localVarObj.G || localDynamicVarObj.G;
- var H= localVarObj.H || localDynamicVarObj.H;
- var I= localVarObj.I || localDynamicVarObj.I;
- var Lib_矩阵Node0_0= this.Lib_矩阵Node0_0;
- var Lib_矩阵Node0_1= this.Lib_矩阵Node0_1;
- var Lib_矩阵Node0_2= this.Lib_矩阵Node0_2;
- var Lib_矩阵Node0_3= this.Lib_矩阵Node0_3;
- var Lib_矩阵Node0_4= this.Lib_矩阵Node0_4;
- var Lib_矩阵Node0_5= this.Lib_矩阵Node0_5;
- var Lib_矩阵Node0_6= this.Lib_矩阵Node0_6;
- Lib_矩阵Node0_6.a('node.text',''+bianhao+'');
- /*@refresh100ms@*/
- },
- refresh500ms: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
- var fjzt= localVarObj.fjzt || localDynamicVarObj.fjzt;
- var A= localVarObj.A || localDynamicVarObj.A;
- var B= localVarObj.B || localDynamicVarObj.B;
- var C= localVarObj.C || localDynamicVarObj.C;
- var E= localVarObj.E || localDynamicVarObj.E;
- var F= localVarObj.F || localDynamicVarObj.F;
- var G= localVarObj.G || localDynamicVarObj.G;
- var H= localVarObj.H || localDynamicVarObj.H;
- var I= localVarObj.I || localDynamicVarObj.I;
- var Lib_矩阵Node0_0= this.Lib_矩阵Node0_0;
- var Lib_矩阵Node0_1= this.Lib_矩阵Node0_1;
- var Lib_矩阵Node0_2= this.Lib_矩阵Node0_2;
- var Lib_矩阵Node0_3= this.Lib_矩阵Node0_3;
- var Lib_矩阵Node0_4= this.Lib_矩阵Node0_4;
- var Lib_矩阵Node0_5= this.Lib_矩阵Node0_5;
- var Lib_矩阵Node0_6= this.Lib_矩阵Node0_6;
- if((1 )>0) {if(((getVarValue(fjzt)==0)>0 )){Lib_矩阵Node0_0.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_矩阵Node0_0.s('2d.visible',false&&this.getStyle('2d.visible'));}}
- if((1 )>0) {if(((getVarValue(fjzt)==3)>0 )){Lib_矩阵Node0_1.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_矩阵Node0_1.s('2d.visible',false&&this.getStyle('2d.visible'));}}
- if((1 )>0) {if(((getVarValue(fjzt)==5||getVarValue(fjzt)==6)>0 )){Lib_矩阵Node0_2.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_矩阵Node0_2.s('2d.visible',false&&this.getStyle('2d.visible'));}}
- if((1 )>0) {if(((getVarValue(fjzt)==2)>0 )){Lib_矩阵Node0_3.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_矩阵Node0_3.s('2d.visible',false&&this.getStyle('2d.visible'));}}
- if((1 )>0) {if(((getVarValue(fjzt)==4)>0 )){Lib_矩阵Node0_4.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_矩阵Node0_4.s('2d.visible',false&&this.getStyle('2d.visible'));}}
- if((1 )>0) {if(((getVarValue(fjzt)==1)>0 )){Lib_矩阵Node0_5.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_矩阵Node0_5.s('2d.visible',false&&this.getStyle('2d.visible'));}}
- /*@refresh500ms@*/
- },
- refresh1s: function () {
- var Counter1s = arguments[0] || 0;
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
- var fjzt= localVarObj.fjzt || localDynamicVarObj.fjzt;
- var A= localVarObj.A || localDynamicVarObj.A;
- var B= localVarObj.B || localDynamicVarObj.B;
- var C= localVarObj.C || localDynamicVarObj.C;
- var E= localVarObj.E || localDynamicVarObj.E;
- var F= localVarObj.F || localDynamicVarObj.F;
- var G= localVarObj.G || localDynamicVarObj.G;
- var H= localVarObj.H || localDynamicVarObj.H;
- var I= localVarObj.I || localDynamicVarObj.I;
- var Lib_矩阵Node0_0= this.Lib_矩阵Node0_0;
- var Lib_矩阵Node0_1= this.Lib_矩阵Node0_1;
- var Lib_矩阵Node0_2= this.Lib_矩阵Node0_2;
- var Lib_矩阵Node0_3= this.Lib_矩阵Node0_3;
- var Lib_矩阵Node0_4= this.Lib_矩阵Node0_4;
- var Lib_矩阵Node0_5= this.Lib_矩阵Node0_5;
- var Lib_矩阵Node0_6= this.Lib_矩阵Node0_6;
- /*@refresh1s@*/
- },
- refresh5s: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
- var fjzt= localVarObj.fjzt || localDynamicVarObj.fjzt;
- var A= localVarObj.A || localDynamicVarObj.A;
- var B= localVarObj.B || localDynamicVarObj.B;
- var C= localVarObj.C || localDynamicVarObj.C;
- var E= localVarObj.E || localDynamicVarObj.E;
- var F= localVarObj.F || localDynamicVarObj.F;
- var G= localVarObj.G || localDynamicVarObj.G;
- var H= localVarObj.H || localDynamicVarObj.H;
- var I= localVarObj.I || localDynamicVarObj.I;
- var Lib_矩阵Node0_0= this.Lib_矩阵Node0_0;
- var Lib_矩阵Node0_1= this.Lib_矩阵Node0_1;
- var Lib_矩阵Node0_2= this.Lib_矩阵Node0_2;
- var Lib_矩阵Node0_3= this.Lib_矩阵Node0_3;
- var Lib_矩阵Node0_4= this.Lib_矩阵Node0_4;
- var Lib_矩阵Node0_5= this.Lib_矩阵Node0_5;
- var Lib_矩阵Node0_6= this.Lib_矩阵Node0_6;
- /*@refresh5s@*/
- },
- /*@PageDynamic@*/
- onEvent: function (e, data, type, origin, offset, objMouseOn, ctm) {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
- var fjzt= localVarObj.fjzt || localDynamicVarObj.fjzt;
- var A= localVarObj.A || localDynamicVarObj.A;
- var B= localVarObj.B || localDynamicVarObj.B;
- var C= localVarObj.C || localDynamicVarObj.C;
- var E= localVarObj.E || localDynamicVarObj.E;
- var F= localVarObj.F || localDynamicVarObj.F;
- var G= localVarObj.G || localDynamicVarObj.G;
- var H= localVarObj.H || localDynamicVarObj.H;
- var I= localVarObj.I || localDynamicVarObj.I;
- var Lib_矩阵Node0_0= this.Lib_矩阵Node0_0;
- var Lib_矩阵Node0_1= this.Lib_矩阵Node0_1;
- var Lib_矩阵Node0_2= this.Lib_矩阵Node0_2;
- var Lib_矩阵Node0_3= this.Lib_矩阵Node0_3;
- var Lib_矩阵Node0_4= this.Lib_矩阵Node0_4;
- var Lib_矩阵Node0_5= this.Lib_矩阵Node0_5;
- var Lib_矩阵Node0_6= this.Lib_矩阵Node0_6;
-
- if (type === 'click') {
- /*@EvnentClicked@*/
- } else if (type === 'mousedown') {
- mouseX=e.clientX;
- mouseY=e.clientY;
- if(data === Lib_矩阵Node0_0){if( ( I>=34&&I<=83 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_1){if( ( I>=34&&I<=83 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_2){if( ( I>=34&&I<=83 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_3){if( ( I>=34&&I<=83 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_4){if( ( I>=34&&I<=83 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_5){if( ( I>=34&&I<=83 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( ( E>=1&&E<=33 ) || ( E>=45&&E<=46 ) || ( E>=57&&E<=64 ) || ( E==66 ) || ( E>=78&&E<=99 ) ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_wn1'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( ( E>=34&&E<=44 ) || ( E>=47&&E<=56 ) || ( E==65 ) ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_wn34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( E>=67&&E<=77 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_wn34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( ( F>=1&&F<=16 ) || ( F>=100&&F<=115 ) ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_yy1'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( ( F>=17&&F<=66 ) || ( F>=116&&F<=132 ) ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_yy17'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( F>=67&&F<=99 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_yy67'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( ( G>=1&&G<=66 ) || ( G>=74&&G<=84 ) || ( G>=90&&G<=93 ) ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_pl1'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( ( G>=67&&G<=73 ) || ( G>=85&&G<=89 ) || ( G>=94&&G<=101 ) ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_pl67'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( H>=1 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_gl'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( I>=1&&I<=33 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy1'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- if(data === Lib_矩阵Node0_6){if( ( I>=34&&I<=83 ) >0 ){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = { }; GD.getFullParams(params, data); saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/djz_hy34'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}}}else{} }
- /*@EvnentMouseDown@*/
- } else if (type === 'mouseup') {
- /*@EvnentMouseUp@*/
- } else if (type === 'mousemove') {
- var mouseX, mouseY, position, zoom;
- position=origin.getLogicalPoint(e);
- zoom = graphView.getZoom();
- if (origin === graphView) {
- mouseX= position.x + origin.tx();
- mouseY = position.y + origin.ty();
- } else {
- offset = offset || {x: 0, y: 0};
- mouseX = position.x / zoom + offset.x + origin.tx();
- mouseY = position.y / zoom + offset.y + origin.ty();
- }
- /*@EvnentMouseLeave@*/
- /*@EvnentMouseOver@*/
- } else if (type === 'keydown') {
- /*@EvnentKeyDown@*/
- } else if (type === 'contextmenu') {
- /*@Declare@*/
- /*@SetNodeContextMenu@*/
- /*@SetPageContextMenu@*/
- }
- /*@LibEvent@*/
- },
- getBaseClass: function () {
- return this._baseClass;
- },
- getWidth: function () {
- return this._width;
- },
- getHeight: function () {
- return this._height;
- },
- getSize: function () {
- return {
- width: this._width,
- height: this._height
- }
- },
- setWidth: function (width) {
- if (width === undefined || width === null || width != width) {
- return ;
- }
- var originWidth = this._width;
- var ratio = width / originWidth;
- var childNodes = this.childNodes, childNode, p, op = this.getPosition(), w, cw, ox, rotation = this.getRotation();
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- cw = childNode.getWidth();
- w = cw >=2 ? cw * ratio : cw;
- childNode.setWidth(w);
- ox = op.x + (p.x - op.x) * ratio;
- childNode.setPosition(ox, p.y);
- rotation = GD.calcRotation(rotation);
- if (rotation === 0 || rotation === Math.PI) {
- // 图元未旋转
- ox = op.x + (p.x - op.x)*ratio;
- childNode.setPosition(ox, p.y);
- } else if (rotation === 90 * Math.PI / 180) {
- // 图元旋转以后
- ox = op.y + (p.y - op.y)*ratio;
- childNode.setPosition(p.x, ox);
- }
- }
- this._width = width;
- this._originWidth = width;
- this._ratioX = ratio;
- return this;
- },
- setHeight: function (height) {
- if (height === undefined || height === null || height != height) {
- return ;
- }
- var originHeight = this._height;
- var ratio = height / originHeight;
- var childNodes = this.childNodes, childNode, p, op = this.getPosition(), h, ch, oy, rotation = this.getRotation();
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- ch = childNode.getHeight();
- h = ch >=2 ? ch * ratio : ch;
- childNode.setHeight(h);
-
- rotation = GD.calcRotation(rotation);
- if (rotation === 0 || rotation === Math.PI) {
- // 图元未旋转
- oy = op.y + (p.y - op.y)*ratio;
- childNode.setPosition(p.x, oy);
- } else if (rotation === 90 * Math.PI / 180) {
- // 图元旋转以后
- oy = op.x + (p.x - op.x)*ratio;
- childNode.setPosition(oy, p.y);
- }
- }
- this._height = height;
- this._originHeight = height;
- this._ratioY = ratio;
- return this;
- },
- setSize: function (size) {
- // var args = Array.prototype.slice.call(arguments, 0);
- // var height, width;
- // if (args.length === 0) {
- // return ;
- // }else if (args.length === 1) {
- // height = args[0].height;
- // width = args[0].width;
- // } else {
- // width = args[0];
- // height = args[1];
- // }
- // var wh = GD.getRatioWithRotation(angle, wid)
- // this.setHeight(height);
- // this.setWidth(width);
- // return this;
- var args = Array.prototype.slice.call(arguments, 0);
- var height, width;
- if (args.length === 0) {
- return ;
- }else if (args.length === 1) {
- height = args[0].height;
- width = args[0].width;
- angle = 0;
- } else if (args.length === 2) {
- if (typeof args[0] === 'object') {
- width = args[0].width;
- height = args[0].height;
- angle = args[1] || 0;
- } else {
- width = args[0];
- height = args[1];
- angle = 0;
- }
- } else if (args.length === 3) {
- width = args[0];
- height = args[1];
- angle = args[2] || 0;
- }
- var wh = GD.getRatioWithRotation(0, width, height);
- this.setHeight(wh.ratioY);
- this.setWidth(wh.ratioX);
- return this;
- },
- getPosition: function () {
- return {
- x: this._x,
- y: this._y
- }
- },
- setPosition: function () {
- var args = Array.prototype.slice.call(arguments, 0), x, y;
- if (args.length === 0) {
- return this;
- } else if (args.length === 1) {
- if (typeof args[0] != 'object') {
- return this;
- }
- x = args[0].x;
- y = args[0].y;
- } else {
- x = args[0];
- y = args[1];
- }
- if ((x !== 0 && !x) || (y !== 0 && !y)) {
- return this;
- }
- // var childNodes = this.childNodes, offset, childNode, p;
- // for (var i = 0, len = childNodes.length; i < len; i++) {
- // childNode = childNodes[i];
- // p = childNode.getPosition();
- // childNode.setPosition(x - (this._x-p.x)*this._ratioX, y - (this._y-p.y)*this._ratioY);
- // }
- // this._x = x;
- // this._y = y;
- // return this;
- var childNodes, childNode, background, offset = {}, op, cp;
- childNodes = this.childNodes;
- background = this._background;
- op = background.getPosition();
- offset.x = x - op.x;
- offset.y = y - op.y;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- cp = childNode.getPosition();
- childNode.setPosition(cp.x + offset.x, cp.y + offset.y);
- }
- this._x = x;
- this._y = y;
- this._position = {x: x, y: y};
- return this;
- },
- getStyle: function (key) {
- if (!key) {
- return undefined;
- }
- return this._styleObject[key];
- },
- setStyle: function (key, value, force) {
- var childNodes = this.childNodes, childNode;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (key === '2d.visible') {
- if (value === graphView.isVisible(childNode)) {
- continue;
- }
- if (!value) {
- childNode._savedIsVisible = graphView.isVisible(childNode);
- childNode.s({
- '2d.visible': false
- })
- } else {
- childNode.s({
- '2d.visible': childNode._savedIsVisible
- })
- }
- continue;
- }
- childNode.s({
- key: value
- });
- }
- this._styleObject[key] = value;
- return this;
- },
- calcSize: function () {
- var background = this._background;
- var position = background.getPosition(),
- width = background.getWidth(),
- height = background.getHeight();
- this._width = width;
- this._height = height;
- this._x = position.x;
- this._y = position.y;
- this._position = {
- x: this._x,
- y: this._y
- }
- return this;
- return this;
- },
- s: function (styleObj, force) {
- var args = Array.prototype.slice.call(arguments, 0);
- var styleObj;
- if (args.length === 0) {
- return this;
- } else if (args.length === 1) {
- styleObj = args[0];
- } else {
- this.setStyle(args[0], args[1]);
- return this;
- }
- for (var key in styleObj) {
- if (!styleObj.hasOwnProperty(key)) {
- continue;
- }
- this.setStyle(key, styleObj[key], force);
- }
- return this;
- },
- init: function (x, y, width, height, angle) {
- var that = this;
- this.calcSize();
- (function (width, height, angle) {
- // that.setSize(width, height, angle);
- // var wh = GD.getRatioWithRotation(angle, width, height);
- // width = wh.ratioX;
- // height = wh.ratioY;
- var originHeight = that._height;
- var originWidth = that._width;
- var ratioY = height / originHeight;
- var ratioX = width / originWidth;
- var childNodes = that.childNodes,
- childNode,p, op = that.getPosition(), h, ch, oy, w, cw, ox, name, borderRatio, borderWidth;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- childNode.originHeight = childNode.originHeight || childNode.getHeight();
- ch = childNode.getHeight();
- cw = childNode.getWidth();
-
- if (ch > 2) {
- h = ch * ratioY;
- childNode.setHeight(h);
- }
- if (cw > 2) {
- w = cw * ratioX;
- childNode.setWidth(w);
- }
- borderRatio = (ratioX + ratioY)*0.5;
- if (childNode._nodeType === 'line') { // 如果是线,
- if (childNode.getWidth() > childNode.getHeight()) {
- borderRatio = ratioX;
- } else {
- borderRatio = ratioY;
- }
- }
- name = childNode._nodename;
- // if (childNode.borderWidth && name && ch > 2 && cw > 2) {
- // borderWidth = childNode.borderWidth / borderRatio;
- // if (borderWidth > ch*0.5 || borderWidth > cw *0.5) {
- // // borderWidth = childNode.borderWidth;
- // }
- // childNode.borderWidth = borderWidth;
- // childNode.a(name + '.borderwidth', borderWidth);
- // }
- }
- that._height = height;
- that._originHeight = height;
- that._ratioY = ratioY;
- that._width = width;
- that._originWidth = width;
- that._ratioX = ratioX;
- })(width, height, angle);
- that._x = width / 2;
- that._y = height / 2;
- that._rotation = 0;
- // that.setPosition(x, y);
- (function (x, y) {
- var childNodes = that.childNodes, offset, childNode;
- var w2 = that.getWidth() / 2, h2 = that.getHeight()/2;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- offset = childNode.getPosition();
- childNode.setPosition(x + offset.x * that._ratioX - w2, y + offset.y * that._ratioY - h2);
- }
- that._x = x;
- that._y = y;
- })(x, y);
- // setTimeout(that.addEVent, 1000);
- },
- setRotation: function (angle) {
- var that = this, _angle = that.getRotation();
- if (angle!==0 && !angle || angle === _angle) {
- return this;
- }
- var childNodes = this.childNodes, childNode, p = this.getPosition(), px = p.x, py = p.y;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- var x = childNode.getPosition().x - px;
- var y = childNode.getPosition().y - py;
- childNode.setPosition(Math.cos(angle-_angle) * x - Math.sin(angle-_angle) * y + px, Math.cos(angle-_angle) * y + Math.sin(angle-_angle) * x + py);
- childNode.setRotation(angle);
- }
- this._rotation = angle;
- return this;
- },
- getRotation: function () {
- return this._rotation;
- },
- setScale: function (sx, sy) {
- var that = this,
- childNodes = this.childNodes,
- childNode;
- if (sx === undefined || sx === null) return ;
- if (sy === undefined || sy === null) {
- sy = sx;
- }
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (typeof childNode.setScale === 'function') {
- childNode.setScale(sx, sy);
- }
- }
- },
- getScale: function () {
- return this._background.getScale();
- },
- setScaleX: function (sx) {
- if (sx === undefined || sx === null) return;
- var that = this,
- childNodes = this.childNodes,
- childNode;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (typeof childNode.setScaleX === 'function') {
- childNode.setScaleX(sx);
- }
- }
- },
- setScaleY: function (sy) {
- if (sy === undefined || sy === null) return;
- var that = this,
- childNodes = this.childNodes,
- childNode;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (typeof childNode.setScaleY === 'function') {
- childNode.setScaleY(sy);
- }
- }
- },
- getScaleX: function () {
- return this._background.getScaleX();
- },
- getScaleY: function () {
- return this._background.getScaleY();
- },
- evert: function () {
- var that = this,
- childNodes = this.childNodes,
- background = this._background,
- bp = background.getPosition(),
- bx = bp.x,
- by = bp.y,
- childNode, distanceX, distanceY, x, y, p, nx, ny;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- x = p.x;
- y = p.y;
- distanceX = bx - x;
- distanceY = by - y;
- nx = bx + distanceX;
- ny = by + distanceY;
- childNode.setPosition(nx, ny);
- if (typeof childNode.setScale === 'function') {
- if (!(childNode._disallowEvert === true))
- childNode.setScale(-1, -1);
- }
- }
- },
- evertX: function () {
- var that = this,
- childNodes = this.childNodes,
- background = this._background,
- bx = background.getPosition().x,
- childNode, distance, x, p, nx;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- x = p.x;
- distance = bx - x;
- nx = bx + distance;
- childNode.setPosition(nx, p.y);
- if (typeof childNode.setScaleX === 'function') {
- if (!(childNode._disallowEvert === true))
- childNode.setScaleX(-1);
- }
- }
- },
- evertY: function () {
- var that = this,
- childNodes = this.childNodes,
- background = this._background,
- by = background.getPosition().y,
- childNode, distance, y, p, ny;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- y = p.y;
- distance = by - y;
- ny = by + distance;
- childNode.setPosition(p.x, ny);
- if (typeof childNode.setScaleY === 'function') {
- if (!(childNode._disallowEvert === true))
- childNode.setScaleY(-1);
- }
- }
- },
- attr: function (key, value) {
- var _attrObj = this._attrObj || {};
- if (arguments.length === 1) {
- return _attrObj[key];
- }
- var childNodes = this.childNodes, childNode;
- _attrObj[key] = value;
- for (var i = 0; childNode = childNodes[i++];) {
- if (typeof childNode.a === 'function') {
- childNode.a(key, value);
- }
- }
- },
- a: function () {
- return this.attr.apply(this, arguments);
- }
- });
- }
|