Socket
Book a DemoInstallSign in
Socket

suanpan-web-renderer

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suanpan-web-renderer

用于渲染算盘页面

latest
npmnpm
Version
0.2.14
Version published
Maintainers
1
Created
Source

算盘渲染器

用于渲染算盘页面

更新内容详见 Release Notes 或者 Github Release

API 列表

组件参数: 类型说明
Graphdomain算盘服务域名/IP 地址
appId待渲染的算盘项目 id
token用于访问算盘后台接口的 token
isInsightEdit是否为insight编辑页面 true为编辑页 false为详情页
onChange当算盘项目数据变更后,触发回调,入参为 DataSystem 类型的组件列表
onBeforeRun运行算盘项目前,触发的回调。返回值为布尔类型,如果返回false,则不会运行算盘项目
Mapurl地图组件数据的地址

示例

加载算盘项目页面

import { Graph, Map } from 'suanpan-web-renderer';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<React.StrictMode>
  <div style={{width: '50%', height: '50%'}}>
    <Graph domain={"https://www.xuelangyun.com"} appId={3109} token={'some_token'} isInsightEdit={true}/>
  </div>
  <div style={{width: '50%', height: '50%'}}>
    <Map url={'some_url'}/>
  </div>
</React.StrictMode>);

FAQs

Package last updated on 31 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.