Page MenuHomePhabricator

final class PhutilSpriteSheet
Phabricator Technical Documentation (Aphront)

NOTE: This is very new and unstable.

Methods

public function addSprite($sprite)

This method is not documented.
Parameters
PhutilSprite$sprite
Return
wild

public function setCSSHeader($header)

This method is not documented.
Parameters
$header
Return
wild

public function setScales($scales)

This method is not documented.
Parameters
array$scales
Return
wild

public function getScales()

This method is not documented.
Return
wild

public function setSheetType($type)

This method is not documented.
Parameters
$type
Return
wild

public function setBasePath($base_path)

This method is not documented.
Parameters
$base_path
Return
wild

private function generate()

This method is not documented.
Return
wild

public function generateImage($path, $scale)

This method is not documented.
Parameters
$path
$scale
Return
wild

public function generateCSS($path)

This method is not documented.
Parameters
$path
Return
wild

public function needsRegeneration($manifest)

This method is not documented.
Parameters
array$manifest
Return
wild

private function buildManifest()

This method is not documented.
Return
wild

public function generateManifest($path)

This method is not documented.
Parameters
$path
Return
wild

private function log($message)

This method is not documented.
Parameters
$message
Return
wild

private function loadSourceHash($sprite)

This method is not documented.
Parameters
PhutilSprite$sprite
Return
wild

private function loadSource($sprite, $scale)

This method is not documented.
Parameters
PhutilSprite$sprite
$scale
Return
wild