Search completed in 1.29 seconds.
Gamepad.axes - Web APIs
the gamepad.
axes property of the gamepad interface returns an array representing the controls with
axes present on the device (e.g.
... syntax readonly attribute double[]
axes; example function gameloop() { if(navigator.webkitgetgamepads) { var gp = navigator.webkitgetgamepads()[0]; } else { var gp = navigator.getgamepads()[0]; } if(gp.
axes[0] != 0) { b -= gp.
axes[0]; } else if(gp.
axes[1] != 0) { a += gp.
axes[1]; } else if(gp.
axes[2] != 0) { b += gp.
axes[2]; } else if(gp.
axes[3] != 0) { a -= gp.
axes[3]; } ball.style.left = a*2 + "px"; ball.style.top = b*2 + "px"; var start = raf(gameloop); }; value an array of double values.
... specifications specification status comment gamepadthe definition of 'gamepad.
axes' in that specification.
Axes - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes there are thirteen different
axes in the xpath specification.
...the following is an extremely brief description of the thirteen available
axes and the degree of support available in gecko.
...also see the '
axes' section in the xpath spec.
Edit fonts - Firefox Developer Tools
variable fonts make it easy to vary font characteristics in a much more granular fashion because their allowable ranges are defined by
axes of variation (see introducing the 'variation axis' for more information).
... there are several registered
axes.
... although it isn't required that these
axes be defined for every font, if the font designer does implement a registered axis, its behavior must follow the defined behavior.
...And 10 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
ol-section" class="section"> <div class="title"> tool settings </div> <div class="property"> <div class="name"> alpha background </div> <div id="canvas-bg"></div> <div id="add-axis" class="button"> add line </div> </div> <div id="order"> <div id="gradient-
axes"></div> <div id="gradient-order"></div> </div> </div> </div> <div id="output"> <div class="css-property"> <span class="property">background:</span> <span class="value"></span> </div> </div> </div> css content /* * color picker tool */ .ui-color-picker { width:...
... { width: 150px; } #canvas-bg { width: 16px; height: 16px; margin: 5px; background: url("images/toggle-background.png") center right no-repeat; } #canvas-bg:hover { cursor: pointer; } #canvas-bg[data-alpha='false'] { background-position: center left; } #canvas-bg[data-alpha='true'] { background-position: center right; } /* order gradients */ #order { margin-left: 24px; } #gradient-
axes { width: 100%; height: 30px; padding: 0 0 0 15px; display: table; position: relative; } #gradient-
axes .axis { width: 50px; height: 20px; margin: 5px 0; background-color: #ddd; text-align: center; float: left; transition: all 0.3s; position: absolute; } #gradient-
axes .axis:hover { margin: 2px 0; height: 26px; background-color: #ccc; cursor: pointer; } #gradient-
axes .axis[dat...
...a-state='active'] { margin: 2px 0; height: 26px; } #gradient-
axes .axis[data-state='active']:after { content: "*"; color: #fff; padding: 3px; } #gradient-
axes .axis[axisid='0'] { background-color: #da5c5c; } #gradient-
axes .axis[axisid='1'] { background-color: #5cda9b; } #gradient-
axes .axis[axisid='2'] { background-color: #5c9bda; } #gradient-
axes .axis[axisid='3'] { background-color: #5c5cda; } #add-axis.button { margin: 0 38px 0 0; float: right; } #gradient-order { width: 60%; height: 5px; margin: 5px 0 0 0; overflow: visible; background-color: #ccc; position: relative; } #gradient-order:before { content: "gradient order - drag to order"; position: absolute; top: 100%; color: #ccc; } #gradient-order:after { content: ""; width: 24px; height: 24px; background...
...And 10 more matches
Index - Web APIs
24 accelerometer api, accelerometer, accelerometer api, generic sensor api, interface, reference, sensor, sensor apis, sensors the accelerometer interface of the sensor apis provides on each reading the acceleration applied to the device along all three
axes.
... 25 accelerometer.accelerometer() api, accelerometer, accelerometer api, constructor, generic sensor api, reference, sensor, sensor apis, sensors the accelerometer constructor creates a new accelerometer object which returns the acceleration of the device along all three
axes at the time it is read.
... 828 deviceacceleration api, deviceacceleration, experimental, interface, needsexample, reference a deviceacceleration object provides information about the amount of acceleration the device is experiencing along all three
axes.
...And 9 more matches
Desktop gamepad controls - Game development
here's the gamepadapi object, which contains useful variables and functions: var gamepadapi = { active: false, controller: {}, connect: function(event) {}, disconnect: function(event) {}, update: function() {}, buttons: { layout: [], cache: [], status: [], pressed: function(button, state) {} }
axes: { status: [] } }; the controller variable stores the information about the connected gamepad, and there's an active boolean variable we can use to know if the controller is connected or not.
...the next function is update(), which updates the information about the pressed buttons and
axes.
... the pressed() function gets the input data and sets the information about it in our object, and the
axes property stores the array containing the values signifying the amount an axis is pressed in the x and y directions, represented by a float in the (-1, 1) range.
...And 6 more matches
Using the Gamepad API - Web APIs
%d buttons, %d
axes.", e.gamepad.index, e.gamepad.id, e.gamepad.buttons.length, e.gamepad.
axes.length); }); each gamepad has a unique id associated with it, which is available on the event's gamepad property.
...we can do much more with the gamepad object, including holding a reference to it and querying it to find out which buttons and
axes are being pressed at any one time.
...%d buttons, %d
axes.", gp.index, gp.id, gp.buttons.length, gp.
axes.length); }); the gamepad object's properties are as follows: id: a string containing some information about the controller.
...And 6 more matches
Variable fonts guide - CSS: Cascading Style Sheets
as defined in the specification, there are two kinds of
axes: registered and custom: registered
axes are simply those that are most frequently encountered, and common enough that the authors of the specification felt it was worth standardizing.
... the five currently registered
axes are weight, width, slant, italic, and optical size.
... custom
axes are in fact limitless: the typeface designer can define and scope any axis they like, and are just required to give it a four-letter tag to identify it within the font file format itself.
...And 6 more matches
Inputs and input sources - Web APIs
this object provides access to all of the buttons,
axes, trackpads, and so forth that may be a part of the controller.
... properties of input sources each individual xrinputsource has a set of properties that describe the input's available
axes and buttons, which hand the user's holding it in, and how the input source is used to handle targeting within the 3d space.
...given the directionality of the
axes, the coordinates of the grip space can be expressed in world coordinates as (x, y, -z); z is negative since the grip space is farther away along the z axis, and is thus in the negative direction.
...And 5 more matches
Implementing controls using the Gamepad API - Game development
s fired when a gamepad is disconnected (either physically by the user or due to inactivity.) in the demo, the gamepadapi object is used to store everything related to the api: var gamepadapi = { controller: {}, turbo: false, connect: function() {}, disconnect: function() {}, update: function() {}, buttonpressed: function() {}, buttons: [], buttonscache: [], buttonsstatus: [],
axesstatus: [] }; the buttons array contains the xbox 360 button layout: buttons: [ 'dpad-up','dpad-down','dpad-left','dpad-right', 'start','back','axis-left','axis-right', 'lb','rb','power','a','b','x','y', ], this can be different for other types of gamepads like the ps3 controller (or a no-name, generic one), so you have to be careful and not just assume the button you're expecting will be...
... gamepad object there's lots of useful information contained in the gamepad object, with the states of buttons and
axes being the most important: id: a string containing information about the controller.
...
axes: the state of each axis, represented by an array of floating-point values.
...And 4 more matches
DOMMatrixReadOnly - Web APIs
dommatrixreadonly.rotate() returns a new dommatrix created by rotating the source matrix around each of its
axes by the specified number of degrees.
...by default, the x and z
axes are scaled by 1 and the y axis has no default scaling value.
... dommatrixreadonly.scale3d() returns a new dommatrix created by scaling the source 3d matrix by the given factor along all its
axes, centered on the specified origin point.
...And 2 more matches
Geometry and reference spaces in WebXR - Web APIs
each of the three
axes has a minimum value of -1.0 and a maximum of 1.0, with the center of the cube located at (0, 0, 0).
...this motion can be along any of the object's
axes, or any combination of them.
... a point in 3d space is, as covered previously, made up of three components, each identifying the distance of the point along one the three
axes.
...And 2 more matches
border-radius - CSS: Cascading Style Sheets
it is used only in the two- and three-value synt
axes.
...it is used only in the three- and four-value synt
axes.
...it is used only in the three- and four-value synt
axes.
...And 2 more matches
DOMMatrix - Web APIs
dommatrix.scalenonuniformself() modifies the matrix by applying the specified scaling on the x, y, and z
axes, centered at the given origin.
... by default, the y and z
axes' scaling factors are both 1, but the scaling factor for x must be specified.
...by default, the scaling factor is 1 for all three
axes, and the origin is (0, 0, 0).
... dommatrix.scale3dself() modifies the matrix by applying the specified scaling factor to all three
axes, centered on the given origin.
Sensor APIs - Web APIs
for example, the accelerometer interface returns the acceleration of the device along all three
axes at the time it is read.
... accelerometersecure context provides the acceleration applied to the device along all three
axes.
... gyroscopesecure context provides the angular velocity of the device along all three
axes.
... linearaccelerationsensorsecure context provides the acceleration applied to the device along all three
axes, but without the contribution of gravity.
Box alignment in CSS Grid Layout - CSS: Cascading Style Sheets
so we will start by looking at the two
axes that we deal with when aligning things in a grid.
... the two
axes of a grid layout when working with grid layout you have two
axes available to align things against – the block axis and the inline axis.
... we are able to align the content inside grid areas, and the grid tracks themselves on these two
axes.
...once again, this operates on the block and inline
axes, with align-content aligning tracks on the block axis, and justify-content performing alignment on the inline axis.
font-variation-settings - CSS: Cascading Style Sheets
registered and custom
axes variable font
axes come in two types: registered and custom.
... registered
axes are the most commonly encountered — common enough that the authors of the specification felt they were worth standardizing.
... here are the registered
axes along with their corresponding css properties: axis tag css property "wght" font-weight "wdth" font-stretch "slnt" (slant) font-style: oblique + angle "ital" font-style: italic "opsz" font-optical-sizing custom
axes can be anything the font designer wants to vary in their font, for example ascender or descender heights, the size of serifs, or anything else they can imagine.
... note: registered axis tags are identified using lower-case tags, whereas custom
axes should be given upper-case tags.
Orientation and motion data explained - Developer guides
about coordinate frames a coordinate frame is a system whereby the orientation of the three
axes (x, y, and z) are defined in reference to an object.
... there are two coordinate frames to consider when using orientation and motion events: earth coordinate frame the earth coordinate frame is the coordinate frame fixed on the center of the earth; that is, the
axes are aligned based on the pull of gravity and the standard magnetic north orientation.
... we use upper-case letters ("x", "y", and "z") to describe the
axes of the earth coordinate frame.
...we use lower-case letters ("x", "y", and "z") to describe the
axes of the device coordinate frame.
Grid Axis - MDN Web Docs Glossary: Definitions of Web-related terms
therefore in any grid we have two
axes.
... it is along these
axes that items can be aligned and justified using the properties defined in the box alignment specification.
... the physical direction of these
axes can change according to the writing mode of the document.
Movement, orientation, and motion: A WebXR example - Web APIs
the position is a new vector whose x, y, and z correspond to the offsets moved along each of those
axes.
...ormalmatrix); gl.activetexture(gl.texture0); gl.bindtexture(gl.texture_2d, texture); gl.uniform1i(programinfo.uniformlocations.usampler, 0); { const vertexcount = 36; const type = gl.unsigned_short; const offset = 0; gl.drawelements(gl.triangles, vertexcount, type, offset); } } renderscene() begins by calculating how much rotation should occur around each of the three
axes in the amount of time that has elapsed since the previous frame was rendered.
... after enabling and configuring depth testing, we check the value of the enablerotation constant to see if rotation of the cube is enabled; if it is, we use glmatrix to rotate the cubematrix (representing the cube's current orientation relative to the world space) around the three
axes.
Basic concepts of flexbox - CSS: Cascading Style Sheets
the two
axes of flexbox when working with flexbox you need to think in terms of two
axes — the main axis and the cross axis.
...everything we do with flexbox refers back to these
axes, so it is worth understanding how they work from the outset.
... alignment, justification and distribution of free space between items a key feature of flexbox is the ability to align and justify items on the main- and cross-
axes, and to distribute space between flex items.
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
this set uses: fallbacks using 2009 'box' syntax (ff and older webkit) and prefixed synt
axes (ie10, webkit browsers without flex wrapping) final standards syntax (ff, safari, chrome, ie11+, edge, opera) this was inspired by: http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/ with help from: http://w3.org/tr/css3-flexbox/ http://the-echoplex.net/flexyboxes/ http://msdn.microsoft.com/en-us/library/ie/hh772069(v=vs.85).aspx http://css-tricks.com/using-flexbox/ a complete guide to flexbox | css-tricks visual guide to css3 flexbox: flexbox playground | note: mixins are not currently supported natively in browsers.
... -webkit-flex-wrap: $value; @if $value == nowrap { -ms-flex-wrap: none; } @else { -ms-flex-wrap: $value; } flex-wrap: $value; } flexbox flow (shorthand) the flex-flow property is shorthand for setting the flex-direction and flex-wrap properties, which together define the flex container's main and cross
axes.
... note: space-* values not supported in older synt
axes.
XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes xpath stands for xml path language.
... xpath:
axes list and definition of the
axes defined in the xpath specification.
...
axes are used to describe the relationships between nodes.
Building up a basic demo with PlayCanvas editor - Game development
add the following line inside this function, to rotate the cube on every frame: this.entity.rotate(dt*10, dt*20, dt*30); in the line above this.entity refers to the object to which the script will be attached (the box); using the dt variable, which contains the delta time passed since the previous frame, we can rotate the box by a different amount around all three
axes.
...add this code to the initialize() function: this.timer = 0; and those two lines to the update() function: this.timer += dt; this.entity.setlocalscale(1, math.abs(math.sin(this.timer)), 1); the setlocalscale() method applies the given values to the x, y and z
axes of the object.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
39 bounding box bounding box, codingscripting, design, glossary the bounding box of an element is the smallest possible rectangle (aligned with the
axes of that element's user coordinate system) that entirely encloses it and its descendants.
...therefore in any grid we have two
axes.
Detecting device orientation - Web APIs
warning: chrome and firefox do not handle the angles the same way, so on some
axes the direction are reversed.
... for acceleration and accelerationincludinggravity, those
axes correspond to the following: x: represents the axis from west to east y: represents the axis from south to north z: represents the axis perpendicular to the ground for rotationrate, the situation is a bit different; the information corresponds to the following in each case: alpha: represents a rotation rate along the axis perpendicular to the screen (or keyboard for desktop).
DeviceMotionEvent.rotationRate - Web APIs
returns the rate at which the device is rotating around each of its
axes in degrees per second.
... syntax var rotationrate = devicemotionevent.rotationrate; value the rotationrate property is a read only object describing the rotation rates of the device around each of its
axes: alpha the rate at which the device is rotating about its z axis; that is, being twisted about a line perpendicular to the screen.
Gamepad - Web APIs
properties gamepad.
axes read only an array representing the controls with
axes present on the device (e.g.
...%d buttons, %d
axes.", e.gamepad.index, e.gamepad.id, e.gamepad.buttons.length, e.gamepad.
axes.length); }); specifications specification status comment gamepadthe definition of 'gamepad' in that specification.
Matrix math for the web - Web APIs
let x = 50; let y = 100; let z = 0; let translationmatrix = [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x, y, z, 1 ]; place the distances along the three
axes in the corresponding positions in the translation matrix, then multiply it by the point or matrix you need to move through 3d space.
... at this point will only appear to only shrink the div let a = math.pi * 0.3; //rotation amount in radians // rotate around z axis let rotatezmatrix = [ cos(a), -sin(a), 0, 0, sin(a), cos(a), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]; view on jsfiddle here are a set of functions that return rotation matrices for rotating around each of the three
axes.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
translating along multiple
axes translating along multiple
axes is quite easy.
... rotating around multiple
axes you can also combine rotations around multiple
axes into a single rotation around a quaternion representing a shared axis for the rotations.
Fundamentals of WebXR - Web APIs
the rotational degrees of freedom are: pitch: looking up and down yaw: looking left and right roll: tilting left and right in all of these cases, the viewer remains in the same location in space while pivoting on one or more of the three
axes to alter the direction in which they're looking.
... a typical baseline headset offers three degrees of freedom, recognizing rotation around all three
axes.
XRView - Web APIs
the createteleporttransform() function returns the transform needed to move and rotate an object whose current situation is described by the reference space refspace to a new position and orientation which is computed using previously recorded mouse and keyboard input data which has generated offsets for yaw, pitch, and position along all three
axes.
... the third section creates the new xrrigidtransform, specifying a point providing the offsets along the three
axes as the first parameter, and the orientation quaternion as the second parameter.
border-bottom-left-radius - CSS: Cascading Style Sheets
the border-bottom-left-radius css property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor
axes) of the ellipse defining the curvature of the corner.
... values <length-percentage> denotes the size of the circle radius or the semi-major and semi-minor
axes of the ellipse.
border-bottom-right-radius - CSS: Cascading Style Sheets
the border-bottom-right-radius css property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor
axes) of the ellipse defining the curvature of the corner.
... values <length-percentage> denotes the size of the circle radius or the semi-major and semi-minor
axes of the ellipse.
border-top-left-radius - CSS: Cascading Style Sheets
the border-top-left-radius css property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor
axes) of the ellipse defining the curvature of the corner.
... values <length-percentage> denotes the size of the circle radius or the semi-major and semi-minor
axes of the ellipse.
border-top-right-radius - CSS: Cascading Style Sheets
the border-top-right-radius css property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor
axes) of the ellipse defining the curvature of the corner.
... values <length-percentage> denotes the size of the circle radius or the semi-major and semi-minor
axes of the ellipse.
scroll-snap-type - CSS: Cascading Style Sheets
both the scroll container snaps to snap positions in both of its
axes independently (potentially snapping to different elements in each axis).
... examples snapping in different
axes html <div class="holster"> <div class="container x mandatory-scroll-snapping" dir="ltr"> <div>x mand.
Iteration protocols - JavaScript
doing so allows an iterator to be consumed by the various synt
axes expecting iterables.
... 'c']]).get(2); // "b" let myobj = {}; new weakmap([ [{}, 'a'], [myobj, 'b'], [{}, 'c'] ]).get(myobj); // "b" new set([1, 2, 3]).has(3); // true new set('123').has('2'); // true new weakset(function* () { yield {} yield myobj yield {} }()).has(myobj); // true see also promise.all(iterable) promise.race(iterable) array.from(iterable) synt
axes expecting iterables some statements and expressions expect iterables, for example the for...of loops, the spread operator), yield*, and destructuring assignment: for (let value of ['a', 'b', 'c']) { console.log(value); } // "a" // "b" // "c" console.log([...'abc']); // ["a", "b", "c"] function* gen() { yield* ['a', 'b', 'c']; } console.log(gen().next()); // { value: "a", done: false ...
Authoring MathML - MathML
wiki or markdown synt
axes) to generate html pages.
... the same is true for mathml: for example ascii synt
axes as used in calculators or the more powerful latex language, very popular among the scientific community.
Index - XPath
2
axes transforming_xml_with_xslt, xpath, xpath_reference, xslt, xslt_reference for further information on using xpath expressions, please see the for further reading section at the end of transforming xml with xslt document.
... also see the '
axes' section in the xpath spec.
Index - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes found 54 pages: # page tags and summary 1 xslt: extensible stylesheet language transformations landing, web, xslt extensible stylesheet language transformations (xslt) is an xml-based language used, in conjunction with specialized processing software, for the transformation of xml documents.
... 17 the netscape xslt/xpath reference netscape, reference, xslt,
axes no summary!
The Netscape XSLT/XPath Reference - XSLT: Extensible Stylesheet Language Transformations
the following is an alphabetized and annotated list of the elements,
axes, and functions from the w3c's 1.0 recommendation for xslt, as well as from the appropriate sections of the xpath recommendation.
...tially supported) xsl:param (supported) xsl:preserve-space (supported) xsl:processing-instruction xsl:sort (supported) xsl:strip-space (supported) xsl:stylesheet (partially supported) xsl:template (supported) xsl:text (partially supported) xsl:transform (supported) xsl:value-of (partially supported) xsl:variable (supported) xsl:when (supported) xsl:with-param (supported)
axes ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace (not supported) parent preceding preceding-sibling self functions boolean() (supported) ceiling() (supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) fal...
Transforming XML with XSLT - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes an overview the separation of content and presentation is a key design feature of xml.
...output (partially supported) xsl:param (supported) xsl:preserve-space (supported) xsl:processing-instruction xsl:sort (supported) xsl:strip-space (supported) xsl:stylesheet (partially supported) xsl:template (supported) xsl:text (partially supported) xsl:transform (supported) xsl:value-of (partially supported) xsl:variable (supported) xsl:when (supported) xsl:with-param (supported)
axes ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace (not supported) parent preceding preceding-sibling self functions boolean() (supported) ceiling() (supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) false() (s...
Flexbox - Learn web development
the flex model when elements are laid out as flex items, they are laid out along two
axes: the main axis is the axis running in the direction the flex items are being laid out in (e.g.
Positioning - Learn web development
(0,0) is at the top left of the page (or element), and the x- and y-
axes run across to the right and down the page (for left to right languages, anyway.) web pages also have a z-axis: an imaginary line that runs from the surface of your screen, towards your face (or whatever else you like to have in front of the screen).
Drawing graphics - Learn web development
last of all, let's add our draw() function to the bottom of the code: function draw() { cube.rotation.x += 0.01; cube.rotation.y += 0.01; renderer.render(scene, camera); requestanimationframe(draw); } this is fairly intuitive; on each frame, we rotate our cube slightly on its x and y
axes, then render the scene as viewed by our camera, then finally call requestanimationframe() to schedule drawing our next frame.
PromiseWorker.jsm
also unlike sending/transferring from the main thread, when sending/transferring from worker there are no alternative synt
axes, it must be wrapped in a meta object.
Scripting Java
most of the time the previous synt
axes using the new operator will be sufficient.
Accelerometer - Web APIs
the accelerometer interface of the sensor apis provides on each reading the acceleration applied to the device along all three
axes.
DOMPoint.x - Web APIs
in general, positive values x mean to the right, and negative values of x means to the left, barring any transforms that may have altered the orientation of the
axes.
DOMPointInit.x - Web APIs
in general, positive values x mean to the right, and negative values of x means to the left, assuming that transforms have not altered the orientation of the
axes.
Gamepad.timestamp - Web APIs
the idea behind this is to allow developers to determine if the
axes and button data have been updated from the hardware.
GamepadEvent.gamepad - Web APIs
%d buttons, %d
axes.", e.gamepad.index, e.gamepad.id, e.gamepad.buttons.length, e.gamepad.
axes.length); }); value a gamepad object.
GamepadEvent - Web APIs
%d buttons, %d
axes.", e.gamepad.index, e.gamepad.id, e.gamepad.buttons.length, e.gamepad.
axes.length); }); and on a window.gamepaddisconnected event.
Gyroscope.Gyroscope() - Web APIs
the gyroscope constructor creates a new gyroscope object which provides on each reading the angular velocity of the device along all three
axes.
Gyroscope - Web APIs
the gyroscope interface of the sensor apis provides on each reading the angular velocity of the device along all three
axes.
HTMLFontElement.color - Web APIs
the format of the string must follow one of the following html microsynt
axes: microsyntax description examples valid name color string nameofcolor (case insensitive) green green green valid hex color string in rgb format: #rrggbb #008000 rgb using decimal values rgb(x,x,x) (x in 0-255 range) rgb(0,128,0) syntax colorstring = fontobj.color; fontobj.color = colorstring; examples // assumes there is <font id="f"> element in the html var f = document.getelementbyid("f"); f.color = "green"; specifications the <font>...
HTMLFontElement.size - Web APIs
the format of the string must follow one of the following html microsynt
axes: microsyntax description examples valid size number string integer number in the range of 1-7 6 relative size string +x or -x, where x is the number relative to the value of the size attribute of the <basefont> element (the result should be in the same range of 1-7) +2 -1 syntax sizestring = fontobj.size; fontobj.size = sizestring; examples // assumes there is <font id="f"> element in the ht...
HTMLFormElement - Web APIs
you can then use any of the following synt
axes to get an individual form: document.forms[index] returns the form at the specified index into the array of forms.
HTMLTimeElement.dateTime - Web APIs
the format of the string must follow one of the following html microsynt
axes: microsyntax description examples valid month string yyyy-mm 2011-11, 2013-05 valid date string yyyy-mm-dd 1887-12-01 valid yearless date string mm-dd 11-12 valid time string hh:mm hh:mm:ss hh:mm:ss.mmm 23:59 12:15:47 12:15:52.998 valid local date and time string yyyy-mm-dd hh:mm yyyy-mm-dd hh:mm:ss yyyy-mm-dd hh:mm:ss.mmm yyyy-mm-ddthh:mm yyyy-mm-ddthh:mm:ss yyyy-mm-ddthh:mm:ss.mmm 2013-12-25 11:12 1972-07-25 13:43:0...
LinearAccelerationSensor - Web APIs
the linearaccelerationsensor interface of the sensor apis provides on each reading the acceleration applied to the device along all three
axes, but without the contribution of gravity.
Navigator.getGamepads() - Web APIs
%d buttons, %d
axes.", gp.index, gp.id, gp.buttons.length, gp.
axes.length ); }); specifications specification status comment gamepadthe definition of 'the gamepad api specification' in that specification.
PannerNode - Web APIs
the orientation and position value are set and retrieved using different synt
axes, since they're stored as audioparam values.
ScrollToOptions.left - Web APIs
the positions to scroll to along the x and y
axes), and a checkbox indicating whether they want smooth scrolling enabled or not.
ScrollToOptions.top - Web APIs
the positions to scroll to along the x and y
axes), and a checkbox indicating whether they want smooth scrolling enabled or not.
ScrollToOptions - Web APIs
the positions to scroll to along the x and y
axes), and a checkbox indicating whether they want smooth scrolling enabled or not.
Rendering and the WebXR frame animation callback - Web APIs
object is rotating, you might apply the rotation like this: const xdeltarotation = (xrotationdegreespersecond * radians_per_degree) * deltatime; const ydeltarotation = (yrotationdegreespersecond * radians_per_degree) * deltatime; const zdeltarotation = (zrotationdegreespersecond * radians_per_degree) * deltatime; this computes the amount by which the object has rotated around each of the three
axes since the last time the frame was drawn.
WebXR Device API - Web APIs
supporting advanced controllers and gamepads in webxr applications webxr uses the gamepad object to describe the controls available on complex input devices (such as hand controllers with multiple buttons and/or
axes) and gamepad-like devices.
Window: gamepadconnected event - Web APIs
bubbles no cancelable no interface gamepadevent event handler property ongamepadconnected examples window.addeventlistener('gamepadconnected', event => { // all buttons and
axes values can be accessed through event.gamepad; }); specifications specification status gamepad working draft ...
Window.ongamepadconnected - Web APIs
}; examples window.ongamepadconnected = function(event) { // all buttons and
axes values can be accessed through event.gamepad; }; specifications specification status comment gamepadthe definition of 'gamepadconnected event' in that specification.
XRInputSource.gripSpace - Web APIs
the y-axis is implied by the relationship between the other two
axes; as is always the case, it's the cross product of the other two
axes (lying 90° away from both the x and z
axes).
XRInputSource - Web APIs
properties gamepad read only a gamepad object describing the state of the buttons and
axes on the xr input source, if it is a gamepad or comparable device.
CSS values and units - CSS: Cascading Style Sheets
adds the min(), max() and clamp() functional notation adds toggle() css values and units module level 3 candidate recommendation adds calc(), ch, rem, vw, vw, vmin, vmax, q css color module level 4 working draft adds commaless synt
axes for the rgb(), rgba(), hsl(), and hsla() functions.
<color> - CSS: Cascading Style Sheets
istener('change', () => { if(validtextcolor(inputelem.value)) { divelem.style.backgroundcolor = inputelem.value; divelem.textcontent = ''; } else { divelem.style.backgroundcolor = 'white'; divelem.textcontent = 'invalid color value'; } }); result rgb syntax variations this example shows the many ways in which a single color can be created with the various rgb color synt
axes.
scale - CSS: Cascading Style Sheets
yntax /* keyword values */ scale: none; /* single values */ /* values of more than 1 make the element grow */ scale: 2; /* values of less than 1 make the element shrink */ scale: 0.5; /* two values */ scale: 2 0.5; /* three values */ scale: 2 0.5 2; values single number value a <number> specifying a scale factor to make the affected element scale by the same factor along both the x and y
axes.
scroll-snap-stop - CSS: Cascading Style Sheets
formal definition initial valuenormalapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax normal | always examples snapping in different
axes this example is duplicated from scroll-snap-type with minor variances.
translate - CSS: Cascading Style Sheets
syntax /* keyword values */ translate: none; /* single values */ translate: 100px; translate: 50%; /* two values */ translate: 100px 200px; translate: 50% 105px; /* three values */ translate: 50% 105px 5rem; values single <length-percentage> value a <length> or <percentage> that specifies a 2d translation, with the same translation along both the x and y
axes.
exsl:node-set() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes exsl:node-set() returns a node-set from a result tree fragment, which is what you get when you look at the xsl:variable instead of its select attribute to fetch a variable's value.
exsl:object-type() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes exsl:object-type() returns a string that indicates the type of the specified object.
Common (exsl) - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the exslt common package provides basic functions that expand upon the capabilities of xslt.
math:highest() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes math:highest() returns the node in the specified node-set with the highest value (where the highest value calculated using math:max()).
math:lowest() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes math:lowest() returns the node in the specified node-set with the lowest value (where the lowest value calculated using math:min()).
math:max() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes math:max() returns the maximum value of a node-set.
math:min() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes math:min() returns the minimum value of a node-set.
Math (math) - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the exslt math package provides functions for working with numeric values and comparing nodes.
regexp:match() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes regexp:match() performs regular expression matching on a string, returning the submatches found as a result.
regexp:replace() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes regexp:replace() replaces the portions of a string that match a given regular expression with the contents of another string.
regexp:test() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes regexp:test() tests to see whether a string matches a specified regular expression.
Regular expressions (regexp) - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the exslt regular expressions package provides functions that allow testing, matching, and replacing text using javascript style regular expressions.
set:difference() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes set:difference() returns the difference between two node-sets.
set:distinct() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes set:distinct() returns a subset of the nodes in the specified node-set, returning only nodes with unique string values.
set:has-same-node() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes set:has-same-node() determines whether two node-sets have any nodes in common.
set:intersection() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes set:intersection() returns the intersection of two node-sets.
set:leading() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes set:leading() returns the nodes in one node-set that come before the first node in the other node-set.
set:trailing() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes set:trailing() returns the nodes in one node-set that come after the first node in the other node-set.
Sets (set) - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the exslt sets package offers functions that let you perform set manipulation.
str:concat() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes str:concat() returns a string containing all the string values in a node-set concatenated together.
str:split() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes str:split() splits a string using a pattern string to determine where the splits should occur, returning a node-set containing the resulting strings.
str:tokenize() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes str:tokenize() splits a string using a set of characters as delimiters that determine where the splits should occur, returning a node-set containing the resulting strings.
Strings (str) - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the exslt strings package provides functions that allow the manipulation of strings.
EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes exslt is a set of extensions to xslt.
<img>: The Image Embed element - HTML: Hypertext Markup Language
an alt decision tree • images • wai web accessibility tutorials alt-texts: the ultimate guide —
axess lab how to design great alt text: an introduction | deque mdn understanding wcag, guideline 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 the title attribute the title attribute is not an acceptable substitute for the alt attribute.
path - SVG: Scalable Vector Graphics
the effect of a motion path animation is a translation along the x- and y-
axes of the current user coordinate system by the x and y values computed over time.
<marker> - SVG: Scalable Vector Graphics
x="0 0 10 10" refx="5" refy="5" markerwidth="6" markerheight="6" orient="auto-start-reverse"> <path d="m 0 0 l 10 5 l 0 10 z" /> </marker> <!-- simple dot marker definition --> <marker id="dot" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="5" markerheight="5"> <circle cx="5" cy="5" r="5" fill="red" /> </marker> </defs> <!-- coordinate
axes with a arrowhead in both direction --> <polyline points="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <!-- data line with polymarkers --> <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="url(#dot)" marker-mid="url(#dot)" marker-end="url(#dot)" /> </svg> attributes markerheig...
Basic shapes - SVG: Scalable Vector Graphics
ellipse an <ellipse> is a more general form of the <circle> element, where you can scale the x and y radius (commonly refferred to as the semimajor and semiminor
axes in maths) of the circle separately.
Comparison of CSS Selectors and XPath - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes this article seeks to document the difference between css selectors and xpath for web developers to be able to better choose the right tool for the right job.
boolean - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the boolean function evaluates an expression and returns true or false.
ceiling - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the ceiling function evaluates a decimal number and returns the smallest integer greater than or equal to the decimal number.
choose - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the choose function returns one of the specified objects based on a boolean parameter.
concat - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the concat function concatenates two or more strings and returns the resulting string.
contains - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the contains function determines whether the first argument string contains the second argument string and returns boolean true or false.
count - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the count function counts the number of nodes in a node-set and returns an integer.
current - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the current function can be used to get the context node in an xslt instruction.
document - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the document finds a node-set in an external document, or multiple external documents, and returns the resulting node-set.
element-available - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the element-available function determines if an element is available and returns true or false.
false - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the false function returns boolean false.
floor - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the floor function evaluates a decimal number and returns the largest integer less than or equal to the decimal number.
format-number - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the format-number function evaluates a number and returns a string representing the number in a given format.
function-available - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the function-available function determines if a given function is available and returns boolean true or false.
generate-id - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the generate-id function generates a unique id for the first node in a given node-set and returns a string containing that id.
id - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the id function finds nodes matching the given ids and returns a node-set containing the identified nodes.
key - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the key function returns a node-set of nodes that have the given value for the given key.
lang - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the lang function determines whether the context node matches the given language and returns boolean true or false.
last - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the last function returns a number equal to the context size from the expression evaluation context.
local-name - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the local-name function returns a string representing the local name of the first node in a given node-set.
name - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the name function returns a string representing the qname of the first node in a given node-set.
namespace-uri - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the namespace-uri function returns a string representing the namespace uri of the first node in a given node-set.
normalize-space - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the normalize-space function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string.
not - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the not function evaluates a boolean expression and returns the opposite value.
number - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the number function converts an object to a number and returns the number.
position - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the position function returns a number equal to the context position from the expression evaluation context.
round - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the round function returns a number that is the nearest integer to the given number.
starts-with - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the starts-with checks whether the first string starts with the second string and returns true or false.
string-length - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the string-length function returns a number equal to the number of characters in a given string.
string - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the string function converts the given argument to a string.
substring-after - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the substring-after function returns a string that is the rest of a given string after a given substring.
substring-before - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the substring-before function returns a string that is the part of a given string before a given substring.
substring - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the substring function returns a part of a given string.
sum - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the sum function returns a number that is the sum of the numeric values of each node in a given node-set.
system-property - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the system-property function returns an object representing the given system-property.
translate - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the translate function evaluates a string and a set of characters to translate and returns the translated string.
true - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the true function returns a boolean value of true.
unparsed-entity-url - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the unparsed-entity-url() function returns the uri of the unparsed entity with the given name.
Functions - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes the following is an annotated list of core xpath functions and xslt-specific additions to xpath, including a description, syntax, a list of arguments, result-type, source in the appropriate w3c recommendation, and degree of present gecko support.
XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath
axes extensible stylesheet language transformations (xslt) is an xml-based language used, in conjunction with specialized processing software, for the transformation of xml documents.