function onFrame(event) {
// function test(event) {
	// Run through the active layer's children list and change
	// the position of the placed symbols:
	for (var i = 0; i < count; i++) {
		var item = project.activeLayer.children[i];

        // move from center to outside
		// larger circles move faster than smaller circles:
        // var move_offset = item.bounds.width / 5;

        var vector = item.position - view.center;

        var move_offset = item.bounds.width / 5;


        // add 1 so that this cant be 0.
        move_offset += 1;

        var center_distance_factor = (1 * vector.length) / view.center.length;
        center_distance_factor *= 13.9;
        move_offset *= center_distance_factor;
        move_offset += 1;

        vector.length += move_offset;
        var new_position = vector + view.center;
        item.position = new_position;
        update_scale(item, vector.length);


        // if outside of visible area than reset to center..
        if (!item.isInside(view.bounds)) {
            var vector_new = item.position - view.center;
            // direct to center resets angle. so we have to use a minimal offset.
            vector_new.length = 1;
            var reset_position = vector_new + view.center;
            item.position = reset_position;
            update_scale(item, vector_new.length);
        }

	}
}
// The onFrame function is called up to 60 times a second:
The onFrame function is called up to 60 times a second.
The onFrame function is called up to 60 times a second .
function onFrame(event) {
	for (var i = 0; i < count; i++) {
		var item = project.activeLayer.children[i];
        var vector = item.position - view.center;
        var move_offset = item.bounds.width / 5;
        move_offset += 1;
        var center_distance_factor = (1 * vector.length) / view.center.length;
        center_distance_factor *= 13.9;
        move_offset *= center_distance_factor;
        move_offset += 1;
        vector.length += move_offset;
        var new_position = vector + view.center;
        item.position = new_position;
        update_scale(item, vector.length);
        if (!item.isInside(view.bounds)) {
            var vector_new = item.position - view.center;
            vector_new.length = 1;
            var reset_position = vector_new + view.center;
            item.position = reset_position;
            update_scale(item, vector_new.length);
        }
	}
}
function onFrame ( event ) { for ( var i = 0 ; i < count ; i ++ ) { var item = project . activeLayer . children [ i ] ; var vector = item . position - view . center ; var move_offset = item . bounds . width / 5 ; move_offset += 1 ; var center_distance_factor = ( 1 * vector . length ) / view . center . length ; center_distance_factor *= 13.9 ; move_offset *= center_distance_factor ; move_offset += 1 ; vector . length += move_offset ; var new_position = vector + view . center ; item . position = new_position ; update_scale ( item , vector . length ) ; if ( ! item . isInside ( view . bounds ) ) { var vector_new = item . position - view . center ; vector_new . length = 1 ; var reset_position = vector_new + view . center ; item . position = reset_position ; update_scale ( item , vector_new . length ) ; } } }
The onFrame function is called up to 60 times a second:
The onFrame function is called up to 60 times a second :
// function test(event) { // Run through the active layer's children list and change // the position of the placed symbols: // move from center to outside // larger circles move faster than smaller circles: // var move_offset = item.bounds.width / 5; // add 1 so that this cant be 0. // if outside of visible area than reset to center.. // direct to center resets angle. so we have to use a minimal offset.