|
From: <mar...@us...> - 2011-04-28 12:56:49
|
Revision: 21080
http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21080&view=rev
Author: marcputs
Date: 2011-04-28 12:56:43 +0000 (Thu, 28 Apr 2011)
Log Message:
-----------
MSvgElement (implementing SVGSVGElement interface) moved to struct package.
Modified Paths:
--------------
trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/Svg.js
Added Paths:
-----------
trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/
trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/MSvgElement.js
trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/__init__.js
Removed Paths:
-------------
trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/core/dom/MSvgElement.js
Deleted: trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/core/dom/MSvgElement.js
===================================================================
--- trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/core/dom/MSvgElement.js 2011-04-28 07:45:13 UTC (rev 21079)
+++ trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/core/dom/MSvgElement.js 2011-04-28 12:56:43 UTC (rev 21080)
@@ -1,178 +0,0 @@
-/* ************************************************************************
-
- Copyright:
- 2010-2011 Marc Puts
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Marc Puts (marcputs)
-
-************************************************************************ */
-
-/**
- * Implements the SVGSVGElement interface.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#InterfaceSVGSVGElement</li>
- * </ul>
- */
-qx.Mixin.define("svg.core.dom.MSvgElement", {
-
- members :
- {
- /**
- * Creates an SVGNumber object outside of any document trees.
- * Initialized to 0.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGNumber</li>
- * </ul>
- *
- * @return {SVGNumber}
- */
- createNumber : function() {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGNumber();
- },
-
- /**
- * Creates an SVGLength object outside of any document trees.
- * Initialized to 0.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGLength</li>
- * </ul>
- *
- * @return {SVGLength}
- */
- createLength : function() {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGLength();
- },
-
- /**
- * Creates an SVGAngle object outside of any document trees.
- * Initialized to 0 degrees.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGAngle</li>
- * </ul>
- *
- * @return {SVGAngle}
- */
- createAngle : function() {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGAngle();
- },
-
- /**
- * Creates an SVGPoint object outside of any document trees.
- * Initialized to the point (0,0) in the user coordinate system.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGPoint</li>
- * </ul>
- *
- * @return {SVGPoint}
- */
- createPoint : function() {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGPoint();
- },
-
- /**
- * Creates an SVGMatrix object outside of any document trees.
- * Initialized to the *identity* matrix.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGMatrix</li>
- * </ul>
- *
- * @return {SVGMatrix}
- */
- createMatrix : function() {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGMatrix();
- },
-
- /**
- * Creates an SVGRect object outside of any document trees.
- * Initialized to 0,0,0,0.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGRect</li>
- * </ul>
- *
- * @return {SVGRect}
- */
- createRect : function() {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGRect();
- },
-
- /**
- * Creates an SVGTransform object outside of any document trees.
- * Initialized to an identity matrix transform.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGTransform</li>
- * </ul>
- *
- * @return {SVGTransform}
- */
- createTransform : function() {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGTransform();
- },
-
- /**
- * Creates an SVGTransform object outside of any document trees, which is initialized to the
- * given matrix transform.
- *
- * Initialized to the given matrix transform.
- *
- * More info:
- * <ul>
- * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGTransformFromMatrix</li>
- * </ul>
- *
- * @param matrix {SVGMatrix}
- * The transform matrix.
- *
- * @return {SVGTransform}
- */
- createTransformFromMatrix : function(matrix) {
- if ((qx.core.Environment.get("qx.debug"))) {
- svg.core.Assert.assertElementInDocTree(this);
- }
- return this.getDomElement().createSVGTransformFromMatrix(matrix);
- }
-
- }
-});
\ No newline at end of file
Modified: trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/Svg.js
===================================================================
--- trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/Svg.js 2011-04-28 07:45:13 UTC (rev 21079)
+++ trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/Svg.js 2011-04-28 12:56:43 UTC (rev 21080)
@@ -34,7 +34,7 @@
include : [ svg.coords.MViewBox,
svg.coords.MPreserveAspectRatio,
- svg.core.dom.MSvgElement ],
+ svg.struct.dom.MSvgElement ],
construct : function()
{
Copied: trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/MSvgElement.js (from rev 21079, trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/core/dom/MSvgElement.js)
===================================================================
--- trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/MSvgElement.js (rev 0)
+++ trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/MSvgElement.js 2011-04-28 12:56:43 UTC (rev 21080)
@@ -0,0 +1,178 @@
+/* ************************************************************************
+
+ Copyright:
+ 2010-2011 Marc Puts
+
+ License:
+ LGPL: http://www.gnu.org/licenses/lgpl.html
+ EPL: http://www.eclipse.org/org/documents/epl-v10.php
+ See the LICENSE file in the project's top-level directory for details.
+
+ Authors:
+ * Marc Puts (marcputs)
+
+************************************************************************ */
+
+/**
+ * Implements the SVGSVGElement interface.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#InterfaceSVGSVGElement</li>
+ * </ul>
+ */
+qx.Mixin.define("svg.struct.dom.MSvgElement", {
+
+ members :
+ {
+ /**
+ * Creates an SVGNumber object outside of any document trees.
+ * Initialized to 0.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGNumber</li>
+ * </ul>
+ *
+ * @return {SVGNumber}
+ */
+ createNumber : function() {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGNumber();
+ },
+
+ /**
+ * Creates an SVGLength object outside of any document trees.
+ * Initialized to 0.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGLength</li>
+ * </ul>
+ *
+ * @return {SVGLength}
+ */
+ createLength : function() {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGLength();
+ },
+
+ /**
+ * Creates an SVGAngle object outside of any document trees.
+ * Initialized to 0 degrees.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGAngle</li>
+ * </ul>
+ *
+ * @return {SVGAngle}
+ */
+ createAngle : function() {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGAngle();
+ },
+
+ /**
+ * Creates an SVGPoint object outside of any document trees.
+ * Initialized to the point (0,0) in the user coordinate system.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGPoint</li>
+ * </ul>
+ *
+ * @return {SVGPoint}
+ */
+ createPoint : function() {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGPoint();
+ },
+
+ /**
+ * Creates an SVGMatrix object outside of any document trees.
+ * Initialized to the *identity* matrix.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGMatrix</li>
+ * </ul>
+ *
+ * @return {SVGMatrix}
+ */
+ createMatrix : function() {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGMatrix();
+ },
+
+ /**
+ * Creates an SVGRect object outside of any document trees.
+ * Initialized to 0,0,0,0.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGRect</li>
+ * </ul>
+ *
+ * @return {SVGRect}
+ */
+ createRect : function() {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGRect();
+ },
+
+ /**
+ * Creates an SVGTransform object outside of any document trees.
+ * Initialized to an identity matrix transform.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGTransform</li>
+ * </ul>
+ *
+ * @return {SVGTransform}
+ */
+ createTransform : function() {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGTransform();
+ },
+
+ /**
+ * Creates an SVGTransform object outside of any document trees, which is initialized to the
+ * given matrix transform.
+ *
+ * Initialized to the given matrix transform.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__createSVGTransformFromMatrix</li>
+ * </ul>
+ *
+ * @param matrix {SVGMatrix}
+ * The transform matrix.
+ *
+ * @return {SVGTransform}
+ */
+ createTransformFromMatrix : function(matrix) {
+ if ((qx.core.Environment.get("qx.debug"))) {
+ svg.core.Assert.assertElementInDocTree(this);
+ }
+ return this.getDomElement().createSVGTransformFromMatrix(matrix);
+ }
+
+ }
+});
\ No newline at end of file
Property changes on: trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/MSvgElement.js
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/__init__.js
===================================================================
--- trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/__init__.js (rev 0)
+++ trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/__init__.js 2011-04-28 12:56:43 UTC (rev 21080)
@@ -0,0 +1,8 @@
+/**
+ * Implementations/wrappers for SVG's struct DOM interfaces.
+ *
+ * More info:
+ * <ul>
+ * <li>http://www.w3.org/TR/SVG/struct.html#DOMInterfaces</li>
+ * </ul>
+ */
Property changes on: trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/struct/dom/__init__.js
___________________________________________________________________
Added: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|