@
#Crafty.viewport.reset
@comp Crafty.stage

@sign public Crafty.viewport.reset()

Resets the viewport to starting values
Called when scene() is run.
439398
function () {
			Crafty.viewport.pan('reset');
			Crafty.viewport.follow();
			Crafty.viewport.mouselook('stop');
			Crafty.viewport.scale();
		}
1350221
function() {

        me.game.reset();

        // add the background & foreground
        // add the foreground
        var background_sprite10 = new me.Sprite (0, 0,   {image: me.loader.getImage("background")});
        var grass_upper_1       = new me.Sprite (0, 0,   {image: me.loader.getImage("grass_upper")});

        var background_sprite11 = new me.Sprite (0, 127, {image: me.loader.getImage("background")});
        var grass_lower_1       = new me.Sprite (0, 127, {image: me.loader.getImage("grass_lower")});

        var background_sprite20 = new me.Sprite (0, 255, {image: me.loader.getImage("background")});
        var grass_upper_2       = new me.Sprite (0, 255, {image: me.loader.getImage("grass_upper")});

        var background_sprite21 = new me.Sprite (0, 383, {image: me.loader.getImage("background")});
        var grass_lower_2       = new me.Sprite (0, 383, {image: me.loader.getImage("grass_lower")});

        var background_sprite30 = new me.Sprite (0, 511, {image: me.loader.getImage("background")});
        var grass_upper_3       = new me.Sprite (0, 511, {image: me.loader.getImage("grass_upper")});

        var background_sprite31 = new me.Sprite (0, 639, {image: me.loader.getImage("background")});
        var grass_lower_3       = new me.Sprite (0, 639, {image: me.loader.getImage("grass_lower")});


        // use top left coordinates for positioning
        background_sprite10.anchorPoint.set(0, 0);
        grass_upper_1.anchorPoint.set(0, 0);

        background_sprite11.anchorPoint.set(0, 0);
        grass_lower_1.anchorPoint.set(0, 0);

        background_sprite20.anchorPoint.set(0, 0);
        grass_upper_2.anchorPoint.set(0, 0);

        background_sprite21.anchorPoint.set(0, 0);
        grass_lower_2.anchorPoint.set(0, 0);

        background_sprite30.anchorPoint.set(0, 0);
        grass_upper_3.anchorPoint.set(0, 0);

        background_sprite31.anchorPoint.set(0, 0);
        grass_lower_3.anchorPoint.set(0, 0);

        // instantiate teh mole Manager
        var moleManager = new game.MoleManager(0, 0);

        // add all objects
        me.game.world.addChild (background_sprite10, 0);
        me.game.world.addChild (background_sprite11, 0);
        me.game.world.addChild (background_sprite20, 0);
        me.game.world.addChild (background_sprite21, 0);
        me.game.world.addChild (background_sprite30, 0);
        me.game.world.addChild (background_sprite31, 0);

        me.game.world.addChild (grass_upper_1, 10);
        me.game.world.addChild (grass_lower_1, 20);
        me.game.world.addChild (grass_upper_2, 30);
        me.game.world.addChild (grass_lower_2, 40);
        me.game.world.addChild (grass_upper_3, 50);
        me.game.world.addChild (grass_lower_3, 60);
        me.game.world.addChild (moleManager, 0);

        // add our HUD (scores/hiscore)
        this.HUD = new game.HUD.Container();
        me.game.world.addChild(this.HUD);

        // start the main soundtrack
        me.audio.playTrack("whack");
    }
850601
def reset(self):
        
        self.scene = cocos.scene.Scene()
        self.z = 0

        palette = config.settings['view']['palette']
        #Player.palette = palette
        r, g, b = palette['bg']
        self.scene.add(cocos.layer.ColorLayer(r, g, b, 255), z=self.z)
        self.z += 1
        message_layer = MessageLayer()
        self.scene.add(message_layer, z=self.z)
        self.z += 1
        self.world_layer = WorldLayer(self.mode_id, fn_show_message=message_layer.show_message)
        self.scene.add(self.world_layer, z=self.z)
        self.z += 1

        self.director._set_scene(self.scene)

        # Step once to refresh before `act`
        self.step()

        # TODO: Reset to `ones`?
        return self.world_layer.get_state()
1120656
@SuppressWarnings("all")
    public void reset(JComponent component, Region region, SynthStyle style, int state) {
        this.component = component;
        this.region    = region;
        this.style     = style;
        this.state     = state;
    }
99323
public void reset() {
		if( stitchedImage != null )
			GImageMiscOps.fill(stitchedImage, 0);
		motion.reset();
		worldToCurr.reset();
		first = true;
	}
770488
def _reset(self):
        
        self._last_start_line = 0
        self._colour = None
        self._attr = None
        self._bg = None
        self._cur_x = None
        self._cur_y = None
467048
function updateViewport() {
  threshold._viewport.height = window.innerHeight;
  threshold._viewport.width = window.innerWidth;
}
238605
function () {
        if (__autoresizes == null && layout._listeners && layout._listeners['viewportResized']) {
            __init();
        } else if (__autoresizes != null && __autoresizes.length === 0
                && (layout._listeners == null || layout._listeners['viewportResized'] == null)) {
            __reset();
        }
    }
594757
function Reset()
	{
		$this->SetTColor($this->colorConverter->convert(0, $this->PDFAXwarnings));
		$this->SetDColor($this->colorConverter->convert(0, $this->PDFAXwarnings));
		$this->SetFColor($this->colorConverter->convert(255, $this->PDFAXwarnings));
		$this->SetAlpha(1);
		$this->colorarray = '';

		$this->spanbgcolorarray = '';
		$this->spanbgcolor = false;
		$this->spanborder = false;
		$this->spanborddet = [];

		$this->ResetStyles();

		$this->HREF = '';
		$this->textparam = [];
		$this->SetTextOutline();

		$this->textvar = 0x00; // mPDF 5.7.1
		$this->OTLtags = [];
		$this->textshadow = '';

		$this->currentLang = $this->default_lang;  // mPDF 6
		$this->RestrictUnicodeFonts($this->default_available_fonts); // mPDF 6
		$this->SetFont($this->default_font, '', 0, false);
		$this->SetFontSize($this->default_font_size, false);

		$this->currentfontfamily = '';
		$this->currentfontsize = '';
		$this->currentfontstyle = '';

		/* -- TABLES -- */
		if ($this->tableLevel && isset($this->table[1][1]['cellLineHeight'])) {
			$this->SetLineHeight('', $this->table[1][1]['cellLineHeight']); // *TABLES*
		} else { 		/* -- END TABLES -- */
			if (isset($this->blk[$this->blklvl]['line_height']) && $this->blk[$this->blklvl]['line_height']) {
				$this->SetLineHeight('', $this->blk[$this->blklvl]['line_height']); // sets default line height
			}
		}

		$this->lSpacingCSS = '';
		$this->wSpacingCSS = '';
		$this->fixedlSpacing = false;
		$this->minwSpacing = 0;
		$this->SetDash(); // restore to no dash
		$this->dash_on = false;
		$this->dotted_on = false;
		$this->divwidth = 0;
		$this->divheight = 0;
		$this->cellTextAlign = '';
		$this->cellLineHeight = '';
		$this->cellLineStackingStrategy = '';
		$this->cellLineStackingShift = '';
		$this->oldy = -1;

		$bodystyle = [];
		if (isset($this->cssManager->CSS['BODY']['FONT-STYLE'])) {
			$bodystyle['FONT-STYLE'] = $this->cssManager->CSS['BODY']['FONT-STYLE'];
		}
		if (isset($this->cssManager->CSS['BODY']['FONT-WEIGHT'])) {
			$bodystyle['FONT-WEIGHT'] = $this->cssManager->CSS['BODY']['FONT-WEIGHT'];
		}
		if (isset($this->cssManager->CSS['BODY']['COLOR'])) {
			$bodystyle['COLOR'] = $this->cssManager->CSS['BODY']['COLOR'];
		}
		if (isset($bodystyle)) {
			$this->setCSS($bodystyle, 'BLOCK', 'BODY');
		}
	}
286498
function reset() {
         this.sbIndex = 0;
         this.length = 0;
         var samplers = []; // WebGL context

         this.gl = this.renderer.gl;

         for (var i = 0; i < this.maxTextures; i++) {
           this.units[i] = false;
           samplers[i] = i;
         } // set the quad shader as the default program


         this.useShader(this.quadShader);
         this.quadShader.uniforms.uSampler = samplers;
       }
160085
function () {
        var is = this.inScene,
            os = this.outScene

        /* clean up */
        is.visible = true
        is.position = geo.PointZero()
        is.scale = 1.0
        is.rotation = 0

        os.visible = false
        os.position = geo.PointZero()
        os.scale = 1.0
        os.rotation = 0

        Scheduler.sharedScheduler.schedule({
            target: this,
            method: this.setNewScene,
            interval: 0
        })
    }
1047487
private void resetAnimation(){		
		mLastUpdateTime = SystemClock.uptimeMillis();
		mLastProgressStateTime = mLastUpdateTime;
		mStartAngle = mInitialAngle;
		mStrokeColorIndex = 0;
		mSweepAngle = mReverse ? -mMinSweepAngle : mMinSweepAngle;
	}
1313620
public function reset()
    {
        if (!is_null($this->current_engine)) {
            $this->current_engine->reset();
        }

        // Unload the engines
        $this->engines = array();
        $this->engines_loaded = false;
        $this->file_extensions = array();

        $this->current_engine = null;
        $this->assigned_variables = array();
        $this->directory = Core::$appDir . DS . 'Layout';
        Logger::log('Reset the layout manager to its default state');
    }
1371150
function () {
        if ( this.viewport ) {
            var containerSize = new $.Point(
                    (this.container.clientWidth === 0 ? 1 : this.container.clientWidth),
                    (this.container.clientHeight === 0 ? 1 : this.container.clientHeight)
                );

            if ( !containerSize.equals( this.oldContainerSize ) ) {
                this.viewport.resize( containerSize, true );
                this.viewport.goHome(true);
                this.oldContainerSize = containerSize;
                this.drawer.clear();
                this.world.draw();
            }
        }
    }
915681
public void reset() {

        m_cropHeight = I_CmsFormatRestriction.DIMENSION_NOT_SET;
        m_cropWidth = I_CmsFormatRestriction.DIMENSION_NOT_SET;
        m_cropX = I_CmsFormatRestriction.DIMENSION_NOT_SET;
        m_cropY = I_CmsFormatRestriction.DIMENSION_NOT_SET;
        m_targetHeight = I_CmsFormatRestriction.DIMENSION_NOT_SET;
        m_targetWidth = I_CmsFormatRestriction.DIMENSION_NOT_SET;
    }
20309
function () {
            var chart = charts[hoverChartIndex];
            if (chart) {
                chart.pointer.reset();
                chart.pointer.chartPosition = null; // also reset the chart position, used in #149 fix
            }
        }
463353
def reset_view(self, flags=None):
        
        self.view = {
            'cull': True,
            'axis': False,
            'fullscreen': False,
            'wireframe': False,
            'ball': Trackball(
                pose=self._initial_camera_transform,
                size=self.scene.camera.resolution,
                scale=self.scene.scale,
                target=self.scene.centroid,
            ),
        }

        try:
            # if any flags are passed override defaults
            if isinstance(flags, dict):
                for k, v in flags.items():
                    if k in self.view:
                        self.view[k] = v
                self.update_flags()
        except BaseException:
            pass