Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1335)

Unified Diff: app/views/utils.js

Issue 7228070: Remove service click actions
Patch Set: Remove service click actions Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/views/topology/topology.js ('k') | archives/selenium-2.29.0.tar.gz » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/views/utils.js
=== modified file 'app/views/utils.js'
--- app/views/utils.js 2013-01-31 00:18:46 +0000
+++ app/views/utils.js 2013-02-01 15:02:52 +0000
@@ -607,14 +607,22 @@
};
- /*
- * Utility class that encapsulates Y.Models and keeps their position
- * state within an svg canvas.
+ /**
+ * Utility object that encapsulates Y.Models and keeps their position
+ * state within an SVG canvas.
*
* As a convenience attributes of the encapsulated model are exposed
* directly as attributes.
- */
+ *
+ * @class BoundingBox
+ * @param {Module} module Service module.
+ * @param {Model} model Service model.
+ **/
+
+ // Internal base object
var _box = {};
+
+ // Internal descriptor generator.
function positionProp(name) {
return {
get: function() {return this['_' + name];},
@@ -625,6 +633,7 @@
};
}
+ // Box Properties (and methods).
Object.defineProperties(_box, {
x: positionProp('x'),
y: positionProp('y'),
@@ -841,7 +850,7 @@
* @param {Module} module Typically service module.
* @param {Model} model Model object.
* @return {BoundingBox} A Box model.
- */
+ **/
function BoundingBox(module, model) {
var b = Object.create(_box);
b.module = module;
@@ -858,6 +867,7 @@
* and will be updated in place by merging changed attribute
* into the index.
*
+ * @method toBoundingBoxes
* @param {ServiceModule} Module holding box canvas and context.
* @param {ModelList} services Service modellist.
* @param {Object} existing id:box mapping.
@@ -877,7 +887,6 @@
};
-
/**
* Decorate a relation with some related/derived data.
*
@@ -886,7 +895,8 @@
* @param {Object} source The service from which the relation originates.
* @param {Object} target The service at which the relation terminates.
* @return {Object} An object with attributes matching the result of
- * relation.getAttrs() plus "source", "target", and other convenience data.
+ * relation.getAttrs() plus "source", "target",
+ * and other convenience data.
*/
views.DecoratedRelation = function(relation, source, target) {
var hasRelations = Y.Lang.isValue(relation.endpoints);
« no previous file with comments | « app/views/topology/topology.js ('k') | archives/selenium-2.29.0.tar.gz » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b