Skip to content

jQuery.effects.getBaseline #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions entries/jQuery.effects.getBaseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<entries>
<entry type="method" name="jQuery.effects.getBaseline" return="Object" added="1.12">
<title>jQuery.effects.getBaseline()</title>
<signature>
<argument name="origin" type="Array">
<desc>An two item array containing the vertical and horizontal origin point of the element. Possible values for the vertical (first) item are <code>"top"</code>, <code>"middle"</code>, and <code>"bottom"</code>. Possible values for the horizontal (second) item are <code>"left"</code>, <code>"center"</code>, and <code>"right"</code>. Both items also accept a pixel value based on the dimensions of the element.</desc>
</argument>
<argument name="originalDimensions" type="Object" optional="true">
<desc>An objection containing <code>width</code> and <code>height</code> properties for the original dimensions of the element. This parameter is requried when either of the values in <code>origin</code> are numeric.</desc>
</argument>
</signature>
<desc>Calculates the baseline of an element based on the provided origin.</desc>
<longdesc>
<p>Values range from 0 for top/left to 1 for bottom/right, though values outside of this range are possible when providing explicit values for the origin.</p>
</longdesc>
<category slug="effects-core"/>
<category slug="effects"/>
</entry>
</entries>