d3.er's People
d3.er's Issues
再描画するとテーブルの column_instances が倍になる。
export default class DataManeger {
injectTable2ColumnInstances (tables, column_instances, relashonships) {
let table_ht = tables.ht;
for (var i in column_instances.list) {
let column_instance = column_instances.list[i];
let to_ht = relashonships.to[column_instance._id];
for (var k in to_ht)
if (to_ht[k]['from-class'] === 'TABLE') {
column_instance._table = to_ht[k];
let from_id = to_ht[k]['from-id'];
column_instance._table = table_ht[from_id];
let table = table_ht[k];
if (!table._column_instances)
table._column_instances = [];
const i = table._column_instances.findIndex((d) => d._id===column_instance._id);
if (i===-1)
table._column_instances.push(column_instance);
else
table._column_instances.splice(i, 1, column_instance);
}
}
}
}
カーディナリティとオプショナリティ を書けるようにする。
概要
カーディナリティ(cardinality)とオプショナリティ(optionality)
参照
エンティティに 位置とサイズを表示する。
drawLocationSize (g) {
g.append('text')
.attr('x', (d) => {
return 0;
})
.attr('y', (d, i) => {
return -16;
})
.attr('font-size', 16 + 'px')
.text((d) => {
return `x=${d.x} y=${d.y} w=${d.w} h=${d.h}`;
});
}
Table.drawG で add, delete, update の三種類返す。
テーブルのカラムが二重になるやつ
export default class DataManeger {
injectTable2ColumnInstances (tables, column_instances, relashonships) {
let table_ht = tables.ht;
for (var i in column_instances.list) {
let column_instance = column_instances.list[i];
let to_ht = relashonships.to[column_instance._id];
for (var k in to_ht)
if (to_ht[k].from_class === 'TABLE') {
column_instance._table = to_ht[k];
let from_id = to_ht[k].from_id;
column_instance._table = table_ht[from_id];
let table = table_ht[k];
if (!table._column_instances)
table._column_instances = [];
const position = table._column_instances.findIndex(d => {
return d._id===column_instance._id;
});
if (position==-1)
table._column_instances.push(column_instance);
else
table._column_instances.splice(position, 1, column_instance);
}
}
}
}
D3.Svg の最新を当てる。
Relationship のクリックイベントを拾う。
Entityに Issue へのリンクを付ける。
概要
ただのリンクにするか、タイトルとか文言も入れるか。
などは検討が必要。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.