npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

qrelation

v1.0.134

Published

示例地址:https://zhicheng99.github.io/qrelation/ ``` <template> <div> <div class="lay"> <qrelation v-bind:init-width="'1000'" v-bind:init-height="'1000'" v-bind:json-data="jsonData" v-bind:save-fun="save" ></qrelation> </div>

Downloads

31

Readme

调用示例

示例地址:https://zhicheng99.github.io/qrelation/

<template>
	<div>
		<div class="lay">
			<qrelation
			v-bind:init-width="'1000'"
			v-bind:init-height="'1000'"
			v-bind:json-data="jsonData"
			v-bind:save-fun="save"
			></qrelation>
		</div>
	
	</div>
</template>
<script>
	import qrelation from 'qrelation';
	export default{
		components:{
			qrelation
		},
		props:[],
		data(){
			return {
				jsonData:[
						{
							node:[
								{	
									id:1,     //节点的唯一标识 也有于连线的起终点标识
									nodeId:1, //初始化生成后对应相应的节点对象id 每次都会变
									nodeType:'container',  //容器类型
									x:100,
									y:200,
									text:'容器标题',
									width:230,
									height:160,
									grid:[2,2], //行 列
									child:[

										//容器里的节点不需要坐标  根据grid自动生成
										{	
											id:2,
											nodeType:'node',
											text:'我是容器里的1',
											attr:{
												color:'red'
											}
										},
										{	
											id:3,
											nodeType:'node',
											text:'我是容器里的2',
											attr:{
												color:'red'
											}
										},
										{	
											id:5,
											nodeType:'node',
											text:'我是容器里的3',
											attr:{
												color:'red'
											}

										}

									],
									attr:{
										 titlePosition:'top-center',
										 color:'red', //标题文字的颜色
										 borderColor:'red', 
										 fillColor:'',
										 dashed:false, 
									}
								},
								{	
									id:4,
									nodeType:'node', //普通节点
									x:200,
									y:50,
									text:'标题1',
									attr:{
										 borderColor:'red', 
										 color:'red', 
										 fillColor:'',
										 dashed:true, 
									}
								},
								{	
									id:6,
									nodeType:'node', //普通节点
									x:350,
									y:50,
									text:'标题2',
									attr:{
										 borderColor:'red', 
										 color:'red', 
										 fillColor:'',
										 dashed:true, 
									}
								}

							],
							link:[	 //连线关系  
								{
									fromId:1,
									toId:4,
									attr:{
										text:'连线关系1',
										like:'->'
									}
								},
								{
									fromId:4,
									toId:5,
									attr:{
										text:'连线关系2',
										like:'->'
									}
								}
							] 
						}
				]
			}
		},
		methods:{

			save:function(v){
				console.log(v);
			}

		},
		mounted(){

		},
		created(){
			
		},
		computed:{

		},
		watch:{

		}
	}

</script>
<style scoped>
.lay{
	width: 1000px;
	margin:0 auto;
}

</style>