Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 433349c0

Přidáno uživatelem Pavel Fidranský před téměř 6 roky(ů)

NodeProxy fixes

Zobrazit rozdíly:

sources/src/main/webapp/js/components/group.js
44 44
		let inEdgeList = vertex.inEdgeList;
45 45
		inEdgeList.forEach(edge => {
46 46
			if (this.isExcluded) {
47
				floater.addInEdge(edge);
47
				this._proxy.addInEdge(edge);
48 48
			} else {
49 49
				edge.end = this.center;
50 50
			}
......
53 53
		let outEdgeList = vertex.outEdgeList;
54 54
		outEdgeList.forEach(edge => {
55 55
			if (this.isExcluded) {
56
				floater.addOutEdge(edge);
56
				this._proxy.addOutEdge(edge);
57 57
			} else {
58 58
				edge.start = this.center;
59 59
			}
......
171 171
	}
172 172

  
173 173
	/**
174
	 * Toggles excluded state of the group. If the group is set excluded, a new floating point is created to connect it with 
175
	 * related nodes in the viewport. Otherwise, the floating point is deleted.
176
	 * Any node is called excluded when it is not visible in the viewport but instead in the sidebar.
174
	 * Toggles excluded state of the group. All vertices currently added to the group are excluded as well.
177 175
	 * @param {boolean} newValue True to set the group as excluded, otherwise false.
178 176
	 */
179 177
	set isExcluded(newValue) {
......
395 393
			]),
396 394
		]);
397 395

  
398
		// set floater
396
		// set proxy
399 397
		this._proxy.element = this._rootElement;
400 398

  
401 399
		// set edges' ends
sources/src/main/webapp/js/components/node.js
267 267
	}
268 268

  
269 269
	/**
270
	 * Toggles excluded state of the node. If the node is set excluded, a new floating point is created to connect it with 
271
	 * related nodes in the viewport. Otherwise, the floating point is deleted.
270
	 * Toggles excluded state of the node. If the node is set excluded, a new proxy is created to connect it with 
271
	 * related nodes in the viewport. Otherwise, the proxy is destroyed.
272 272
	 * Any node is called excluded when it is not visible in the viewport but instead in the sidebar.
273 273
	 * @param {boolean} newValue True to set the node as excluded, otherwise false.
274 274
	 */
sources/src/main/webapp/js/components/vertex.js
122 122
	}
123 123

  
124 124
	/**
125
	 * Sets a new group that the vertex is added to. If the vertex is currently excluded, its floating point is destroyed.
125
	 * Sets a new group that the vertex is added to. If the vertex is currently excluded, its proxy is destroyed.
126 126
	 * @param {Group} newValue Group this vertex is a part of.
127 127
	 */
128 128
	set group(newValue) {
......
134 134

  
135 135
		if (newValue && this.isExcluded) {
136 136
			// remove proxy
137
			app.proxyList.splice(app.proxyList.indexOf(proxy), 1);
137
			app.proxyList.splice(app.proxyList.indexOf(this._proxy), 1);
138 138
			this._proxy = null;
139 139
		}
140 140
	}
......
363 363
			]),
364 364
		]);
365 365

  
366
		// set floater element
366
		// set proxy element
367 367
		this._proxy.element = this._rootElement;
368 368

  
369 369
		// set edges' ends

Také k dispozici: Unified diff