diff --git a/package-lock.json b/package-lock.json index 96ea88cf2..f908d9526 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "cytoscape", - "version": "3.30.0-unstable", + "version": "3.31.0-unstable", "license": "MIT", "devDependencies": { "@babel/core": "^7.3.4", @@ -15,6 +15,7 @@ "@rollup/plugin-commonjs": "^11.1.0", "@rollup/plugin-node-resolve": "^7.1.3", "@rollup/plugin-replace": "^2.3.2", + "@types/cytoscape": "^3.21.5", "benchmark": "^2.1.4", "bluebird": "^3.5.0", "chai": "^4.1.2", @@ -37,7 +38,8 @@ "rimraf": "^3.0.0", "rollup": "^2.8.2", "rollup-plugin-license": "^2.3.0", - "rollup-plugin-terser": "^5.3.0" + "rollup-plugin-terser": "^5.3.0", + "typescript": "^5.5.4" }, "engines": { "node": ">=0.10" @@ -1820,6 +1822,12 @@ "rollup": "^1.20.0||^2.0.0" } }, + "node_modules/@types/cytoscape": { + "version": "3.21.5", + "resolved": "https://registry.npmjs.org/@types/cytoscape/-/cytoscape-3.21.5.tgz", + "integrity": "sha512-fzYT3vqY5J4gxVXDOsCgDpm0ZdU8bQq+wCv0ucS0MSTtvQdjs3lcb2VetJiUSAd4WBgouqizI+JT1f8Yc6eY7Q==", + "dev": true + }, "node_modules/@types/estree": { "version": "0.0.39", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", @@ -7567,6 +7575,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/typescript": { + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/uglify-js": { "version": "3.16.2", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.16.2.tgz", @@ -9277,6 +9298,12 @@ "picomatch": "^2.2.2" } }, + "@types/cytoscape": { + "version": "3.21.5", + "resolved": "https://registry.npmjs.org/@types/cytoscape/-/cytoscape-3.21.5.tgz", + "integrity": "sha512-fzYT3vqY5J4gxVXDOsCgDpm0ZdU8bQq+wCv0ucS0MSTtvQdjs3lcb2VetJiUSAd4WBgouqizI+JT1f8Yc6eY7Q==", + "dev": true + }, "@types/estree": { "version": "0.0.39", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", @@ -13567,6 +13594,12 @@ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true }, + "typescript": { + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "dev": true + }, "uglify-js": { "version": "3.16.2", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.16.2.tgz", diff --git a/package.json b/package.json index 043f6f86d..07b8db4ca 100644 --- a/package.json +++ b/package.json @@ -100,6 +100,7 @@ "@rollup/plugin-commonjs": "^11.1.0", "@rollup/plugin-node-resolve": "^7.1.3", "@rollup/plugin-replace": "^2.3.2", + "@types/cytoscape": "^3.21.5", "benchmark": "^2.1.4", "bluebird": "^3.5.0", "chai": "^4.1.2", @@ -122,6 +123,7 @@ "rimraf": "^3.0.0", "rollup": "^2.8.2", "rollup-plugin-license": "^2.3.0", - "rollup-plugin-terser": "^5.3.0" + "rollup-plugin-terser": "^5.3.0", + "typescript": "^5.5.4" } } diff --git a/typescript/extract-comm-ts-fns.js b/typescript/extract-comm-ts-fns.js new file mode 100644 index 000000000..b1c8964ed --- /dev/null +++ b/typescript/extract-comm-ts-fns.js @@ -0,0 +1,83 @@ +const ts = require('typescript'); +const fs = require('fs'); +const path = require('path'); + +// Load and parse the TypeScript definition file from node_modules +const fileName = path.resolve(__dirname, '..', 'node_modules', '@types', 'cytoscape', 'index.d.ts'); +const sourceFile = ts.createSourceFile( + fileName, + fs.readFileSync(fileName, 'utf8'), + ts.ScriptTarget.Latest, + true +); + +// Helper function to recursively extract function names +function extractFunctions(node, parentName = '') { + let functions = []; + + function getQualifiedName(name) { + return parentName ? `${parentName}.${name}` : name; + } + + if (ts.isInterfaceDeclaration(node) || ts.isModuleDeclaration(node)) { + const name = node.name.text; + ts.forEachChild(node, child => { + functions = functions.concat(extractFunctions(child, getQualifiedName(name))); + }); + } else if (ts.isMethodSignature(node) || (ts.isPropertySignature(node) && ts.isFunctionTypeNode(node.type))) { + const name = node.name.text; + functions.push(getQualifiedName(name)); + } else { + ts.forEachChild(node, child => { + functions = functions.concat(extractFunctions(child, parentName)); + }); + } + + return functions; +} + +// Extract functions from the source file +const functions = extractFunctions(sourceFile); + +// Filter out options and results entries +const filteredFunctions = functions.filter(fn => { + return !fn.includes('Options') && !fn.includes('Result'); +}); + +// Format the function names according to the API documentation style +const formattedFunctions = filteredFunctions.map(fn => { + if (fn.startsWith('cytoscape.Core')) { + return 'cy.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.Collection')) { + return 'eles.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.Singular')) { + return 'ele.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.EdgeSingular')) { + return 'edge.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.EdgeCollection')) { + return 'edges.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.NodeSingular')) { + return 'node.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.NodeCollection')) { + return 'nodes.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.AbstractEventObject')) { + return 'event.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.LayoutManipulation') || fn.startsWith('cytoscape.LayoutEvents')) { + return 'layout.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.AnimationManipulation')) { + return 'ani.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.Style')) { + return 'style.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.ElementStylesheetStyle')) { + return 'stylesheet.' + fn.split('.').slice(2).join('.'); + } else if (fn.startsWith('cytoscape.ElementStylesheetCSS')) { + return 'style.' + fn.split('.').slice(2).join('.'); + } + return fn; +}); + +// Sort the formatted functions alphabetically +const sortedFunctions = formattedFunctions.sort(); + +// Output the functions as JSON +console.log(JSON.stringify(sortedFunctions, null, 2)); \ No newline at end of file diff --git a/typescript/extract-comm-ts-style.js b/typescript/extract-comm-ts-style.js new file mode 100644 index 000000000..be0e9a70d --- /dev/null +++ b/typescript/extract-comm-ts-style.js @@ -0,0 +1,64 @@ +const ts = require('typescript'); +const fs = require('fs'); +const path = require('path'); + +// Load and parse the TypeScript definition file from node_modules +const fileName = path.resolve(__dirname, '..', 'node_modules', '@types', 'cytoscape', 'index.d.ts'); +const sourceFile = ts.createSourceFile( + fileName, + fs.readFileSync(fileName, 'utf8'), + ts.ScriptTarget.Latest, + true +); + +// Helper function to recursively find the Css namespace +function findCssNamespace(node) { + let cssNode = null; + + function recurse(currentNode) { + if (ts.isModuleDeclaration(currentNode) && currentNode.name.text === 'Css') { + cssNode = currentNode; + } else { + ts.forEachChild(currentNode, child => recurse(child)); + } + } + + recurse(node); + return cssNode; +} + +// Helper function to recursively extract style properties from nested structures within Css namespace +function extractCssProperties(node) { + let styles = []; + + if (ts.isInterfaceDeclaration(node)) { + node.members.forEach(member => { + if (ts.isPropertySignature(member)) { + const name = member.name.text; + styles.push(name); + } + }); + } else { + ts.forEachChild(node, child => { + styles = styles.concat(extractCssProperties(child)); + }); + } + + return styles; +} + +// Find the Css namespace +const cssNamespace = findCssNamespace(sourceFile); + +if (cssNamespace) { + // Extract styles from the Css namespace + const styles = extractCssProperties(cssNamespace); + + // Remove duplicates and sort the styles alphabetically + const uniqueSortedStyles = Array.from(new Set(styles)).sort(); + + // Output the styles as JSON + console.log(JSON.stringify(uniqueSortedStyles, null, 2)); +} else { + console.error('Css namespace not found in the provided TypeScript definition file.'); +} \ No newline at end of file diff --git a/typescript/extract-docs-fns.js b/typescript/extract-docs-fns.js new file mode 100644 index 000000000..82c3e11d5 --- /dev/null +++ b/typescript/extract-docs-fns.js @@ -0,0 +1,55 @@ +const fs = require('fs'); +const path = require('path'); + +// Load and parse the JSON file +const jsonFilePath = path.resolve(__dirname, '..', 'documentation', 'docmaker.json'); +const jsonData = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8')); + +// Helper function to recursively extract functions +function extractFunctions(section) { + let functions = []; + + if (section.fns) { + section.fns.forEach(fn => { + // Add the main function and formats + if (fn.formats) { + fn.formats.forEach(format => { + if (format.name) { + functions.push(format.name); + } else { + functions.push(fn.name); + } + }); + } else { + functions.push(fn.name); + } + + // Add pureAliases the same number of times as the main function + if (fn.pureAliases) { + fn.pureAliases.forEach(alias => { + const count = functions.filter(f => f === fn.name).length; + for (let i = 0; i < count; i++) { + functions.push(alias); + } + }); + } + }); + } + + if (section.sections) { + section.sections.forEach(subSection => { + functions = functions.concat(extractFunctions(subSection)); + }); + } + + return functions; +} + +// Extract functions from the JSON data +const functions = extractFunctions(jsonData); + +// Sort the functions alphabetically +const sortedFunctions = functions.sort(); + +// Output the functions as JSON +console.log(JSON.stringify(sortedFunctions, null, 2)); \ No newline at end of file diff --git a/typescript/extract-docs-style.js b/typescript/extract-docs-style.js new file mode 100644 index 000000000..120e01674 --- /dev/null +++ b/typescript/extract-docs-style.js @@ -0,0 +1,40 @@ +const fs = require('fs'); +const path = require('path'); + +// Load the Markdown file +const markdownFilePath = path.resolve(__dirname, '..', 'documentation', 'md', 'style.md'); +const markdownContent = fs.readFileSync(markdownFilePath, 'utf8'); + +// Define a regex to match the style properties +const stylePropertyRegex = /\*\*`([^`]+)`\*\*/g; + +// Extract style properties +let match; +const styleProperties = []; + +while ((match = stylePropertyRegex.exec(markdownContent)) !== null) { + const property = match[1]; + // Omit entries that have parentheses + if (!property.includes('(')) { + // Handle entries like + if (property.includes('')) { + ['source', 'mid-source', 'target', 'mid-target'].forEach(pos => { + styleProperties.push(property.replace('', pos)); + }); + } else if (property.includes('pie-i')) { + // Handle pie-i properties + styleProperties.push(property); + for (let i = 1; i <= 16; i++) { + styleProperties.push(property.replace('pie-i', `pie-${i}`)); + } + } else { + styleProperties.push(property); + } + } +} + +// Remove duplicates and sort the style properties alphabetically +const uniqueSortedStyleProperties = Array.from(new Set(styleProperties)).sort(); + +// Output the style properties as JSON +console.log(JSON.stringify(uniqueSortedStyleProperties, null, 2)); \ No newline at end of file diff --git a/typescript/output/fns-comm-ts.json b/typescript/output/fns-comm-ts.json new file mode 100644 index 000000000..465227ec3 --- /dev/null +++ b/typescript/output/fns-comm-ts.json @@ -0,0 +1,438 @@ +[ + "ani.apply", + "ani.applying", + "ani.complete", + "ani.completed", + "ani.fastforward", + "ani.pause", + "ani.play", + "ani.playing", + "ani.progress", + "ani.progress", + "ani.promise", + "ani.reverse", + "ani.rewind", + "ani.stop", + "ani.time", + "ani.time", + "cy.$", + "cy.$id", + "cy.add", + "cy.addListener", + "cy.addListener", + "cy.addListener", + "cy.addListener", + "cy.animate", + "cy.animated", + "cy.animation", + "cy.attr", + "cy.attr", + "cy.attr", + "cy.autolock", + "cy.autolock", + "cy.autoungrabify", + "cy.autoungrabify", + "cy.autounselectify", + "cy.autounselectify", + "cy.batch", + "cy.bind", + "cy.bind", + "cy.bind", + "cy.bind", + "cy.boxSelectionEnabled", + "cy.boxSelectionEnabled", + "cy.center", + "cy.centre", + "cy.clearQueue", + "cy.collection", + "cy.container", + "cy.createLayout", + "cy.data", + "cy.data", + "cy.data", + "cy.delay", + "cy.delayAnimation", + "cy.destroy", + "cy.destroyed", + "cy.edges", + "cy.elements", + "cy.emit", + "cy.endBatch", + "cy.extent", + "cy.filter", + "cy.fit", + "cy.forceRender", + "cy.getElementById", + "cy.hasElementWithId", + "cy.height", + "cy.invalidateDimensions", + "cy.jpeg", + "cy.jpeg", + "cy.jpeg", + "cy.jpg", + "cy.jpg", + "cy.jpg", + "cy.json", + "cy.json", + "cy.layout", + "cy.listen", + "cy.listen", + "cy.listen", + "cy.listen", + "cy.makeLayout", + "cy.maxZoom", + "cy.maxZoom", + "cy.minZoom", + "cy.minZoom", + "cy.mount", + "cy.nodes", + "cy.off", + "cy.off", + "cy.off", + "cy.on", + "cy.on", + "cy.on", + "cy.on", + "cy.one", + "cy.one", + "cy.one", + "cy.one", + "cy.pan", + "cy.pan", + "cy.panBy", + "cy.panningEnabled", + "cy.panningEnabled", + "cy.png", + "cy.png", + "cy.png", + "cy.pon", + "cy.promiseOn", + "cy.ready", + "cy.remove", + "cy.removeAllListeners", + "cy.removeAttr", + "cy.removeData", + "cy.removeListener", + "cy.removeListener", + "cy.removeListener", + "cy.removeScratch", + "cy.reset", + "cy.resize", + "cy.scratch", + "cy.scratch", + "cy.selectionType", + "cy.selectionType", + "cy.startBatch", + "cy.stop", + "cy.style", + "cy.trigger", + "cy.unbind", + "cy.unbind", + "cy.unbind", + "cy.unlisten", + "cy.unlisten", + "cy.unlisten", + "cy.unmount", + "cy.userPanningEnabled", + "cy.userPanningEnabled", + "cy.userZoomingEnabled", + "cy.userZoomingEnabled", + "cy.viewport", + "cy.width", + "cy.zoom", + "cy.zoom", + "cy.zoomingEnabled", + "edge.controlPoints", + "edge.isLoop", + "edge.isSimple", + "edge.midpoint", + "edge.segmentPoints", + "edge.source", + "edge.sourceEndpoint", + "edge.target", + "edge.targetEndpoint", + "edges.codirectedEdges", + "edges.connectedNodes", + "edges.parallelEdges", + "edges.sources", + "edges.targets", + "ele.active", + "ele.animated", + "ele.animation", + "ele.cy", + "ele.delayAnimation", + "ele.effectiveOpacity", + "ele.group", + "ele.hasClass", + "ele.height", + "ele.hidden", + "ele.id", + "ele.inside", + "ele.isEdge", + "ele.isNode", + "ele.json", + "ele.numericStyle", + "ele.numericStyleUnits", + "ele.outerHeight", + "ele.outerWidth", + "ele.removeScratch", + "ele.removed", + "ele.renderedCss", + "ele.renderedCss", + "ele.renderedHeight", + "ele.renderedOuterHeight", + "ele.renderedOuterWidth", + "ele.renderedStyle", + "ele.renderedStyle", + "ele.renderedWidth", + "ele.scratch", + "ele.scratch", + "ele.selectable", + "ele.selected", + "ele.transparent", + "ele.visible", + "ele.width", + "eles.$id", + "eles.aStar", + "eles.abscomp", + "eles.absoluteComplement", + "eles.addClass", + "eles.addListener", + "eles.addListener", + "eles.allAre", + "eles.allAreNeighbors", + "eles.allAreNeighbours", + "eles.animate", + "eles.anySame", + "eles.attr", + "eles.attr", + "eles.attr", + "eles.bellmanFord", + "eles.betweennessCentrality", + "eles.bfs", + "eles.bind", + "eles.bind", + "eles.boundingBox", + "eles.boundingbox", + "eles.breadthFirstSearch", + "eles.classes", + "eles.classes", + "eles.classes", + "eles.clearQueue", + "eles.clone", + "eles.closedNeighborhood", + "eles.closenessCentrality", + "eles.closenessCentralityNormalized", + "eles.complement", + "eles.components", + "eles.contains", + "eles.copy", + "eles.createLayout", + "eles.css", + "eles.css", + "eles.css", + "eles.css", + "eles.data", + "eles.data", + "eles.data", + "eles.degreeCentrality", + "eles.degreeCentralityNormalized", + "eles.delay", + "eles.depthFirstSearch", + "eles.deselect", + "eles.dfs", + "eles.diff", + "eles.dijkstra", + "eles.each", + "eles.edges", + "eles.emit", + "eles.empty", + "eles.eq", + "eles.every", + "eles.filter", + "eles.first", + "eles.flashClass", + "eles.floydWarshall", + "eles.forEach", + "eles.getElementById", + "eles.has", + "eles.hopcroftTarjanBiconnected", + "eles.hopcroftTarjanBiconnectedComponents", + "eles.htb", + "eles.htbc", + "eles.is", + "eles.jsons", + "eles.kargerStein", + "eles.kruskal", + "eles.last", + "eles.layout", + "eles.listen", + "eles.listen", + "eles.makeLayout", + "eles.map", + "eles.max", + "eles.merge", + "eles.min", + "eles.move", + "eles.move", + "eles.neighborhood", + "eles.nodes", + "eles.nonempty", + "eles.off", + "eles.on", + "eles.on", + "eles.once", + "eles.once", + "eles.once", + "eles.one", + "eles.one", + "eles.one", + "eles.openNeighborhood", + "eles.pageRank", + "eles.pon", + "eles.promiseOn", + "eles.reduce", + "eles.remove", + "eles.removeAllListeners", + "eles.removeAttr", + "eles.removeClass", + "eles.removeData", + "eles.removeListener", + "eles.removeStyle", + "eles.renderedBoundingBox", + "eles.renderedBoundingbox", + "eles.restore", + "eles.same", + "eles.select", + "eles.selectify", + "eles.size", + "eles.slice", + "eles.some", + "eles.sort", + "eles.stop", + "eles.style", + "eles.style", + "eles.style", + "eles.style", + "eles.tarjanStronglyConnected", + "eles.tarjanStronglyConnectedComponents", + "eles.toArray", + "eles.toggleClass", + "eles.trigger", + "eles.tsc", + "eles.tscc", + "eles.unbind", + "eles.undefined", + "eles.unlisten", + "eles.unmerge", + "eles.unselect", + "eles.unselectify", + "event.isDefaultPrevented", + "event.isImmediatePropagationStopped", + "event.isPropagationStopped", + "event.preventDefault", + "event.stopImmediatePropagation", + "event.stopPropagation", + "layout.addListener", + "layout.addListener", + "layout.bind", + "layout.bind", + "layout.listen", + "layout.listen", + "layout.off", + "layout.on", + "layout.on", + "layout.one", + "layout.one", + "layout.pon", + "layout.promiseOn", + "layout.removeAllListeners", + "layout.removeListener", + "layout.run", + "layout.start", + "layout.stop", + "layout.trigger", + "layout.unbind", + "layout.unlisten", + "node.degree", + "node.grabbable", + "node.grabbed", + "node.indegree", + "node.isChild", + "node.isChildless", + "node.isOrphan", + "node.isParent", + "node.layoutDimensions", + "node.locked", + "node.modelPosition", + "node.modelPosition", + "node.modelPosition", + "node.modelPosition", + "node.outdegree", + "node.point", + "node.point", + "node.point", + "node.point", + "node.position", + "node.position", + "node.position", + "node.position", + "node.relativePoint", + "node.relativePoint", + "node.relativePoint", + "node.relativePosition", + "node.relativePosition", + "node.relativePosition", + "node.renderedPoint", + "node.renderedPoint", + "node.renderedPoint", + "node.renderedPosition", + "node.renderedPosition", + "node.renderedPosition", + "nodes.ancestors", + "nodes.children", + "nodes.commonAncestors", + "nodes.connectedEdges", + "nodes.descendants", + "nodes.edgesTo", + "nodes.edgesWith", + "nodes.grabify", + "nodes.incomers", + "nodes.layoutPositions", + "nodes.leaves", + "nodes.lock", + "nodes.maxDegree", + "nodes.maxIndegree", + "nodes.maxOutdegree", + "nodes.minDegree", + "nodes.minIndegree", + "nodes.minOutdegree", + "nodes.modelPositions", + "nodes.nonorphans", + "nodes.orphans", + "nodes.outgoers", + "nodes.parent", + "nodes.parents", + "nodes.points", + "nodes.positions", + "nodes.predecessors", + "nodes.roots", + "nodes.shift", + "nodes.shift", + "nodes.siblings", + "nodes.successors", + "nodes.totalDegree", + "nodes.ungrabify", + "nodes.unlock", + "style.append", + "style.clear", + "style.fromJson", + "style.fromString", + "style.json", + "style.resetToDefault", + "style.selector", + "style.style", + "style.style", + "style.update", + "stylesheet.json" +] diff --git a/typescript/output/fns-docs.json b/typescript/output/fns-docs.json new file mode 100644 index 000000000..ebfd68916 --- /dev/null +++ b/typescript/output/fns-docs.json @@ -0,0 +1,487 @@ +[ + "ani.apply", + "ani.applying", + "ani.complete", + "ani.completed", + "ani.fastforward", + "ani.pause", + "ani.play", + "ani.playing", + "ani.progress", + "ani.progress", + "ani.promise", + "ani.promise", + "ani.reverse", + "ani.rewind", + "ani.run", + "ani.running", + "ani.stop", + "ani.time", + "ani.time", + "cy.$", + "cy.$id", + "cy.add", + "cy.add", + "cy.add", + "cy.addListener", + "cy.animate", + "cy.animated", + "cy.animation", + "cy.attr", + "cy.attr", + "cy.attr", + "cy.attr", + "cy.autolock", + "cy.autolock", + "cy.autoungrabify", + "cy.autoungrabify", + "cy.autounselectify", + "cy.autounselectify", + "cy.batch", + "cy.bind", + "cy.boxSelectionEnabled", + "cy.boxSelectionEnabled", + "cy.center", + "cy.center", + "cy.centre", + "cy.centre", + "cy.clearQueue", + "cy.collection", + "cy.collection", + "cy.container", + "cy.createLayout", + "cy.data", + "cy.data", + "cy.data", + "cy.data", + "cy.delay", + "cy.delayAnimation", + "cy.destroy", + "cy.destroyed", + "cy.edges", + "cy.elements", + "cy.emit", + "cy.endBatch", + "cy.extent", + "cy.filter", + "cy.filter", + "cy.fit", + "cy.fit", + "cy.getElementById", + "cy.height", + "cy.invalidateDimensions", + "cy.jpeg", + "cy.jpg", + "cy.json", + "cy.json", + "cy.layout", + "cy.listen", + "cy.makeLayout", + "cy.maxZoom", + "cy.maxZoom", + "cy.minZoom", + "cy.minZoom", + "cy.mount", + "cy.nodes", + "cy.off", + "cy.on", + "cy.one", + "cy.pan", + "cy.pan", + "cy.panBy", + "cy.panningEnabled", + "cy.panningEnabled", + "cy.png", + "cy.pon", + "cy.promiseOn", + "cy.ready", + "cy.remove", + "cy.remove", + "cy.removeAllListeners", + "cy.removeAttr", + "cy.removeAttr", + "cy.removeData", + "cy.removeData", + "cy.removeListener", + "cy.removeScratch", + "cy.renderedExtent", + "cy.reset", + "cy.resize", + "cy.scratch", + "cy.scratch", + "cy.scratch", + "cy.selectionType", + "cy.selectionType", + "cy.startBatch", + "cy.stop", + "cy.style", + "cy.style", + "cy.trigger", + "cy.unbind", + "cy.unlisten", + "cy.unmount", + "cy.userPanningEnabled", + "cy.userPanningEnabled", + "cy.userZoomingEnabled", + "cy.userZoomingEnabled", + "cy.viewport", + "cy.width", + "cy.zoom", + "cy.zoom", + "cy.zoom", + "cy.zoomingEnabled", + "cy.zoomingEnabled", + "edge.controlPoints", + "edge.isLoop", + "edge.isSimple", + "edge.midpoint", + "edge.renderedControlPoints", + "edge.renderedMidpoint", + "edge.renderedSegmentPoints", + "edge.renderedSourceEndpoint", + "edge.renderedTargetEndpoint", + "edge.segmentPoints", + "edge.source", + "edge.sourceEndpoint", + "edge.target", + "edge.targetEndpoint", + "edges.codirectedEdges", + "edges.connectedNodes", + "edges.move", + "edges.parallelEdges", + "edges.sources", + "edges.targets", + "ele.active", + "ele.animated", + "ele.animation", + "ele.classes", + "ele.component", + "ele.cy", + "ele.data", + "ele.data", + "ele.data", + "ele.data", + "ele.delayAnimation", + "ele.effectiveOpacity", + "ele.group", + "ele.hasClass", + "ele.height", + "ele.hidden", + "ele.id", + "ele.inside", + "ele.isEdge", + "ele.isNode", + "ele.json", + "ele.json", + "ele.numericStyle", + "ele.numericStyleUnits", + "ele.outerHeight", + "ele.outerWidth", + "ele.pannable", + "ele.removeScratch", + "ele.removed", + "ele.renderedHeight", + "ele.renderedOuterHeight", + "ele.renderedOuterWidth", + "ele.renderedWidth", + "ele.scratch", + "ele.scratch", + "ele.scratch", + "ele.selectable", + "ele.selected", + "ele.style", + "ele.style", + "ele.transparent", + "ele.visible", + "ele.width", + "eles.$id", + "eles.aStar", + "eles.abscomp", + "eles.absoluteComplement", + "eles.add", + "eles.add", + "eles.addClass", + "eles.addListener", + "eles.allAre", + "eles.allAreNeighbors", + "eles.allAreNeighbours", + "eles.and", + "eles.and", + "eles.animate", + "eles.anySame", + "eles.bb", + "eles.bc", + "eles.bellmanFord", + "eles.betweennessCentrality", + "eles.bfs", + "eles.bind", + "eles.boundingBox", + "eles.boundingbox", + "eles.breadthFirstSearch", + "eles.cc", + "eles.ccn", + "eles.className", + "eles.classNames", + "eles.classes", + "eles.clearQueue", + "eles.clone", + "eles.closedNeighborhood", + "eles.closenessCentrality", + "eles.closenessCentralityNormalised", + "eles.closenessCentralityNormalized", + "eles.complement", + "eles.components", + "eles.componentsOf", + "eles.contains", + "eles.copy", + "eles.createLayout", + "eles.css", + "eles.css", + "eles.dc", + "eles.dcn", + "eles.degreeCentrality", + "eles.degreeCentralityNormalised", + "eles.degreeCentralityNormalized", + "eles.delay", + "eles.depthFirstSearch", + "eles.deselect", + "eles.dfs", + "eles.diff", + "eles.diff", + "eles.difference", + "eles.difference", + "eles.dijkstra", + "eles.each", + "eles.edges", + "eles.emit", + "eles.empty", + "eles.eq", + "eles.every", + "eles.filter", + "eles.filter", + "eles.first", + "eles.flashClass", + "eles.floydWarshall", + "eles.forEach", + "eles.getElementById", + "eles.has", + "eles.hierholzer", + "eles.hopcroftTarjanBiconnected", + "eles.hopcroftTarjanBiconnectedComponents", + "eles.htb", + "eles.htbc", + "eles.intersect", + "eles.intersect", + "eles.intersection", + "eles.intersection", + "eles.is", + "eles.jsons", + "eles.kargerStein", + "eles.kruskal", + "eles.last", + "eles.layout", + "eles.listen", + "eles.makeLayout", + "eles.map", + "eles.markovClustering", + "eles.max", + "eles.mcl", + "eles.merge", + "eles.merge", + "eles.min", + "eles.neighborhood", + "eles.nodes", + "eles.nonempty", + "eles.not", + "eles.not", + "eles.off", + "eles.on", + "eles.once", + "eles.one", + "eles.openNeighborhood", + "eles.or", + "eles.or", + "eles.pageRank", + "eles.panify", + "eles.pon", + "eles.promiseOn", + "eles.reduce", + "eles.relativeComplement", + "eles.relativeComplement", + "eles.remove", + "eles.removeAllListeners", + "eles.removeAttr", + "eles.removeAttr", + "eles.removeClass", + "eles.removeData", + "eles.removeData", + "eles.removeListener", + "eles.removeStyle", + "eles.removeStyle", + "eles.renderedBoundingBox", + "eles.renderedBoundingbox", + "eles.restore", + "eles.same", + "eles.select", + "eles.selectify", + "eles.size", + "eles.slice", + "eles.some", + "eles.sort", + "eles.stop", + "eles.style", + "eles.style", + "eles.subtract", + "eles.subtract", + "eles.symdiff", + "eles.symdiff", + "eles.symmetricDifference", + "eles.symmetricDifference", + "eles.tarjanStronglyConnected", + "eles.tarjanStronglyConnectedComponents", + "eles.toArray", + "eles.toggleClass", + "eles.trigger", + "eles.tsc", + "eles.tscc", + "eles.unbind", + "eles.union", + "eles.union", + "eles.unlisten", + "eles.unmerge", + "eles.unmerge", + "eles.unpanify", + "eles.unselect", + "eles.unselectify", + "eles.xor", + "eles.xor", + "eles['!']", + "eles['!']", + "eles['&']", + "eles['&']", + "eles['(+)']", + "eles['(+)']", + "eles['(-)']", + "eles['(-)']", + "eles['+']", + "eles['+']", + "eles['-']", + "eles['-']", + "eles['.']", + "eles['.']", + "eles['\\\\']", + "eles['\\\\']", + "eles['^']", + "eles['^']", + "eles['n']", + "eles['n']", + "eles['u']", + "eles['u']", + "eles['|']", + "eles['|']", + "layout.addListener", + "layout.bind", + "layout.emit", + "layout.listen", + "layout.off", + "layout.on", + "layout.one", + "layout.pon", + "layout.promiseOn", + "layout.removeAllListeners", + "layout.removeListener", + "layout.run", + "layout.start", + "layout.stop", + "layout.trigger", + "layout.unbind", + "layout.unlisten", + "node.degree", + "node.grabbable", + "node.grabbed", + "node.indegree", + "node.isChild", + "node.isChildless", + "node.isOrphan", + "node.isParent", + "node.layoutDimensions", + "node.locked", + "node.modelPosition", + "node.modelPosition", + "node.modelPosition", + "node.modelPosition", + "node.outdegree", + "node.point", + "node.point", + "node.point", + "node.point", + "node.position", + "node.position", + "node.position", + "node.position", + "node.relativePoint", + "node.relativePoint", + "node.relativePoint", + "node.relativePoint", + "node.relativePosition", + "node.relativePosition", + "node.relativePosition", + "node.relativePosition", + "node.renderedPoint", + "node.renderedPoint", + "node.renderedPoint", + "node.renderedPoint", + "node.renderedPosition", + "node.renderedPosition", + "node.renderedPosition", + "node.renderedPosition", + "nodes.affinityPropagation", + "nodes.ancestors", + "nodes.ap", + "nodes.children", + "nodes.commonAncestors", + "nodes.connectedEdges", + "nodes.descendants", + "nodes.edgesTo", + "nodes.edgesTo", + "nodes.edgesWith", + "nodes.edgesWith", + "nodes.fcm", + "nodes.fuzzyCMeans", + "nodes.grabify", + "nodes.hca", + "nodes.hierarchicalClustering", + "nodes.incomers", + "nodes.kMeans", + "nodes.kMedoids", + "nodes.layoutPositions", + "nodes.leaves", + "nodes.lock", + "nodes.maxDegree", + "nodes.maxIndegree", + "nodes.maxOutdegree", + "nodes.minDegree", + "nodes.minIndegree", + "nodes.minOutdegree", + "nodes.modelPositions", + "nodes.modelPositions", + "nodes.move", + "nodes.nonorphans", + "nodes.orphans", + "nodes.outgoers", + "nodes.parent", + "nodes.parents", + "nodes.points", + "nodes.points", + "nodes.positions", + "nodes.positions", + "nodes.predecessors", + "nodes.roots", + "nodes.shift", + "nodes.shift", + "nodes.siblings", + "nodes.successors", + "nodes.totalDegree", + "nodes.ungrabify", + "nodes.unlock" +] diff --git a/typescript/output/style-comm-ts.json b/typescript/output/style-comm-ts.json new file mode 100644 index 000000000..e3aa61764 --- /dev/null +++ b/typescript/output/style-comm-ts.json @@ -0,0 +1,197 @@ +[ + "active-bg-color", + "active-bg-opacity", + "active-bg-size", + "arrow-scale", + "background-blacken", + "background-clip", + "background-color", + "background-fit", + "background-height", + "background-height-relative-to", + "background-image", + "background-image-containment", + "background-image-crossorigin", + "background-image-opacity", + "background-image-smoothing", + "background-offset-x", + "background-offset-y", + "background-opacity", + "background-position-x", + "background-position-y", + "background-repeat", + "background-width", + "background-width-relative-to", + "backgroundColor", + "border-color", + "border-opacity", + "border-style", + "border-width", + "bounds-expansion", + "color", + "content", + "control-point-distance", + "control-point-distances", + "control-point-step-size", + "control-point-weight", + "control-point-weights", + "curve-style", + "display", + "edge-distances", + "events", + "font-family", + "font-size", + "font-style", + "font-weight", + "ghost", + "ghost-offset-x", + "ghost-offset-y", + "ghost-opacity", + "haystack-radius", + "height", + "label", + "line-cap", + "line-color", + "line-dash-offset", + "line-dash-pattern", + "line-fill", + "line-gradient-stop-colors", + "line-gradient-stop-positions", + "line-height", + "line-opacity", + "line-style", + "loop-direction", + "loop-sweep", + "mid-source-arrow-color", + "mid-source-arrow-fill", + "mid-source-arrow-shape", + "mid-target-arrow-color", + "mid-target-arrow-fill", + "mid-target-arrow-shape", + "min-zoomed-font-size", + "opacity", + "outside-texture-bg-color", + "outside-texture-bg-opacity", + "overlay-color", + "overlay-opacity", + "overlay-padding", + "padding-bottom", + "padding-left", + "padding-right", + "padding-top", + "pie-1-background-color", + "pie-1-background-opacity", + "pie-1-background-size", + "pie-10-background-color", + "pie-10-background-opacity", + "pie-10-background-size", + "pie-11-background-color", + "pie-11-background-opacity", + "pie-11-background-size", + "pie-12-background-color", + "pie-12-background-opacity", + "pie-12-background-size", + "pie-13-background-color", + "pie-13-background-opacity", + "pie-13-background-size", + "pie-14-background-color", + "pie-14-background-opacity", + "pie-14-background-size", + "pie-15-background-color", + "pie-15-background-opacity", + "pie-15-background-size", + "pie-16-background-color", + "pie-16-background-opacity", + "pie-16-background-size", + "pie-2-background-color", + "pie-2-background-opacity", + "pie-2-background-size", + "pie-3-background-color", + "pie-3-background-opacity", + "pie-3-background-size", + "pie-4-background-color", + "pie-4-background-opacity", + "pie-4-background-size", + "pie-5-background-color", + "pie-5-background-opacity", + "pie-5-background-size", + "pie-6-background-color", + "pie-6-background-opacity", + "pie-6-background-size", + "pie-7-background-color", + "pie-7-background-opacity", + "pie-7-background-size", + "pie-8-background-color", + "pie-8-background-opacity", + "pie-8-background-size", + "pie-9-background-color", + "pie-9-background-opacity", + "pie-9-background-size", + "pie-i-background-color", + "pie-i-background-opacity", + "pie-i-background-size", + "pie-size", + "segment-distances", + "segment-weights", + "selection-box-border-color", + "selection-box-border-width", + "selection-box-color", + "selection-box-opacity", + "shape", + "shape-polygon-points", + "source-arrow-color", + "source-arrow-fill", + "source-arrow-shape", + "source-distance-from-node", + "source-endpoint", + "source-label", + "source-text-margin-x", + "source-text-margin-y", + "source-text-offset", + "source-text-rotation", + "target-arrow-color", + "target-arrow-fill", + "target-arrow-shape", + "target-distance-from-node", + "target-endpoint", + "target-label", + "target-text-margin-x", + "target-text-margin-y", + "target-text-offset", + "target-text-rotation", + "taxi-direction", + "taxi-turn", + "taxi-turn-min-distance", + "text-background-color", + "text-background-opacity", + "text-background-padding", + "text-background-shape", + "text-border-color", + "text-border-opacity", + "text-border-style", + "text-border-width", + "text-events", + "text-halign", + "text-justification", + "text-margin-x", + "text-margin-y", + "text-max-width", + "text-opacity", + "text-outline-color", + "text-outline-opacity", + "text-outline-width", + "text-overflow-wrap", + "text-rotation", + "text-transform", + "text-valign", + "text-wrap", + "transition-delay", + "transition-duration", + "transition-property", + "transition-timing-function", + "visibility", + "width", + "z-compound-depth", + "z-index", + "z-index-compare" +] diff --git a/typescript/output/style-docs.json b/typescript/output/style-docs.json new file mode 100644 index 000000000..c23969add --- /dev/null +++ b/typescript/output/style-docs.json @@ -0,0 +1,232 @@ +[ + "active-bg-color", + "active-bg-opacity", + "active-bg-size", + "arrow-scale", + "average", + "background-blacken", + "background-clip", + "background-color", + "background-fill", + "background-fit", + "background-gradient-direction", + "background-gradient-stop-colors", + "background-gradient-stop-positions", + "background-height", + "background-height-relative-to", + "background-image", + "background-image-containment", + "background-image-crossorigin", + "background-image-opacity", + "background-image-smoothing", + "background-offset-x", + "background-offset-y", + "background-opacity", + "background-position-x", + "background-position-y", + "background-repeat", + "background-width", + "background-width-relative-to", + "border-cap", + "border-color", + "border-dash-offset", + "border-dash-pattern", + "border-join", + "border-opacity", + "border-position", + "border-style", + "border-width", + "bounds-expansion", + "color", + "compound-sizing-wrt-labels", + "control-point-distance", + "control-point-distances", + "control-point-step-size", + "control-point-weight", + "control-point-weights", + "corner-radius", + "curve-style", + "display", + "edge-distances", + "events", + "font-family", + "font-size", + "font-style", + "font-weight", + "ghost", + "ghost-offset-x", + "ghost-offset-y", + "ghost-opacity", + "haystack-radius", + "height", + "label", + "line-cap", + "line-color", + "line-dash-offset", + "line-dash-pattern", + "line-fill", + "line-gradient-stop-colors", + "line-gradient-stop-positions", + "line-height", + "line-opacity", + "line-outline-color", + "line-outline-width", + "line-style", + "loop-direction", + "loop-sweep", + "max", + "mid-source-arrow-color", + "mid-source-arrow-fill", + "mid-source-arrow-shape", + "mid-source-arrow-width", + "mid-target-arrow-color", + "mid-target-arrow-fill", + "mid-target-arrow-shape", + "mid-target-arrow-width", + "min", + "min-height", + "min-height-bias-bottom", + "min-height-bias-top", + "min-width", + "min-width-bias-left", + "min-width-bias-right", + "min-zoomed-font-size", + "opacity", + "outline-color", + "outline-offset", + "outline-opacity", + "outline-style", + "outline-width", + "outside-texture-bg-color", + "outside-texture-bg-opacity", + "overlay-color", + "overlay-opacity", + "overlay-padding", + "overlay-shape", + "padding", + "padding-relative-to", + "pie-1-background-color", + "pie-1-background-opacity", + "pie-1-background-size", + "pie-10-background-color", + "pie-10-background-opacity", + "pie-10-background-size", + "pie-11-background-color", + "pie-11-background-opacity", + "pie-11-background-size", + "pie-12-background-color", + "pie-12-background-opacity", + "pie-12-background-size", + "pie-13-background-color", + "pie-13-background-opacity", + "pie-13-background-size", + "pie-14-background-color", + "pie-14-background-opacity", + "pie-14-background-size", + "pie-15-background-color", + "pie-15-background-opacity", + "pie-15-background-size", + "pie-16-background-color", + "pie-16-background-opacity", + "pie-16-background-size", + "pie-2-background-color", + "pie-2-background-opacity", + "pie-2-background-size", + "pie-3-background-color", + "pie-3-background-opacity", + "pie-3-background-size", + "pie-4-background-color", + "pie-4-background-opacity", + "pie-4-background-size", + "pie-5-background-color", + "pie-5-background-opacity", + "pie-5-background-size", + "pie-6-background-color", + "pie-6-background-opacity", + "pie-6-background-size", + "pie-7-background-color", + "pie-7-background-opacity", + "pie-7-background-size", + "pie-8-background-color", + "pie-8-background-opacity", + "pie-8-background-size", + "pie-9-background-color", + "pie-9-background-opacity", + "pie-9-background-size", + "pie-i-background-color", + "pie-i-background-opacity", + "pie-i-background-size", + "pie-size", + "radius-type", + "segment-distances", + "segment-radii", + "segment-weights", + "selection-box-border-color", + "selection-box-border-width", + "selection-box-color", + "selection-box-opacity", + "shape", + "shape-polygon-points", + "source-arrow-color", + "source-arrow-fill", + "source-arrow-shape", + "source-arrow-width", + "source-distance-from-node", + "source-endpoint", + "source-label", + "source-text-margin-x", + "source-text-margin-y", + "source-text-offset", + "source-text-rotation", + "target-arrow-color", + "target-arrow-fill", + "target-arrow-shape", + "target-arrow-width", + "target-distance-from-node", + "target-endpoint", + "target-label", + "target-text-margin-x", + "target-text-margin-y", + "target-text-offset", + "target-text-rotation", + "taxi-direction", + "taxi-radius", + "taxi-turn", + "taxi-turn-min-distance", + "text-background-color", + "text-background-opacity", + "text-background-padding", + "text-background-shape", + "text-border-color", + "text-border-opacity", + "text-border-style", + "text-border-width", + "text-events", + "text-halign", + "text-justification", + "text-margin-x", + "text-margin-y", + "text-max-width", + "text-opacity", + "text-outline-color", + "text-outline-opacity", + "text-outline-width", + "text-overflow-wrap", + "text-rotation", + "text-transform", + "text-valign", + "text-wrap", + "transition-delay", + "transition-duration", + "transition-property", + "transition-timing-function", + "underlay-color", + "underlay-opacity", + "underlay-padding", + "underlay-shape", + "visibility", + "width", + "z-compound-depth", + "z-index", + "z-index-compare" +]