Members
_paper
OpenSeadragon paperjs overlay plugin based on paper.js
- Version:
- 0.4.3 Includes additional open source libraries which are subject to copyright notices as indicated accompanying those segments of code. Original code: Copyright (c) 2022-2024, Thomas Pearce All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of osd-paperjs-annotation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- Source:
(constant) iconDefs
OpenSeadragon paperjs overlay plugin based on paper.js
- Version:
- 0.4.3 Includes additional open source libraries which are subject to copyright notices as indicated accompanying those segments of code. Original code: Copyright (c) 2022-2024, Thomas Pearce All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of osd-paperjs-annotation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- Source:
(constant) localImportsCompleted
OpenSeadragon paperjs overlay plugin based on paper.js
- Version:
- 0.4.3 Includes additional open source libraries which are subject to copyright notices as indicated accompanying those segments of code. Original code: Copyright (c) 2022-2024, Thomas Pearce All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of osd-paperjs-annotation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- Source:
osd
OpenSeadragon paperjs overlay plugin based on paper.js
- Version:
- 0.4.3 Includes additional open source libraries which are subject to copyright notices as indicated accompanying those segments of code. Original code: Copyright (c) 2022-2024, Thomas Pearce All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of osd-paperjs-annotation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- Source:
Methods
adaptiveOffsetCurve(curve, offset)
Adaptive offset a curve by repeatly apply the approximation proposed by Tiller and Hanson.
Parameters:
Name | Type | Description |
---|---|---|
curve |
curve to offset | |
offset |
offset value |
- Source:
connectAdjacentBezier()
Connect two adjacent bezier curve, each curve is represented by two segments,
create different types of joins or simply removal redundant segment.
- Source:
connectBeziers()
Connect all the segments together.
- Source:
convertFaIcons(element, faClassesToReplaceopt, faClassesToRemoveopt)
Find descendants of a parent element and convert font awesome classes into svg icons. See iconDefs for the list of supported class names.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
element |
HTMLElement | the parent to search within | |
faClassesToReplace |
Array |
<optional> |
an optional array of strings of fontawesome class names to convert. Defaults to all classes in iconDefs above. |
faClassesToRemove |
Array |
<optional> |
an optional array of strings to remove from the class list. Default: ['fa', 'fa-solid'] |
- Source:
getPointLineIntersections()
Get the intersection point of point based lines
- Source:
makeFaIcon(classname, currentColoropt)
Create an SVG icon from a font-awesome class name. See iconDefs for the list of supported class names.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
classname |
String | ||
currentColor |
boolean |
<optional> |
Whether to use the currentColor property for the fill color |
- Source:
Returns:
the newly created svg element with class 'icon'
makeRoundJoin()
Create a round join segment between two adjacent segments.
- Source:
normalize()
Normalize a path, always clockwise, non-self-intersection, ignore really small components, and no one-component compound path.
- Source:
offsetSegment(segment, curve, handleNormal, offset)
Offset the start/terminal segment of a bezier curve
Parameters:
Name | Type | Description |
---|---|---|
segment |
segment to offset | |
curve |
curve to offset | |
handleNormal |
the normal of the the line formed of two handles | |
offset |
offset value |
- Source:
removeIntersection()
Remove self intersection when offset is negative by point direction dectection.
- Source:
removeOutsiders()
Remove impossible segments in negative offset condition.
- Source:
updateFillOpacity()
Item.updateFillOpacity (paper extension)
Update the fill opacity of a paper item and its descendants.
- Source:
updateStrokeOpacity()
Item.updateStrokeOpacity (paper extension)
Update the stroke opacity of a paper item and its descendants.
- Source: