This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* $Id: ProxyServlet.java,v 1.4 2013/12/13 13:18:11 david Exp $ | |
* Copyright (c) 2011-2012, JGraph Ltd | |
*/ | |
package com.mxgraph.online; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.PrintWriter; | |
import java.io.Serializable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.10/MicrosoftTeams.schema.json", | |
"manifestVersion": "1.10", | |
"version": "1.0.13", | |
"id": "xxx", | |
"packageName": "com.mxgraph.teamsApp", | |
"developer": { | |
"name": "JGraph", | |
"websiteUrl": "https://www.diagrams.net", | |
"privacyUrl": "https://www.diagrams.net/trust/privacy-microsoft-teams", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Go to https://console.cloud.google.com and create new project | |
- In new project select APIs and services | |
- Click "ENABLE APIS AND SERVICES" | |
- Search for "drive" and click "Google Drive API", then "Enable" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Exports the graph to a PDF and displays it in a new tab via data URL | |
function exportPdf(graph) | |
{ | |
// Prepare document | |
var pdfCanvas = new jsPDF(); | |
pdfCanvas.scale(1 / graph.pageScale); | |
// Render graph | |
var imgExport = new mxImageExport(); | |
imgExport.includeOverlays = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jsPDF | |
* | |
* Open Issues: | |
* | |
* - HTML rendering | |
* - Add rotation | |
* - Add support for dash patterns | |
* - Add clipped/vertical (PDF) labels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FilenameFilter; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.nio.file.Files; | |
import java.util.Arrays; | |
import javax.swing.JFileChooser; | |
import javax.xml.parsers.ParserConfigurationException; | |
import javax.xml.transform.TransformerException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Starting from https://sangupta.com/tech/encodeuricomponent-and.html | |
public static final String ALLOWED_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.!~*'()"; | |
public static String encodeURIComponent2(String input, String charset) | |
{ | |
if (input.isEmpty()) | |
{ | |
return input; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mxgraph.properties; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Draw.io Viewer</title> | |
<style type="text/css"> | |
html, body { | |
height:100%; | |
overflow:hidden; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2006-2015, JGraph Ltd | |
* Copyright (c) 2006-2015, Gaudenz Alder | |
*/ | |
var mxPerimeter = | |
{ | |
/** | |
* Class: mxPerimeter | |
* | |
* Provides various perimeter functions to be used in a style |
NewerOlder