Permalink
Browse files

updated TagCanvas to 1.6

  • Loading branch information...
1 parent 1123124 commit da0ba038b33268659156468ed5dc0bb3c5dc6347 @fizyk committed Feb 13, 2011
View
@@ -2,7 +2,7 @@
fzTagPlugin
--------------------------------------------------------------------------------
-Copyright (c) 2010 Grzegorz Śliwiński
+Copyright (c) 2010-2011 Grzegorz Śliwiński
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
View
8 README
@@ -22,7 +22,7 @@ To install plugin from symfony plugin repository run:
To install plugin from package, copy it to your project root's directory and run:
- ./symfony plugin:install fzTagPlugin-1.2.3.tgz
+ ./symfony plugin:install fzTagPlugin-1.2.5.tgz
After installing, you have to run:
@@ -202,12 +202,16 @@ it supports all plugin's options as component's options as well as width and hei
'freezeActive' => false,
'reverse' => false,
'hideTags' => true,
+ 'weight' => true,
+ 'weightMode' => "size",
+ 'weightSize' => 1.0,
+ 'weightGradient' => array('0' => '#f00', '0.33' => '#ff0', '0.66' => '#0f0', '1' =>'#00f'),
)); ?>
Libraries
------------
* Emposha's [FCBKcomplete](http://github.com/emposha/FCBKcomplete) (2.7.4)
-* Graham Breach's [TagCanvas](http://www.goat1000.com/tagcanvas.php) (1.4.1)
+* Graham Breach's [TagCanvas](http://www.goat1000.com/tagcanvas.php) (1.6)
* elbeanio's [jquery.tagsphere](http://bitbucket.org/elbeanio/jquery.tagsphere/wiki/Home).
View
@@ -22,7 +22,7 @@ To install plugin from symfony plugin repository run:
To install plugin from package, copy it to your project root's directory and run:
- ./symfony plugin:install fzTagPlugin-1.2.3.tgz
+ ./symfony plugin:install fzTagPlugin-1.2.5.tgz
After installing, you have to run:
@@ -202,12 +202,16 @@ it supports all plugin's options as component's options as well as width and hei
'freezeActive' => false,
'reverse' => false,
'hideTags' => true,
+ 'weight' => true,
+ 'weightMode' => "size",
+ 'weightSize' => 1.0,
+ 'weightGradient' => array('0' => '#f00', '0.33' => '#ff0', '0.66' => '#0f0', '1' =>'#00f'),
)); ?>
Libraries
------------
* Emposha's [FCBKcomplete](http://github.com/emposha/FCBKcomplete) (2.7.4)
-* Graham Breach's [TagCanvas](http://www.goat1000.com/tagcanvas.php) (1.4.1)
+* Graham Breach's [TagCanvas](http://www.goat1000.com/tagcanvas.php) (1.6)
* elbeanio's [jquery.tagsphere](http://bitbucket.org/elbeanio/jquery.tagsphere/wiki/Home).
@@ -126,6 +126,10 @@ public function executeCanvasTagCloud()
'freezeActive' => $this->getVar('freezeActive') ? $this->getVar('freezeActive'): false,
'reverse' => $this->getVar('reverse') ? $this->getVar('reverse'): false,
'hideTags' => $this->getVar('hideTags') ? $this->getVar('hideTags'): true,
+ 'weight' => $this->getVar('weight') ? $this->getVar('weight'): true,
+ 'weightMode' => $this->getVar('weightMode') ? $this->getVar('weightMode'): "size",
+ 'weightSize' => $this->getVar('weightSize') ? $this->getVar('weightSize'): 1.0,
+ 'weightGradient' => $this->getVar('weightGradient') ? $this->getVar('weightGradient'): array('0' => '#f00', '0.33' => '#ff0', '0.66' => '#0f0', '1' =>'#00f'),
);
$this->executeTagCloud();
@@ -30,13 +30,16 @@
initial: <?php echo $cloudOptions['initial'] ? $cloudOptions['initial'] : 'null' ?>,
freezeActive: <?php echo $cloudOptions['freezeActive'] ? 'true' : 'false' ?>,
reverse: <?php echo $cloudOptions['reverse'] ? 'true' : 'false' ?>,
- hideTags: <?php echo $cloudOptions['hideTags'] ? 'true' : 'false' ?>
+ hideTags: <?php echo $cloudOptions['hideTags'] ? 'true' : 'false' ?>,
+ weight: <?php echo $cloudOptions['weight'] ? 'true' : 'false' ?>,
+ weightMode: '<?php echo $cloudOptions['weightMode'] ? $cloudOptions['weightMode'] : "size" ?>',
+ weightSize: <?php echo $cloudOptions['weightSize'] ? $cloudOptions['weightSize'] : 1.0 ?>,
+ weightGradient: <?php echo $cloudOptions['weightGradient'] ? json_encode($cloudOptions['weightGradient']->getRawValue()) : "{0:'#f00', 0.33:'#ff0', 0.66:'#0f0', 1:'#00f'}" ?>
};
if( ! $('#fz-tag-canvas').tagcanvas(tagCanvasOptions, 'fz-tag-canvas-list'))
{
// TagCanvas failed to load
$('#myCanvasContainer').hide();
}
- // your other jQuery stuff here...
});
</script>
View
@@ -45,6 +45,22 @@
<changelog>
<release>
<version>
+ <release>##PLUGIN_VERSION##</release>
+ <api>##API_VERSION##</api>
+ </version>
+ <stability>
+ <release>##STABILITY##</release>
+ <api>##STABILITY##</api>
+ </stability>
+ <license uri="http://www.symfony-project.org/license">MIT license</license>
+ <date>##CURRENT_DATE##</date>
+ <license>MIT</license>
+ <notes>
+ * fizyk: updated TagCanvas to 1.6
+ </notes>
+ </release>
+ <release>
+ <version>
<release>1.2.4</release>
<api>1.0.0</api>
</version>
Oops, something went wrong.

0 comments on commit da0ba03

Please sign in to comment.