Skip to content

Commit

Permalink
css: remove dependency on xmlgraphics-commons
Browse files Browse the repository at this point in the history
See #106, #107.
  • Loading branch information
carlosame committed Jul 9, 2024
1 parent ce82f20 commit 8d22582
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
7 changes: 0 additions & 7 deletions echosvg-css/build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
plugins {
id 'echosvg.java-conventions'
id 'org.gradlex.extra-java-module-info'
}

dependencies {
api project(':echosvg-util')
api "io.sf.carte:svgom-api:${svgomVersion}"
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
api "io.sf.carte:css4j:${css4jVersion}"
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule('org.apache.xmlgraphics:xmlgraphics-commons', 'org.apache.xmlgraphics.commons')
}

test {
useJUnitPlatform()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
package io.sf.carte.echosvg.css.engine.value.svg12;

import org.apache.xmlgraphics.java2d.color.ColorSpaces;
import org.w3c.dom.css.CSSValue;

import io.sf.carte.echosvg.css.engine.value.AbstractValue;
Expand All @@ -34,8 +33,13 @@ public abstract class AbstractCIEColor extends AbstractValue {
/** The three color values. */
protected float[] values = new float[3];

/** The white point, initialized to D50. */
protected float[] whitepoint = ColorSpaces.getCIELabColorSpaceD50().getWhitePoint();
/**
* The white point in XYZ coordinates, initialized to D50.
* <p>
* Data from CIE Publication 15.2 - 1986 Page 55 Table 1.4.
* </p>
*/
protected float[] whitepoint = new float[] {96.42f, 100f, 82.49f};

/**
* Creates a new CIE-based color.
Expand Down
1 change: 0 additions & 1 deletion echosvg-css/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@
requires java.xml;
requires jdk.xml.dom;
requires transitive org.w3c.dom.svg;
requires org.apache.xmlgraphics.commons;
}

0 comments on commit 8d22582

Please sign in to comment.