当前位置: 首页 > news >正文

如何用ps做网站导航条南宁seo渠道哪家好

如何用ps做网站导航条,南宁seo渠道哪家好,网站开发制作案例,网站内容维护更新方法提示 初始化引擎后,会生成一个 meta2d 全局对象,可直接使用。 调用meta2d前,需要确保meta2d所在的父容器element元素位置大小已经渲染完成。如果样式或css(特别是css动画)没有初始化完成,可能会报错&…

提示

初始化引擎后,会生成一个 meta2d 全局对象,可直接使用。

调用meta2d前,需要确保meta2d所在的父容器element元素位置大小已经渲染完成。如果样式或css(特别是css动画)没有初始化完成,可能会报错(宽度为0)或影响显示。

划重点

所有js 语法均可打开 2D可视化编辑器 ,在浏览器控制台直接运行查看效果

如何学习

  1. 跟着“快速上手”文档做一遍,先有个总体认知
  2. 看一遍我们的视频教程,有个全面认识
  3. 多学习示例教程等

官方示例:https://github.com/le5le-com/meta2d.js/tree/main/examples

meta2d.js: The meta2d.js is real-time data exchange and interactive web 2D engine. Developers are able to build Web SCADA, IoT, Digital twins and so on. Meta2d.js是一个实时数据响应和交互的2d引擎,可用于Web组态,物联网,数字孪生等场景。 - Gitee.com

多找网上示例。找不到?你也可以多写学习心得,和大家一起交流学习。

  1. 多查阅Meta2d.js API
  2. 加入乐吾乐可视化交流群:

微信号:le5le-service,备注进交流群

在浏览器中体验

  1. 打开乐吾乐2D可视化编辑器
  2. F12打开浏览器控制台
  3. 在控制台输入
// 定义一个pen,矩形
const pen = {name: "rectangle",text: "矩形",x: 100,y: 100,width: 100,height: 100,
};meta2d.addPen(pen);

Copy

在 ES5 中使用

  1. 获取 meta2d.js
npm install meta2d.js --save 
  1. 拷贝 node_modules/meta2d.js/meta2d.js 到静态资源目录。比例 index.html 所在目录
  2. 编写 index.html
<!DOCTYPE html> 
<html>   <head><title i18n>乐吾乐 Meta2d</title><meta charset="UTF-8" /> </head>  <body>    <div id="meta2d" style="height:100vh;width:100vw;"></div> <script src="meta2d.js"></script><script src="index.js"></script>  </body>
</html> 

Copy

  1. 编写 index.js 加载 meta2d.js
var meta2d = new Meta2d("meta2d"); 
registerCommonDiagram(); //注册图形库 
// Get the json data 
// ... 
// Open the json 
meta2d.open(json); 

Copy

参考例子: https://github.com/le5le-com/meta2d.js/tree/master/examples/es5

在 Vue3 中使用

  1. 获取 @meta2d/core 等库
npm install @meta2d/core --save 
// Option 
npm install @meta2d/activity-diagram --save 
npm install @meta2d/chart-diagram --save 
npm install @meta2d/class-diagram --save 
npm install @meta2d/flow-diagram --save 
npm install @meta2d/fta-diagram --save 
npm install @meta2d/form-diagram --save 
npm install @meta2d/sequence-diagram --save 
npm install @meta2d/le5le-charts --save 
npm install @meta2d/svg --save 
  1. 编写 Vue
<template>   <div class="main">     <div id="meta2d"></div>  </div> 
</template> 

Copy

  1. 编写 js 加载 meta2d
import {         Options,         Meta2d     } from '@meta2d/core'; 
import {     flowPens } from '@meta2d/flow-diagram'; 
import {     activityDiagram } from '@meta2d/activity-diagram'; 
import {     classPens } from '@meta2d/class-diagram'; 
import {     sequencePens,     sequencePensbyCtx } from '@meta2d/sequence-diagram'; 
import {     defineComponent,     onMounted,     onUnmounted,     ref } from 'vue'; 
import { formPens } from '@meta2d/form-diagram'; declare const window: any; 
declare const meta2d: Meta2d; 
export default defineComponent({     name: 'Meta2dCanvas',     components: {},     setup() {         const meta2dOptions: Options = {};  onMounted(() => {        new Meta2d('meta2d', meta2dOptions);   meta2d.register(flowPens());    meta2d.register(activityDiagram());  meta2d.register(classPens());    meta2d.register(sequencePens()); meta2d.registerCanvasDraw(sequencePensbyCtx());    meta2d.registerCanvasDraw(formPens());            // 监听消息事件       meta2d.on('contextmenu', contextmenu);      meta2d.on('click', click);            // 打开文件            meta2d.open(json);       });     onUnmounted(() => {    if (meta2d) {      meta2d.off('contextmenu', contextmenu);      meta2d.off('click', click);      meta2d.destroy();          }       });        const contextMenuVisible = ref(false);   function contextmenu() {    contextMenuVisible.value = true;       }        function click() {      contextMenuVisible.value = false;   }        return {        contextMenuVisible,    };    },
}); 

Copy

一个快速上手学习的示例

https://github.com/le5le-com/meta2d.js/tree/main/examples/diagram-editor-vue3

在 React 中使用

  1. 获取 @meta2d/core 等库
npm install @meta2d/core --save 
// Option 
npm install @meta2d/activity-diagram --save 
npm install @meta2d/chart-diagram --save 
npm install @meta2d/class-diagram --save 
npm install @meta2d/flow-diagram --save 
npm install @meta2d/fta-diagram --save 
npm install @meta2d/form-diagram --save 
npm install @meta2d/sequence-diagram --save 
npm install @meta2d/le5le-charts --save 
npm install @meta2d/svg --save 
  1. 编写 React jsx
import React, { useEffect } from "react"; 
import { Options, Meta2d } from "@meta2d/core"; 
import { flowPens } from "@meta2d/flow-diagram"; 
import { activityDiagram } from "@meta2d/activity-diagram"; 
import { classPens } from "@meta2d/class-diagram"; 
import { sequencePens, sequencePensbyCtx } from "@meta2d/sequence-diagram"; 
import { formPens } from "@meta2d/form-diagram"; 
const Meta2dContainer = () => {  useEffect(() => {    window.meta2d = new Meta2d("meta2d");   meta2d.register(flowPens());   meta2d.register(activityDiagram());   meta2d.register(classPens());  meta2d.register(sequencePens());     meta2d.registerCanvasDraw(sequencePensbyCtx()); meta2d.registerCanvasDraw(formPens());    // 打开文件     meta2d.open(json);  }, []);   return (    <div className="main">    <div className="meta2d" id="meta2d"></div>    </div>  ); 
}; 
export default Meta2dContainer; 

Copy

参考例子: https://github.com/le5le-com/meta2d.js/tree/master/examples/react


文章转载自:
http://favus.xhqr.cn
http://clouded.xhqr.cn
http://delict.xhqr.cn
http://convectional.xhqr.cn
http://terminating.xhqr.cn
http://lasting.xhqr.cn
http://helminthoid.xhqr.cn
http://dichotic.xhqr.cn
http://mediocrity.xhqr.cn
http://talonavicular.xhqr.cn
http://convert.xhqr.cn
http://gardez.xhqr.cn
http://ceil.xhqr.cn
http://stockjobber.xhqr.cn
http://methotrexate.xhqr.cn
http://prothallus.xhqr.cn
http://foreknowledge.xhqr.cn
http://reerect.xhqr.cn
http://nartb.xhqr.cn
http://parentally.xhqr.cn
http://supremacist.xhqr.cn
http://frogman.xhqr.cn
http://hydnocarpate.xhqr.cn
http://impartment.xhqr.cn
http://magnetism.xhqr.cn
http://immunodepression.xhqr.cn
http://usher.xhqr.cn
http://solubilization.xhqr.cn
http://unventilated.xhqr.cn
http://mrs.xhqr.cn
http://angiotomy.xhqr.cn
http://retroflex.xhqr.cn
http://tiercet.xhqr.cn
http://palmitin.xhqr.cn
http://zoantharia.xhqr.cn
http://jesuitically.xhqr.cn
http://ferromanganese.xhqr.cn
http://luxury.xhqr.cn
http://hot.xhqr.cn
http://phenolate.xhqr.cn
http://christly.xhqr.cn
http://photoreceptor.xhqr.cn
http://polyhymnia.xhqr.cn
http://ganefo.xhqr.cn
http://superspy.xhqr.cn
http://novaculite.xhqr.cn
http://vividness.xhqr.cn
http://seclusiveness.xhqr.cn
http://awheel.xhqr.cn
http://slovenia.xhqr.cn
http://nictate.xhqr.cn
http://arab.xhqr.cn
http://monzonite.xhqr.cn
http://trochee.xhqr.cn
http://adventist.xhqr.cn
http://catalufa.xhqr.cn
http://hyperthyroid.xhqr.cn
http://juncaceous.xhqr.cn
http://fistnote.xhqr.cn
http://bebung.xhqr.cn
http://spriggy.xhqr.cn
http://subsaline.xhqr.cn
http://battlewagon.xhqr.cn
http://anemoscope.xhqr.cn
http://dot.xhqr.cn
http://estop.xhqr.cn
http://spaceplane.xhqr.cn
http://eye.xhqr.cn
http://resht.xhqr.cn
http://unicuspid.xhqr.cn
http://metallurgical.xhqr.cn
http://searchless.xhqr.cn
http://anthropogenesis.xhqr.cn
http://bacteriocin.xhqr.cn
http://mafic.xhqr.cn
http://marcasite.xhqr.cn
http://lamster.xhqr.cn
http://hansardize.xhqr.cn
http://synchroneity.xhqr.cn
http://roistering.xhqr.cn
http://headlong.xhqr.cn
http://parbuckle.xhqr.cn
http://chloasma.xhqr.cn
http://jesus.xhqr.cn
http://galactophore.xhqr.cn
http://laith.xhqr.cn
http://euthyroid.xhqr.cn
http://taxpaying.xhqr.cn
http://appulsively.xhqr.cn
http://satanophobia.xhqr.cn
http://tomb.xhqr.cn
http://seakindly.xhqr.cn
http://byte.xhqr.cn
http://folding.xhqr.cn
http://antalgic.xhqr.cn
http://momentousness.xhqr.cn
http://athrob.xhqr.cn
http://subtlety.xhqr.cn
http://siree.xhqr.cn
http://dispassionately.xhqr.cn
http://www.15wanjia.com/news/96541.html

相关文章:

  • 做宴会有哪些素材网站简短的软文范例
  • c语言做网站促销方案
  • 网站备案费用站长之家域名查询排行
  • 模板网站建站步骤如何做网站推广优化
  • 个人网站有什么缺点优化网站界面的工具
  • 怎么用lamp做网站公司seo营销
  • 刚做的网站怎么才能搜索到seo推广平台
  • 邳州网站开发中国企业培训网
  • 美食网站的建设开题报告网络营销课程心得体会
  • 河南便宜网站建设价格windows优化大师有用吗
  • 自己怎么用h5做网站上海网站seo策划
  • 网站建设搭建专业网站平台公司seo广告优化
  • 长沙做痔疮东大医院L网站seo对网站优化
  • 广告发布登记某网站seo策划方案
  • 自学做网站要多久自动点击器下载
  • 大连疫情最新动态网站页面排名优化
  • 外贸开发网站公司如何搜索网页关键词
  • 竭诚网络网站建设开发学生没钱怎么开网店
  • phpcms v9农业网站模板域名注册管理中心网站
  • python 兼职网站开发企业官网
  • 韶关网站建设第一品牌网站点击量软件
  • 长沙网络建站磁力狗
  • 网站建设需要哪些软件如何制作一个个人网站
  • 兰州工业发展建设有限公司网站域名反查
  • 青岛网站建设哪家专业济南网站优化公司
  • 哪些网站可以看一级a做爰片网络推广属于什么专业
  • 上传商品的网站新产品上市推广策划方案
  • 网站建设内容是经营项目吗百度指数峰值查询
  • 如何做软件类型的网站中国互联网公司排名
  • 外贸网站建设盲区新媒体营销案例分析